d1form=parent.kform.document.f;

if (d1form.y.value==""){
	var dat=new Date();
	var aky = dat.getYear()%100;
	aky += (aky>97? 1900 : 2000);
	var akm = parseInt(dat.getMonth()+1);
	var akd = dat.getDate();
	var akjd= getJD(aky,akm,akd)+0.5;
	}

if (d1form.y.value==""){ d1form.y.value=aky; y=aky;}
if (d1form.m.value==""){ d1form.m.value=akm; m=akm;}
if (d1form.d.value==""){ d1form.d.value=akd; d=akd;}
if (d1form.jd.value=="") {d1form.jd.value=akjd; jd=akjd-0,5;}

function RiseSet(log,lat,doy,offset) {
 var x=doy*2*Math.PI/365.2422; //365
 /* equation of time (in minutes) */
 eqtime = 229.18*(0.000075+0.001868*Math.cos(x)-0.032077*Math.sin(x)-0.014615*Math.cos(2*x)-0.040849*Math.sin(2*x));
 /* declination (in degrees) */
 var declin=0.006918-0.399912*Math.cos(x)+0.070257*Math.sin(x)-0.006758*Math.cos(2*x);
 declin=declin+0.000907*Math.sin(2*x)-0.002697*Math.cos(3*x)+0.00148*Math.sin(3*x);
 declin=declin*180/Math.PI;
 /* solar azimuth angle for sunrise and sunset corrected for atmospheric refraction (in degrees) */
 var K=Math.PI/180;
 var hars = Math.cos(K*90.833)/(Math.cos(K*lat)*Math.cos(K*declin)) - Math.tan(K*lat)*Math.tan(K*declin);
 hars = Math.acos(hars)/K;
 sun_rise = 720 + 4*(log-hars) - eqtime;
 sun_rise = sun_rise/60 + offset;
 sun_set = 720 + 4*(log+hars) - eqtime;
 sun_set = sun_set/60 + offset;
 snoon = 720 + 4*log - eqtime;
 snoon = snoon/60 + offset
}


function tillY(){
   var d2=new Date();
   var d2y=d2.getYear(); if (d2y>99) d2y=d2y%100+100;
   d2m=d2.getMonth(),d2d=d2.getDate(),d2h=d2.getHours(),d2mi=d2.getMinutes(),d2s=d2.getSeconds();
   var Y=parseInt(1901+d2y);
   var dY=new Date(Y,0,1,0,0,0);
   var s=Math.floor(dY.getTime()-d2.getTime())/1000;
   var tD= Math.floor(s/86400);
   var th= Math.floor((s-tD*86400)/3600);
   var tmi=Math.floor( (s-(tD*86400+th*3600))/60 );
   var ts= Math.ceil(s-(tD*86400+th*3600+tmi*60));
   if ((ts==60)&&(tmi<60)){ts=0; tmi++;}
   d2y%=100;
   var outS1=("     Am "+d2d+"."+(d2m+1)+"."+twoDigs(d2y)+" um "+twoDigs(d2h)+":"+twoDigs(d2mi)+":"+twoDigs(d2s)
            +" sind es noch");
   var outS2=(" "+twoDigs(tD)+" Tage "+twoDigs(th)+" Stunden "+twoDigs(tmi)+" Minuten "+twoDigs(ts)+" Sekunden");

   document.Fy2k.Idate.value=outS1;
   document.Fy2k.Iy2k.value=outS2;

   setTimeout("tillY()",1000);
   } //tilly()

// dform.d.focus();


var VMis1st=0;

