<!--
function bildzoom(id,titel) {
f2=window.open("","fenster2","dependent=yes,left=10,top=20,width=800,height=400,location=no,menubar=no,personalbar=no,scrollbars=no,status=no,titlebar=no,toolbar=no,resizable=1");
f2.document.write("<html><head><title>"+titel+"</title></head>");
f2.document.write("<body bgcolor='#FFFFFF' leftmargin='2' topmargin='2' rightmargin='0' bottommargin='0'  style='margin-top:2px;margin-left:2px;margin-right:0px;margin-bottom:0px'>");
f2.document.write("<a href='javascript:window.close()'><img border='0' src='"+id+"' alt='zum Schließen klicken • click to close • click ferme fenêtre'></a>");
f2.document.write("<script language='javascript' type='text/javascript'>");
f2.document.write("window.setTimeout('fgroesse()',1000);");
f2.document.write("function fgroesse() {");
f2.document.write("var uagent=navigator.userAgent.toLowerCase();");
f2.document.write("var browser=(uagent.indexOf('mac')>=0)?'mac':'win';");
f2.document.write("var isIE=(uagent.indexOf('msie')>=0)?true:false;");
f2.document.write("var isIE5=(uagent.indexOf('msie 5')>=0)?true:false;");
f2.document.write("var isIE6=(uagent.indexOf('msie 6')>=0)?true:false;");
f2.document.write("var isOpera=(uagent.indexOf('opera')>=0)?true:false;");
f2.document.write("var isGecko=(uagent.indexOf('gecko')>=0)?true:false;");
  //IE 4 
f2.document.write("if(isIE && !isIE5 && !isIE6 && !isOpera) {");
f2.document.write("x=window.document.images[0].width+16;");
f2.document.write("y=window.document.images[0].height+70;");
f2.document.write("}");
  //IE 5
f2.document.write("if(isIE && isIE5 && !isOpera) {");
f2.document.write("x=window.document.images[0].width+16;");
f2.document.write("y=window.document.images[0].height+70;");
f2.document.write("}");
  //IE 6
f2.document.write("if(isIE && isIE6 && !isOpera) {");
f2.document.write("x=window.document.images[0].width+16;");
f2.document.write("y=window.document.images[0].height+70;");
f2.document.write("}");
  //NN 6 und größer
f2.document.write("else if(isGecko) {");
f2.document.write("x=window.document.images[0].width+12;");
f2.document.write("y=window.document.images[0].height+92;");
f2.document.write("}");
  //Opera
f2.document.write("else if(isOpera) {");
f2.document.write("x=window.document.images[0].width+30;");
f2.document.write("y=window.document.images[0].height+85;");
f2.document.write("}");
  //NN 4 und älter
f2.document.write("else if(document.layers) {");
f2.document.write("x=window.document.images[0].width+25;");
f2.document.write("y=window.document.images[0].height+70;");
f2.document.write("}");
  //Ende Browserweiche
f2.document.write("window.resizeTo(x,y);");
f2.document.write("}");
f2.document.write("</script>");
f2.document.write("<table valign='center' bgcolor='#009933' border='0' cellpadding='0' cellspacing='0' width='100%'>");
f2.document.write("<tr><td><p align='center'><a href='javascript:window.close()'><img border='0' src='images/0schliessen.gif' hspace='25' alt='Fenster schließen • window close • ferme fenêtre' width='50' height='30'></a><a href='javascript:window.print()'><img border='0' src='images/0drucken.gif' hspace='25' alt='Fenster drucken • windows print • imprimer fenêtre' width='50' height='30'></a></p></td></tr></table></body></html>");
f2.focus();
f2.document.close();
}

