function aufnahmetage(select) {
 var win;
 var heute = new Date();
 var hmonat = select;
 if (hmonat==0) return false;
 hmonat-=1;
 var hjahr = heute.getYear();
 var monatAkt = heute.getMonth();
 var akt;
 var wochtag;
 var tag;
 var monat;
 var jahr;
 var zaehler;
 var utczaehler;
 if (hjahr < 2000) hjahr+=1900;
 hDatum = new Date(hjahr,hmonat,1);
 DatumAkt = new Date(hjahr,monatAkt,1);
 //alert(hDatum);
 //alert(DatumAkt);
 if (hDatum < DatumAkt) hjahr+=1;
 win=window.open('','Aufnahmetage','width=400,height=290,resizeable=no,');
 win.document.writeln('<html>');
 win.document.writeln('<head>');
 win.document.writeln('<title>Barmherzige Schwestern - Krankenhaus Linz Aufnahmetage "+hjahr+"<\/title>');
 win.document.writeln('<link rel="STYLESHEET" type="text/css" href="standard.css" title="stylesheet">');
 win.document.writeln('<style type="text/css">');
 win.document.writeln('<!--');
 win.document.writeln('@import url("stylesheet_ie.css");');
 win.document.writeln('-->');
 win.document.writeln('<\/style>');
 win.document.writeln('<\/head>');
 win.document.writeln('<body>');
 win.document.writeln('<p align="center">');
 win.document.writeln(' <table cellpadding="0" cellspading="0" border="0">');
 win.document.writeln(' <tr>');
 win.document.writeln(' <td>');
 win.document.writeln(' <p><strong>',window.document.monate.select.options[window.document.monate.select.selectedIndex].value+' '+hjahr+'<\/strong><\/p>');
 win.document.writeln(' <table cellpadding="3" cellspading="3" border="1">');
 win.document.writeln(' <tr>');
 win.document.writeln(' <td width="35" align="center"><strong>So<\/strong><\/td>'); 
 win.document.writeln(' <td width="35" align="center"><strong>Mo<\/strong><\/td>'); 
 win.document.writeln(' <td width="35" align="center"><strong>Di<\/strong><\/td>'); 
 win.document.writeln(' <td width="35" align="center"><strong>Mi<\/strong><\/td>'); 
 win.document.writeln(' <td width="35" align="center"><strong>Do<\/strong><\/td>'); 
 win.document.writeln(' <td width="35" align="center"><strong>Fr<\/strong><\/td>'); 
 win.document.writeln(' <td width="35" align="center"><strong>Sa<\/strong><\/td>'); 
 win.document.writeln(' <\/tr>');
 zaehler=0;
 akt = new Date(hjahr,hmonat,1);
 wochtag = akt.getDay();
 for (var zeile=1; zeile<=6; zeile++)
 {
 win.document.writeln(' <tr>')
 for (var spalte=0; spalte<=6; spalte++)
 {
 if (zaehler==0 && spalte<wochtag)
 {
 win.document.writeln(' <td><\/td>');
 } else {
 zaehler++;
 akt = new Date(hjahr,hmonat,zaehler);
 tag = akt.getDate();
 win.document.write('<td');
 if (zaehler == tag)
 {
 utczaehler = Date.UTC(hjahr,hmonat,tag)/86400000;
 if (((utczaehler+3) % 21) == 0) {win.document.write(' bgcolor="#DEDEDE"');};
 if (((utczaehler+9) % 21) == 0) {win.document.write(' bgcolor="#DEDEDE"');};
 if (((utczaehler+1) % 21) == 0) {win.document.write(' bgcolor="#DEDEDE"');};
 if (((utczaehler+7) % 21) == 0) {win.document.write(' bgcolor="#DEDEDE"');};
 if (((utczaehler+13) % 21) == 0) {win.document.write(' bgcolor="#DEDEDE"');};
 if (((utczaehler+19) % 21) == 0) {win.document.write(' bgcolor="#DEDEDE"');};
 if (((utczaehler+18) % 21) == 0) {win.document.write(' bgcolor="#DEDEDE"');};
 win.document.write(' align="center">');
 win.document.write(zaehler);
 } else {
 win.document.write('>');
 }
 win.document.writeln(' <\/td>');
 }
 }
 win.document.writeln(' <\/tr>')
 }
 win.document.writeln(' <\/table>');
 win.document.writeln(' <\/td>');
 win.document.writeln(' <\/tr>');
 win.document.writeln(' <\/table>');
 win.document.writeln(' <form><input type="button" value="Schließen" onClick="window.close()"><\/form>');
 win.document.writeln('<\/p>');
 win.document.writeln('<\/body>');
 win.document.writeln('<\/html>');
}