var StrN1="x";StrN2="x";StrV1="x";StrV2="x";
   var N1Date= moonDate(y,m,0,1);
   if (N1Date.m==m)
      StrN1=""+twoDigs(N1Date.DoM)+". "+getMonthName(m)+" "+y+"&nbsp;&nbsp;"+twoDigs(N1Date.hour)+":"+twoDigs(N1Date.min)+" Uhr";
   var N2Date= moonDate(y,m,0,2);
   if (N2Date.m==m)
      StrN2=""+twoDigs(N2Date.DoM)+". "+getMonthName(m)+" "+y+"&nbsp;&nbsp;"+twoDigs(N2Date.hour)+":"+twoDigs(N2Date.min)+" Uhr";
   var V1Date= moonDate(y,m,2,1);
   if (V1Date.m==m)
      StrV1=""+twoDigs(V1Date.DoM)+". "+getMonthName(m)+" "+y+"&nbsp;&nbsp;"+twoDigs(V1Date.hour)+":"+twoDigs(V1Date.min)+" Uhr";
   var V2Date= moonDate(y,m,2,2);
   if (V2Date.m==m)
      StrV2=""+twoDigs(V2Date.DoM)+". "+getMonthName(m)+" "+y+"&nbsp;&nbsp;"+twoDigs(V2Date.hour)+":"+twoDigs(V2Date.min)+" Uhr";


                 /******** --- now writing tables --- ********/


document.write('<table id="mtables" class="erhaben" align="center" width="700" cellspacing="0" cellpadding="3"><tr><td valign="top">');
wholeYear=0; // do not coerce size 2
if((document.URL.substr(23,3)!="/mi")&&(document.URL.substr(26,3)!="/mi"))  parent.document.location.href="" ;
machhidates(y); MTable(y,m,3);
m++; 
var y2=y;
if (m>12){m=1; y2++; machhidates(y2);} // wegen Weiberfastnacht bewegl.
document.write('</td><td valign="top">');
MTable(y2,m,3);

                 /******** --- end of Mtables --- ********/

document.write('</td></tr><tr><td valign="top">');

if(y2>y) machhidates(y); // new
for (var j=1;j<=maxhiDate;j++){
   var hr=hiDate[j].hour; var mn=hiDate[j].min;
   if ((hiDate[j].m==anzMonth)&&(y>=hiDate[j].start)){
      if (hiDate[j].hilite==2) document.write('<font color="#FF0000">'+hiDate[j].DoM+'.'+anzMonth+'. '+hiDate[j].evt+'</font>'); else
		if (hiDate[j].hilite==1) document.write('<font color="#008000">'+hiDate[j].DoM+'.'+anzMonth+'. '+hiDate[j].evt+'</font>'); else
			document.write(hiDate[j].DoM+'.'+anzMonth+'. '+hiDate[j].evt);
      if (hr+mn>0)
         document.write(' '+twoDigs(hr)+':'+twoDigs(mn)+' Uhr'); // Jahreszeit
      document.write('<BR>');
      }
   }

document.write('<P><TABLE>');
if (VMis1st==1){
   if (StrV1!='x') document.write('<TR><TD><FONT size=-1><IMG src="../img/vm.gif"> Vollmond: </TD><TD><FONT size=-1>'+StrV1+'</TD></TR>');
   if (StrN1!='x') document.write('<TR><TD><FONT size=-1><IMG src="../img/nm.gif"> Neumond: </TD><TD><FONT size=-1>'+StrN1+'</TD></TR>');
   if (StrV2!='x') document.write('<TR><TD><FONT size=-1><IMG src="../img/vm.gif"> Vollmond: </TD><TD><FONT size=-1>'+StrV2+'</TD></TR>');
   if (StrN2!='x') document.write('<TR><TD><FONT size=-1><IMG src="../img/nm.gif"> Neumond: </TD><TD><FONT size=-1>'+StrN2+'</TD></TR>');
   } else{
   if (StrN1!='x') document.write('<TR><TD><FONT size=-1><IMG src="../img/nm.gif"> Neumond: </TD><TD><FONT size=-1>'+StrN1+'</TD></TR>');
   if (StrV1!='x') document.write('<TR><TD><FONT size=-1><IMG src="../img/vm.gif"> Vollmond: </TD><TD><FONT size=-1>'+StrV1+'</TD></TR>');
   if (StrN2!='x') document.write('<TR><TD><FONT size=-1><IMG src="../img/nm.gif"> Neumond: </TD><TD><FONT size=-1>'+StrN2+'</TD></TR>');
   if (StrV2!='x') document.write('<TR><TD><FONT size=-1><IMG src="../img/vm.gif"> Vollmond: </TD><TD><FONT size=-1>'+StrV2+'</TD></TR>');
   }