function bildzoom1(id,titel,nummer,ort,datum,format,technik,besitz) {
if (datum == ''){datum = id.slice(17,21);}
if (besitz == ''){besitz = '';}
f2=window.open("","fenster2","dependent=yes,left=10,top=20,width=790,height=400,location=no,menubar=no,personalbar=no,scrollbars=no,status=no,titlebar=no,toolbar=no,resizable=1");
f2.document.write("<html><head><title>"+titel+"</title></head>");
f2.document.write("<body bgcolor='#FFFFFF' leftmargin='2' topmargin='2' rightmargin='0' bottommargin='0'  style='margin-top:2px;margin-left:2px;margin-right:0px;margin-bottom:0px'>");
f2.document.write("<a href='javascript:window.close()'><img border='0' src='"+id+"' alt='zum Schließen klicken • click to close • click ferme fenêtre'></a>");
f2.document.write("<script language='javascript' type='text/javascript'>");
f2.document.write("window.setTimeout('fgroesse()',1000);");
f2.document.write("function fgroesse() {");
f2.document.write("var uagent=navigator.userAgent.toLowerCase();");
f2.document.write("var browser=(uagent.indexOf('mac')>=0)?'mac':'win';");
f2.document.write("var isIE=(uagent.indexOf('msie')>=0)?true:false;");
f2.document.write("var isIE5=(uagent.indexOf('msie 5')>=0)?true:false;");
f2.document.write("var isIE6=(uagent.indexOf('msie 6')>=0)?true:false;");
f2.document.write("var isOpera=(uagent.indexOf('opera')>=0)?true:false;");
f2.document.write("var isGecko=(uagent.indexOf('gecko')>=0)?true:false;");
  //IE 4 
f2.document.write("if(isIE && !isIE5 && !isIE6 && !isOpera) {");
f2.document.write("x=window.document.images[0].width+16;");
f2.document.write("y=window.document.images[0].height+198;");
f2.document.write("}");
  //IE 5
f2.document.write("if(isIE && isIE5 && !isOpera) {");
f2.document.write("x=window.document.images[0].width+16;");
f2.document.write("y=window.document.images[0].height+198;");
f2.document.write("}");
  //IE 6
f2.document.write("if(isIE && isIE6 && !isOpera) {");
f2.document.write("x=window.document.images[0].width+16;");
f2.document.write("y=window.document.images[0].height+204;");
f2.document.write("}");
  //NN 6 und größer
f2.document.write("else if(isGecko) {");
f2.document.write("x=window.document.images[0].width+12;");
f2.document.write("y=window.document.images[0].height+232;");
f2.document.write("}");
  //Opera
f2.document.write("else if(isOpera) {");
f2.document.write("x=window.document.images[0].width+30;");
f2.document.write("y=window.document.images[0].height+220;");
f2.document.write("}");
  //NN 4 und älter
f2.document.write("else if(document.layers) {");
f2.document.write("x=window.document.images[0].width+25;");
f2.document.write("y=window.document.images[0].height+185;");
f2.document.write("}");
  //Ende Browserweiche
f2.document.write("window.resizeTo(x,y);");
f2.document.write("}");
f2.document.write("</script>");
f2.document.write("<table border='0' cellpadding='0' cellspacing='0' width='100%'>");
f2.document.write("<tr><td width='1%'>Titel</td><td width='1%'>&nbsp;:&nbsp;</td><td width='98%'><b>"+titel+"</b></td></tr>");
f2.document.write("<tr><td>Nummer</td><td>&nbsp;:&nbsp;</td><td><b>"+nummer+"</b></td></tr>");
f2.document.write("<tr><td>Ort</td><td>&nbsp;:&nbsp;</td><td><b>"+ort+"</b></td></tr>");
f2.document.write("<tr><td>gemalt</td><td>&nbsp;:&nbsp;</td><td><b>"+datum+"</b></td></tr>");
f2.document.write("<tr><td>Format</td><td>&nbsp;:&nbsp;</td><td><b>"+format+"</b></td></tr>");
f2.document.write("<tr><td>Technik</td><td>&nbsp;:&nbsp;</td><td><b>"+technik+"</b></td></tr>");
f2.document.write("<tr><td>Besitz</td><td>&nbsp;:&nbsp;</td><td><b>"+besitz+"</b></td></tr></table>");
f2.document.write("<table valign='center' bgcolor='#FFFF66' border='0' cellpadding='0' cellspacing='0' width='100%'>");
f2.document.write("<tr><td><p align='center'><a href='javascript:window.close()'><img border='0' src='images/0schliessen.gif' hspace='25' alt='Fenster schließen • window close • ferme fenêtre' width='50' height='30'></a><a href='javascript:window.print()'><img border='0' src='images/0drucken.gif' hspace='25' alt='Fenster drucken • windows print • imprimer fenêtre' width='50' height='30'></a></p></td></tr></table></body></html>");
f2.focus();
f2.document.close();
}

