<!--
function hmws(vtag, vmonat, vdauer, vgal)
{
var heute = new Date();
var jahr = heute.getFullYear();
var anzzeit = new Date(jahr, vmonat - 1, vtag);
var bheute = "<img src=gal/heutes.gif border=0 width=44 height=12 alt=heute>";
var bmorgen = "<img src=gal/morgens.gif border=0 width=44 height=12 alt=morgen>";
var bwars = "<img src=gal/wars.gif border=0 width=46 height=12 alt=warschon>";
var bild = "";
var afall = (anzzeit - heute) / (24 * 60 * 60 * 1000);
if (vgal == "AG") 
   { bheute = "<img src=gal/agannis.gif border=0 width=300 height=60 alt=*a.g.*>";
     bmorgen = "";
     bwars = "";
   }
if (vgal == "HH") 
   { bheute = "<img src=gal/hhannis.gif border=0 width=300 height=60 alt=*h.h.*>";
     bmorgen = "";
     bwars = "";
   }
if (afall > 1) afall=2;
else { if (afall > 0) afall=1;
       else { if (afall < -vdauer) afall=-1;
              else afall=0;
            }
     }
switch(afall)
{ case -1: bild = bwars; break;
  case 0: bild = bheute; break;
  case 1: bild = bmorgen; break;
  case 2: bild = ""; break;
  default: bild = ""; break;}
return(bild);
}
function aprire(quale,vargr,alt,larg,siin,siup)
{
em=window.open(quale,"eM","toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=1,copyhistory=0,left="+siin+",top="+siup+",scrollbars="+vargr+",width="+alt+",height="+larg+"");
em.focus();
}
function aprirec(quale,vargr,alt,larg,siin,siup)
{
emc=window.open(quale,"eMc","toolbar=1,location=1,directories=1,status=1,menubar=1,resizable=1,copyhistory=1,left="+siin+",top="+siup+",scrollbars="+vargr+",width="+alt+",height="+larg+"");
emc.focus();
}
function aprirec2(quale,vargr,alt,larg,siin,siup)
{
emc2=window.open(quale,"eMc2","toolbar=1,location=1,directories=1,status=1,menubar=1,resizable=1,copyhistory=1,left="+siin+",top="+siup+",scrollbars="+vargr+",width="+alt+",height="+larg+"");
emc2.focus();
}
function apriresensare(quale,vargr,alt,larg,siin,siup)
{
emsr=window.open(quale,"eMsr","toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=1,copyhistory=0,left="+siin+",top="+siup+",scrollbars="+vargr+",width="+alt+",height="+larg+"");
emsr.focus();
window.close();
}
//-->