document.write('</TABLE></td><td valign="top">');
if(y2>y) machhidates(y2); // new
for (j=1; j<=maxhiDate;j++){
   if ((hiDate[j].m==m)&&(y>=hiDate[j].start)){
      var hr=hiDate[j].hour; var mn=hiDate[j].min;
      if (hiDate[j].hilite==2) document.write('<font color="#FF0000">'+hiDate[j].DoM+'.'+m+'. '+hiDate[j].evt+'</font>'); else
		if (hiDate[j].hilite==1) document.write('<font color="#008000">'+hiDate[j].DoM+'.'+m+'. '+hiDate[j].evt+'</font>'); else
      document.write(hiDate[j].DoM+'.'+m+'. '+hiDate[j].evt);
      if (hr+mn>0) document.write(' '+twoDigs(hr)+':'+twoDigs(mn)+' Uhr');
         document.write('<BR>');
      }
   }
if(y2>y) machhidates(y); // new	
document.write('</td></tr><tr><td colspan="2">');
for (i=1; i<maxhiDate; i++){
   var hi=hiDate[i];
   if ( (hi.m==anzMonth)&&(hi.explain!=null)&&(hi.y>1989) )
      document.write('Der '+((hi.hilite==1)? '<font color="#008000">' : '')+'<B> '+hi.d+'. '+getMonthName(hi.m)+'</B>'+((hi.hilite==1)? '</font>' : '')+' ist '+hi.explain+'.<br>');
      }
m=anzMonth+1; if(m>12){m=1; machhidates(y2);}	
for (i=1; i<maxhiDate; i++){
   var hi=hiDate[i];
   if ( (hi.m==m)&&(hi.explain!=null)&&(hi.y>1989) )
      document.write('Der '+((hi.hilite==1)? '<font color="#008000">' : '')+'<B> '+hi.d+'. '+getMonthName(hi.m)+'</B>'+((hi.hilite==1)? '</font>' : '')+' ist '+hi.explain+'.<br>');
      }
	
y=anzYear; m=anzMonth;
if(y2>y) machhidates(y); // new

               /***** ---- Mondberechnung ThK ---- *****/


var phase=29.530588853;
var y0=2000;
var d0=19.123; // average value in compare, april 2000