function popup(url,breite,hoehe) {
f3=window.open(url,"fenster3","dependent=yes,width="+breite+",height="+hoehe+",left=10,top=20,location=no,menubar=no,personalbar=no,scrollbars=no,status=no,titlebar=no,toolbar=no,resizable=1");
f3.focus();
}

function popupscroll(url,breite,hoehe) {
f2=window.open(url,"fenster2","dependent=yes,width="+breite+",height="+hoehe+",left=20,top=20,location=no,menubar=no,personalbar=no,scrollbars=yes,status=no,titlebar=no,toolbar=no,resizable=1");
f2.focus();
}

function immervorn() {
  self.focus();
  window.setTimeout("immervorn()",100);
}

time = new Date();
function istneu(maxdays, addDate){
	var oldDate = new Date(addDate);
	var newDate = new Date();
	var maxdaysold = maxdays*24*60*60*1000;

	if ((newDate.getTime()-oldDate.getTime()) <=  maxdaysold) {
   		document.write("<img border='0' src=images/neu.gif width=28 height=20 ALIGN=MIDDLE Alt='Neu'>");
	}
	else if ((newDate.getTime()-oldDate.getTime()) >  maxdaysold) {
        document.write("<img border='0' src=images/alt.gif width=28 height=20 ALIGN=MIDDLE>");
    }
}


function istanders(maxdays, addDate){
	var altDate = new Date(addDate);
	var neuDate = new Date();
	var maxdaysalt = maxdays*24*60*60*1000;

	if ((neuDate.getTime()-altDate.getTime()) <=  maxdaysalt) {
   		document.write("<img border='0' src=images/anders.gif width=28 height=20 ALIGN=MIDDLE Alt='geändert'>");
	}
	else if ((neuDate.getTime()-altDate.getTime()) >  maxdaysalt) {
        document.write("<img border='0' src=images/alt.gif width=28 height=20 ALIGN=MIDDLE>");
    }
}


function emailkommentar() {
	mail_str = "mailto:help@freeadhocudf.org?subject=Kommentar zu - comment to: " + document.title;

      location.href = mail_str;
}

function emailvorschlag() {
	mail_str = "mailto:help@freeadhocudf.org?subject=was ich vermisse - what I missed";
      location.href = mail_str;
}

function copyright() {
var dateObject = new Date();
var fullYear = dateObject.getFullYear();
document.write("© 2004-"+fullYear+" adhoc dataservice GmbH Christoph Theuring");
}

function letzteAenderung() {
lastmod=new Date(document.lastModified);
if (lastmod.getYear()<2000) year=lastmod.getYear()+1900; else year=lastmod.getYear();
if (lastmod.getYear()<10) year=lastmod.getYear()+2000;
if (lastmod.getMinutes()<10) min="0"+lastmod.getMinutes(); else min=lastmod.getMinutes();
if (lastmod.getSeconds()<10) sec="0"+lastmod.getSeconds(); else sec=lastmod.getSeconds();
document.write("Letzte Aktualisierung dieser Seite: "+year+"-"+(lastmod.getMonth()+1)+ "-"+lastmod.getDate()+" "+lastmod.getHours()+":"+min+":"+sec+" +01:00");
}