if(Math.abs(y-2000)>1000){ // moon thk
function moonThK(y,m){
   var vm=(y0-y)*10.882933764+d0  // Jahr mit 365,25 d
   vm += (m>2)? (y%4)*0.25 : ((y-1)%4)*0.25;   // Schaltjahreskorr julianisch
   if (y>1582){
      var y1=Math.floor(y/100);
      vm-=Math.floor(y1/4)+15-y1;
      if ( (y%100==0)&&(y%400!=0)&&(m<3) ) vm--;
      }
   if (y<=1582)vm-=3;
   if (y<0) vm++;
   if ( (y<0)&&(y%4==0)&&(m>2) ) vm--;
   if ( (y==0)&&(m<3) ) vm++;
   if ( (y<0)&&((-y)%4==3)&&(m<3) ) vm--;

   if (m==1)  vm +=  1.525;
   if (m==2)  vm += 0.138;
   if (m==3)  vm +=  1.462;
   if (m==5)  vm += -0.51;
   if (m==6)  vm += -2.054;
   if (m==7)  vm += -2.607;
   if (m==8)  vm += -4.153;
   if (m==9)  vm += -5.675;
   if (m==10) vm += -6.152;
   if (m==11) vm += -7.586;
   if (m==12) vm += -7.98;

   var faktor=Math.floor(vm/phase);
   vm -= faktor*phase;  // add von phasen bis zum pos. Bereich

   if (y<1582) vm-=10; else
     if ((y==1582)&&(m<10)) vm-=10; 
     if (vm<1) vm += phase;
// Fehler vm 1582 Okt.

   return new ymdDate(y,m,vm);    
   }  // Mond ThK



var thMoon=moonThK(y,m);
var VM1r=thMoon.d;
var VM2r=VM1r+phase;
var NM1r=VM1r-phase/2;
if (NM1r<1) NM1r+=phase;
var NM2r=NM1r+phase;
// patched
if ((y==1582)&&(m==10)) VM1r-=10;
var VM1i=twoDigs(Math.floor(VM1r));
var VM2i=twoDigs(Math.floor(VM2r));
var NM1i=twoDigs(Math.floor(NM1r));
var NM2i=twoDigs(Math.floor(NM2r));
var hoursV1=twoDigs(Math.round((VM1r-VM1i)*24));
var hoursV2=twoDigs(Math.round((VM2r-VM2i)*24));
var hoursN1=twoDigs(Math.round((NM1r-NM1i)*24));
var hoursN2=twoDigs(Math.round((NM2r-NM2i)*24));

document.write('<P><TABLE><TR><TD valign="top" rowspan="3">'+
'<FONT size="-1">Mondberechnung nach konstanter Phase f&uuml;r <br>extreme Zeitr&auml;ume'+
' (Abweichung bis&nbsp;zu&nbsp;11&nbsp;Std.)</FONT></TD><TD rowspan="3">&nbsp;</TD>');

if (NM1i<VM1i){
   if (NM1i<=maxTag(anzYear,anzMonth))
      document.write('<TD><FONT size=-1><IMG src="../img/nm.gif"> Neumond: ',NM1i,'.',getMonthName(m),'.',anzYear,'&nbsp; ',hoursN1,'&nbsp;Uhr</FONT></TD></TR><TR>');
   if (VM1i<=maxTag(anzYear,anzMonth))
      document.write('<TD><FONT size=-1><IMG src="../img/vm.gif"> Vollmond: ',VM1i,'.',getMonthName(m),'.',anzYear,'&nbsp; ',hoursV1,'&nbsp;Uhr</FONT></TD></TR><TR>');
   if ( (NM2i>NM1i)&&(NM2i<=maxTag(anzYear,anzMonth)) )
      document.write('<TD><FONT size=-1><IMG src="../img/nm.gif"> Neumond: ',NM2i,'.',getMonthName(m),'.',anzYear,'&nbsp; ',hoursN2,'&nbsp;Uhr</FONT></TD></TR><TR>');
   if ( (VM2i>VM1i)&&(VM2i<=maxTag(anzYear,anzMonth)) )
      document.write('<TD><FONT size=-1><IMG src="../img/vm.gif"> Vollmond: ',VM2i,'.',getMonthName(m),'.',anzYear,'&nbsp; ',hoursV2,'&nbsp;Uhr</FONT></TD></TR><TR>');
   }else{
   if (VM1i<=maxTag(anzYear,anzMonth))
      document.write('<TD><FONT size=-1><IMG src="../img/vm.gif"> Vollmond: ',VM1i,'.',getMonthName(m),'.',anzYear,'&nbsp; ',hoursV1,'&nbsp;Uhr</FONT></TD></TR><TR>');
   if (NM1i<=maxTag(anzYear,anzMonth))
      document.write('<TD><FONT size=-1><IMG src="../img/nm.gif"> Neumond: ',NM1i,'.',getMonthName(m),'.',anzYear,'&nbsp; ',hoursN1,'&nbsp;Uhr</FONT></TD></TR><TR>');
   if ( (VM2i>VM1i)&&(VM2i<=maxTag(anzYear,anzMonth)) )
      document.write('<TD><FONT size=-1><IMG src="../img/vm.gif"> Vollmond: ',VM2i,'.',getMonthName(m),'.',anzYear,'&nbsp; ',hoursV2,'&nbsp;Uhr</FONT></TD></TR><TR>');
   if ( (NM2i>NM1i)&&(NM2i<=maxTag(anzYear,anzMonth)) )
      document.write('<TR><TD><FONT size=-1><IMG src="../img/nm.gif"> Neumond: ',NM2i,'.',getMonthName(m),'.',anzYear,'&nbsp; ',hoursN2,'&nbsp;Uhr</FONT></TD></TR><TR>');
   }

document.write('</TR></TABLE>');
} // moon thk
document.write('</td></tr></table><br>&nbsp;');



            /*****  ----- d & Y information -----  *****/

y=anzYear; m=anzMonth; d=anzDay;
var thehidate="";
for (var j=1;j<=maxhiDate;j++){
   if ((hiDate[j].m==anzMonth)&&(hiDate[j].d==anzDay)&&(y>=hiDate[j].start)){
		thehidate+="<LI><b>"+hiDate[j].evt+"</b></LI>";
		}
	}	
var seljd=getJD(y,m,d);
var bisHeiligAbend=getJD( (((m==12)&&(d>24))? y+1 : y),12,24)-seljd;
var DoYear=seljd+1-getJD(y,1,1);
var vonHeute=seljd-getJD(aky,akm,akd);
var insE=(Math.abs(vonHeute)==1)? "" :"e";
var vHString='<LI>';
if (vonHeute<0)
   vHString+=-vonHeute+' Tag'+insE+' vor dem '+akd+'.'+akm+'.'+aky; else
if (vonHeute==0)
   vHString+='anscheinend heute'; else
vHString+=vonHeute+' Tag'+insE+' nach dem '+akd+'.'+akm+'.'+aky;
vHString +='</LI>';

var Christ=seljd+1-getJD(1,1,1);
var ChrString='';
if (Christ>0) ChrString='<LI>Tag '+Christ+' der Zeitrechnung</LI>';

var KWString='';
if (y>1975){
   var temp=wt(anzYear,1,1);
   var KW=div((DoYear+5+temp),7);
   if (temp>4) KW--;
   KWString=('<LI>in der '+KW+'. Kalenderwoche');
   if ((KW==0)&&(anzYear>1976)){
      temp=wt(anzYear-1,1,1)
      KW=div( (370+sj(y-1)+temp),7 );
      if (temp>4) KW--;
      KWString=('<LI>in der '+KW+'. Kalenderwoche '+(y-1));
      }
   if ( (m==12)&&(wt(y,12,31)<4)&&(d>31-wt(y,12,31)) ){
      KW=1;
      KWString=('<LI>in der '+KW+'. Kalenderwoche '+(y+1));
      }
   KWString+='</LI>';
   }
document.write('<table align="center" cellpadding="5"><tr><td><a name="taginf"></a><H3>'
+getDoWLongName(wt(y,m,d))+', der '+d+'. '+getMonthName(m)+' '+( ((y>-1)&&(y<10))?('000'+y):((y>-1)&&(y<100))?('00'+y):y )+( (y<1)?(' ('+(1-y)+' vor Christus)'):'')+' ist...</H3><UL>');
if(thehidate!="") 	document.write(thehidate);
document.write('<LI>Tag '+DoYear+' des Jahres'+'</LI>'
+ChrString+vHString);

if (y>0)
   document.write('<LI>'+bisHeiligAbend+' Tag'+( (bisHeiligAbend==1)? '' : 'e' )+' vor Heiligabend');

document.write(KWString+'<LI>Julianischer Tag '+(seljd)+'</LI></UL>'+
'<font size="1">Links zum '+d+'.'+getMonthName(m)+': <a href="http://de.wikipedia.org/wiki/'+d+'._'+getMonthName(m)+'" target="_blank"><span style="font-weight:normal;"><font size="1">Wikipedia</font></span></a>&nbsp;&nbsp;|&nbsp;&nbsp;'+
'<a href="http://www.hinternet.de/kalender/'+twoDigs(m)+twoDigs(d)+'.php" target="_blank"><span style="font-weight:normal;"><font size="1">Historischer Kalender</font></span></a></font>');

                /*****  ----- SASU -----  *****/
document.write('<a name="sasu"></a><h3>Sonnenzeiten am '+d+'. '+getMonthName(m)+' '+( ((y>-1)&&(y<10))?('000'+y):((y>-1)&&(y<100))?('00'+y):y )+( (y<1)?(' ('+(1-y)+' vor Christus)'):'')+'</h3>');
var sun_rise, sun_set, snoon;
var wu='0', wurl='language/www/global/stations/';