function lastmodified() {
lastmod=new Date(document.lastModified);
if (lastmod.getYear()<2000) year=lastmod.getYear()+1900; else year=lastmod.getYear();
if (lastmod.getYear()<10) year=lastmod.getYear()+2000;
if (lastmod.getMinutes()<10) min="0"+lastmod.getMinutes(); else min=lastmod.getMinutes();
if (lastmod.getSeconds()<10) sec="0"+lastmod.getSeconds(); else sec=lastmod.getSeconds();
document.write("last modified: "+year+"-"+(lastmod.getMonth()+1)+ "-"+lastmod.getDate()+" "+lastmod.getHours()+":"+min+":"+sec+" +01:00");
}

function modification() {
lastmod=new Date(document.lastModified);
if (lastmod.getYear()<2000) year=lastmod.getYear()+1900; else year=lastmod.getYear();
if (lastmod.getYear()<10) year=lastmod.getYear()+2000;
if (lastmod.getMinutes()<10) min="0"+lastmod.getMinutes(); else min=lastmod.getMinutes();
if (lastmod.getSeconds()<10) sec="0"+lastmod.getSeconds(); else sec=lastmod.getSeconds();
document.write("la dernière modification: "+year+"-"+(lastmod.getMonth()+1)+ "-"+lastmod.getDate()+" "+lastmod.getHours()+":"+min+":"+sec+" +01:00");
}

function ist_Schaltjahr(jahr) {
   if (jahr % 4 == 0)
      if (jahr < 1582)
         return 1;
      else if (!(jahr % 100 == 0))
              return 1;
           else if (jahr % 400 == 0)
                   return 1;
   return 0;
}

var Monatstage = new Array
                  (31,28,31,30,31,30,31,31,30,31,30,31);

function Tag_des_Jahres(tag,monat,jahr) {
  var Tage       = 0;

  Monatstage[1]  = 28 + ist_Schaltjahr(jahr);
  if (tag <= Monatstage[monat-1]) {
     for (var i=0; i < monat-1; i++)
         Tage = Tage + Monatstage[i];
     Tage = Tage + tag;
  }
  return Tage;
}

var WochenTage = new Array
                  ("Mo","Di","Mi","Do","Fr","Sa","So");

function CurrentDoomDay(jahr) {
   var CenturyDoomDay = new Array (5,4,2,0);
   var CC             = Math.floor(jahr/100);
   var YY             = jahr%100;
   var CCDoomDay      = CenturyDoomDay[CC%4];
   var YYDoomDay      = 0;

   if (YY == 0)
      YYDoomDay = CCDoomDay;
   else if (YY%12 == 0)
           YYDoomDay = (CCDoomDay + YY/12 - 1) % 7;
   else YYDoomDay = ( CCDoomDay
                     + (Math.floor(YY/12)
                     + (YY%12)
                     + Math.floor(((YY-1)%12)/4))
                    ) % 7;
   if ((CC%4 == 0) && (YY != 0))
      YYDoomDay = YYDoomDay + 1;

   return YYDoomDay;
}

function Kalenderwoche(tag,monat,jahr) {
   var Woche      = 0;
   var Wchtag1Jan = CurrentDoomDay(jahr);
   var Tage       = Tag_des_Jahres(tag,monat,jahr)-1;

   if (Wchtag1Jan > 3)
      Tage = Tage - (7 - Wchtag1Jan);
   else Tage = Tage + Wchtag1Jan;

   if (Tage < 0)
      if (   (Wchtag1Jan == 4)
          || (CurrentDoomDay(jahr-1) == 3))
         Woche = 53;
      else Woche = 52;
   else Woche = Math.floor(Tage/7) + 1;

   if ((Tage > 360) && (Woche > 52)) {
      if (Wchtag1Jan == 3)
          Woche = 53;
      else if (CurrentDoomDay(jahr+1) == 4)
              Woche = 53;
           else Woche = 1;
   }

   return Woche;
} 
//-->