function sasu(tt){
var sau=document.fsasu, stadt=sau.selstadt.value;
var longit=0,lat=0,offset=1,zs='  UTC';
wurl='language/www/global/stations/'; wu='0';
if(stadt=='Berlin'){longit=-13.4; lat=52.5167; wu='10385';}
else if(stadt=='Dresden'){longit=-13.74; lat=51.05; wu='10488';}
else if(stadt=='Duesseldorf'){longit=-6.78; lat=51.23; wu='10400';}
else if(stadt=='Frankfurt/M'){longit=-8.67; lat=50.13; wu='10637';} 
else if(stadt=='Hamburg'){longit=-10.03; lat=53.57; wu='10147';}
else if(stadt=='Kassel'){longit=-9.4733; lat=51.3187; wu='10438';}
else if(stadt=='Muenchen'){longit=-11.65; lat=48.25; wu='10870';}
else if(stadt=='Goerlitz'){longit=-14.98; lat=51.156; wu='10499';}
else if(stadt=='Saarbruecken'){longit=-7; lat=49.2333; wu='10708';}
else if(stadt=='Stralsund'){longit=-13.08; lat=54.31;}
else if(stadt=='Wilthen'){longit=-14.3897; lat=51.1002; wu='10499';}
else if(stadt=='Antalya'){longit=-30.7095; lat=36.8927; offset=2; wu='17300';}
else if(stadt=='Barcelona'){longit=-2.18; lat=41.38; wu='08181';}
else if(stadt=='Dubai'){longit=-55.31; lat=25.26; offset=4; wu='41194';}
else if(stadt=='Helsinki'){longit=-24.94; lat=60.17; offset=2; wu='02974';}
else if(stadt=='Hongkong'){longit=-114.15; lat=22.283; offset=8; wu='45007';}
else if(stadt=='Hurghada'){longit=-33.8161; lat=27.26066; offset=2; wu='62463';}
else if(stadt=='Kairo'){longit=-31.25; lat=30.06; offset=2; wu='62366';}
else if(stadt=='Kopenhagen'){longit=-12.57; lat=55.68; wu='06180';}
else if(stadt=='Lissabon'){longit=9.14; lat=38.71; offset=0; wu='08536';}
else if(stadt=='London'){longit=0.1264; lat=51.51; offset=0; wu='03772';}
else if(stadt=='NY'){longit=74.002; lat=40.7193; offset=-5; wu='New_York'; wurl='US/NY/'}
else if(stadt=='Moskau'){longit=-37.62; lat=55.75; offset=3; wu='27612';} 
else if(stadt=='Paris'){longit=-2.351; lat=48.86; wu='07157';} 
else if(stadt=='Reykjavik'){longit=21.895; lat=64.14; offset=0; wu='04030';}
else if(stadt=='Rio'){longit=43.2333; lat=-22.9; offset=-3; wu='83755';}
else if(stadt=='Rom'){longit=-12.483; lat=41.9; wu='16239';} 
else if(stadt=='Sydney'){longit=-151.21; lat=-33.868; offset=10; wu='94767';}
else if(stadt=='Tokio'){longit=-139.77; lat=35.7; offset=9; wu='47671';} 
else if(stadt=='Zurich'){longit=-8.533; lat=47.37; wu='06670';}
var soz=SoZeit(y), sozd=getJD(soz.y,soz.m,soz.d), wiz=WiZeit(y), wizd=getJD(wiz.y,wiz.m,wiz.d), nowjd=getJD(y,m,d);
if((nowjd>=sozd)&&(nowjd<=wizd)) offset++; // Sommerzeit
if(tt>0){
if(offset>0) zs+='+'+offset; else if(offset<0) zs+=offset;
if((longit!=0)||(lat!=0)) {
  RiseSet(longit,lat,DoYear,offset);
  sau.sa.value='  '+HoursMinutes(sun_rise)+zs; sau.hs.value='  '+HoursMinutes(snoon)+zs; sau.su.value='  '+HoursMinutes(sun_set)+zs; sau.sd.value='  '+HoursMinutes(sun_set-sun_rise)+' Std.';
  }
  if(wu!='0'){
	  document.iwu.src='http://banners.wunderground.com/weathersticker/miniWeather2_metric_cond/'+wurl+wu+'.gif';
	  document.iwu.alt='Wetter in '+stadt;
	  document.iwu.width='150'; document.iwu.height='50';
	  }
  else {document.iwu.width='1'; document.iwu.height='1';}
  } // tt>0
} // sasu

function openwu(w){
	if(w=='New_York')
	window.open('http://www.wunderground.com/US/NY/'+w+'.html?bannertypeclick=miniWeather2');
	else
	window.open('http://www.wunderground.com/global/stations/'+w+'.html?bannertypeclick=miniWeather2');
  }
  
document.write('<form name="fsasu"><table border cellspacing="0" style="background-image:url(sunset.jpg); background-repeat:repeat-x;background-position:left center;"><tr><th>Ort</th><th>Sonnenaufgang</th><th>H&ouml;chststand</th><th>Sonnenuntergang</th><th>&nbsp;Sonnendauer&nbsp;</th><td rowspan="2"><font size="1">Angaben<br>mit deutscher<br>Sommerzeit</font></td></tr>'+
'<tr><td><select name="selstadt" onChange="sasu(1)">'+
'<option value="Berlin">Berlin</option>'+
'<option value="Dresden">Dresden</option>'+
'<option value="Duesseldorf">D&uuml;sseldorf</option>'+
'<option value="Frankfurt/M">Frankfurt/Main</option>'+
'<option value="Goerlitz">G&ouml;rlitz</option>'+
'<option value="Hamburg">Hamburg</option>'+
'<option value="Kassel">Kassel</option>'+
'<option value="Muenchen">M&uuml;nchen</option>'+
'<option value="Saarbruecken">Saarbr&uuml;cken</option>'+
'<option value="Stralsund">Stralsund</option>'+
'<option value="Wilthen">Wilthen/SN</option>'+
'<option value="0">----------</option>'+
'<option value="Antalya">Antalya</option>'+
'<option value="Barcelona">Barcelona</option>'+
'<option value="Dubai">Dubai</option>'+
'<option value="Helsinki">Helsinki</option>'+
'<option value="Hongkong">Hongkong</option>'+
'<option value="Hurghada">Hurghada</option>'+
'<option value="Kopenhagen">Kopenhagen</option>'+
'<option value="Kairo">Kairo</option>'+
'<option value="Lissabon">Lissabon</option>'+
'<option value="London">London</option>'+
'<option value="Moskau">Moskau</option>'+
'<option value="NY">New York</option>'+
'<option value="Paris">Paris</option>'+
'<option value="Reykjavik">Reykjavik</option>'+
'<option value="Rio">Rio de J.</option>'+
'<option value="Rom">Rom</option>'+
'<option value="Sydney">Sydney</option>'+
'<option value="Tokio">Tokio</option>'+
'<option value="Zurich">Z&uuml;rich</option>'+
'</select></td>'+
'<td><input type="text" name="sa" size="14"></td><td><input type="text" name="hs" size="14"></td><td><input type="text" name="su" size="14"></td><td><input type="text" name="sd" size="9"></td></tr></table></form>');
sasu(0); // wu-code ermitteln
  document.write('<a class="klein" href="javascript:openwu(wu);" title="Wetterdaten des Ortes von wunderground.com">Temperatur, Ortszeit des gew&auml;hlten Ortes'+
'<br><img name="iwu" src="" border="0"></a>');
sasu(1);
								/*****  ----- next years -----  *****/

//if (y>1) document.write('<IMG src="../img/bunny1.gif" align="right" width="177" height="107" alt="Osterhase">');

if (y>1){
var y2show=(y>4094)? (6-y+4094):(y>-1)?6:0;
var s;
document.write('<H3>Bewegliche Anl&auml;sse der n&auml;chsten Jahre</H3>'
+'<TABLE border align="center" bgcolor="#ECEFEC" cellspacing="0" cellpadding="3"><TR bgcolor="#FFB060"><TH>Anlass </TH>');
for (y=anzYear;y<anzYear+y2show;y++){
   document.write('<TH><a href="feiertag.php?fy='+y+'#fland">'+( (y<10)?('000'+y):(y<100)?('00'+y):y )+'</a></TH>');
   }
document.write('</TR><TR><TD>Fastnacht: </TD>');
for (y=anzYear;y<anzYear+y2show;y++){
   s=Fastnacht(y);
   if (y>325)
      document.write('<TD nowrap>'+getDoWName(wt(y,s.m,s.d))+'&nbsp;'+s.d+'. '+s.m+'.</TD>');
   else
      document.write('<TD nowrap><I>'+getDoWName(wt(y,s.m,s.d))+'&nbsp;'+s.d+'. '+s.m+'. ?</I></TD>');
   }
document.write('</TR><TR><TD>Ostern: </TD>');
for (y=anzYear;y<anzYear+y2show;y++){
   s=whichEaster(y);
   if (y>325)
      document.write('<TD nowrap>'+getDoWName(wt(y,s.m,s.d))+'&nbsp;'+s.d+'. '+s.m+'.</TD>');
   else
      document.write('<TD nowrap><I>'+getDoWName(wt(y,s.m,s.d))+'&nbsp;'+s.d+'. '+s.m+'. ?</I></TD>');
   }
document.write('</TR><TR><TD>Chr.&nbsp;Himmelfahrt: </TD>');
for (y=anzYear;y<anzYear+y2show;y++){
   s=Hifa(y);
   if (y>325)
      document.write('<TD nowrap valign="bottom">'+getDoWName(wt(y,s.m,s.d))+'&nbsp;'+s.d+'. '+s.m+'.</TD>');
   else
      document.write('<TD nowrap><I>'+getDoWName(wt(y,s.m,s.d))+'&nbsp;'+s.d+'. '+s.m+'. ?</I></TD>');
   }
document.write('</TR><TR><TD>Pfingsten: </TD>');
for (y=anzYear;y<anzYear+y2show;y++){
   s=Pfingsten(y);
   if (y>325)
      document.write('<TD nowrap>'+getDoWName(wt(y,s.m,s.d))+'&nbsp;'+s.d+'. '+s.m+'.</TD>');
   else
      document.write('<TD nowrap><I>'+getDoWName(wt(y,s.m,s.d))+'&nbsp;'+s.d+'. '+s.m+'. ?</I></TD>');
   }
document.write('</TR><TR><TD>Fronleichnam: </TD>');
for (y=anzYear;y<anzYear+y2show;y++){
   s=FronLN(y);
   if (y>1245)
      document.write('<TD nowrap>'+getDoWName(wt(y,s.m,s.d))+'&nbsp;'+s.d+'. '+s.m+'.</TD>');
   else
      document.write('<TD nowrap align="center">---</TD>');
   }
document.write('</TR><TR><TD>Erntedankfest: </TD>');
for (y=anzYear;y<anzYear+y2show;y++){
   s=ErnteDF(y);
   if (y>=1770)
      document.write('<TD nowrap>'+getDoWName(wt(y,s.m,s.d))+'&nbsp;'+s.d+'. '+s.m+'.</TD>');
   else
      document.write('<TD nowrap align="center">---</TD>');
   }
document.write('</TR><TR><TD>Bu&szlig;- und Bettag: </TD>');
for (y=anzYear;y<anzYear+y2show;y++){
   s=BBTag(y);
   if (y>=1853)
      document.write('<TD nowrap>'+getDoWName(wt(y,s.m,s.d))+'&nbsp;'+s.d+'. '+s.m+'.</TD>');
   else
      document.write('<TD  nowrap align="center">---</TD>');
   }
document.write('</TR><TR><TD>Erster Advent: </TD>');
for (y=anzYear;y<anzYear+y2show;y++){
   s=Adv1(y);
   if (y>825)
      document.write('<TD nowrap>'+getDoWName(wt(y,s.m,s.d))+'&nbsp;'+s.d+'. '+s.m+'.</TD>');
   else
      document.write('<TD nowrap align="center">---</TD>');
   }
if (anzYear>1583-y2show){
   document.write('</TR><TR bgcolor="#DAEAE2"><TD>Ostern orthodox: </TD>');
   for (y=anzYear;y<anzYear+y2show;y++){
      s=(y>1582)?getEasterDate(y,2):getEasterDate(y,1);
      if (y>325)
         document.write('<TD nowrap>'+getDoWName(wt(y,s.m,s.d))+'&nbsp;'+s.d+'. '+s.m+'.</TD>');
      else
         document.write('<TD nowrap><I>'+getDoWName(wt(y,s.m,s.d))+'&nbsp;'+s.d+'. '+s.m+'. ?</I></TD>');
      }
   }
document.write('</TR></TABLE></td></tr></table>');
} // y>-1


function zeiginfo(id,n){ 
if(!document.getElementById) return false;
if(!isNaN(n)) n=n+"";
	document.getElementById(id).innerHTML=n;
	if(n!=""){
		document.getElementById(id).style.left=xmPos;
		document.getElementById(id).style.top=ymPos;
		} else {
		document.getElementById(id).style.left=0;
		document.getElementById(id).style.top=-1000;
		}
	return true;
	}
	

