/* globale javascript-datei */

var browser = ""; /* Browser ist ??? */

/* BrowserDetect */
function BrowserDetect()
 { if (document.layers)
	   { browser = "ns"; }
   else if (document.all)
		 { browser = "ms"; }
 }
 
/* Bildschirm-Test */
function ScreenTest()
 { parent.frames[4].document.writeln("Bildschirm Breite x Höhe in Pixel: " 
   + screen.width + " x " + screen.height + "<br>verfügbare Breite x Höhe in Pixel: " 
	 + screen.availWidth + " x " + screen.availHeight + "<br>");
 }
 
function test()
 { 
   parent.frames[4].document.writeln("oldActNr: " + parent.frames[2].oldActNr + "<br>");
   parent.frames[4].document.writeln("m= " + m + "<br>"); 
   for (i=1;  i <= m; i++ )
    { parent.frames[4].document.writeln("nowAct[" + i + "]: " + parent.frames[2].nowAct[i] + "<br>");}
 }


function chkFormular()
 { 		 
   if(document.Formular.FieldData0.value == "")
    {alert("Bitte Ihren Namen eingeben!");
     document.Formular.FieldData0.focus();
     return false;}
			 
   if(document.Formular.FieldData1.value == "")
    {alert("Bitte Ihre E-Mail-Adresse eingeben!");
     document.Formular.FieldData1.focus();
     return false; }
		 
   if(document.Formular.FieldData1.value.indexOf('@') == -1)
    {alert("Keine gültige E-Mail-Adresse!");
     document.Formular.FieldData1.focus();
     return false; }
		 
   if(document.Formular.FieldData2.value == "")
    {alert("Bitte Ihre Telefonnummer eingeben!");
     document.Formular.FieldData2.focus();
     return false;}
		 
   var chkZ = 1;
   for(i=0;i<document.Formular.FieldData2.value.length;++i)
     if(document.Formular.FieldData2.value.charAt(i) != "0"
     && document.Formular.FieldData2.value.charAt(i) != "1"
     && document.Formular.FieldData2.value.charAt(i) != "2"
     && document.Formular.FieldData2.value.charAt(i) != "3"
     && document.Formular.FieldData2.value.charAt(i) != "4"
     && document.Formular.FieldData2.value.charAt(i) != "5"
     && document.Formular.FieldData2.value.charAt(i) != "6"
     && document.Formular.FieldData2.value.charAt(i) != "7"
     && document.Formular.FieldData2.value.charAt(i) != "8"
     && document.Formular.FieldData2.value.charAt(i) != "9"
     && document.Formular.FieldData2.value.charAt(i) != " "
     && document.Formular.FieldData2.value.charAt(i) != "+")    
     chkZ = -1;

   for(i=1;i<document.Formular.FieldData2.value.length;++i)
     if(document.Formular.FieldData2.value.charAt(i) == "+")
     chkZ = -1;

   if(chkZ == -1)
    {alert("erlaubte Zeichen für FieldData2nummer: +, 0 .. 9, Leerzeichen");
     document.Formular.FieldData2.focus();
     return false; }
		 
	 if(document.Formular.FieldData6[0].checked != true)
    {alert("Der Gesetzgeber schreibt das Lesen der AGB vor. Um Ihre Daten zu übertragen, müssen Sie die AGB akzeptieren!");
     return false;}
}

/* Öffnet ein PDF-Dokument im Hauptfenster
   [5]..Navigation links / [2] Kopfinfo, oben rechts / [9] Hauptfenster  */
	 
function pdf_doc(path,navi,head_l,head_r,main,counter)
{ parent.frames[5].location.href="../../" + path + "/files/" + navi + ".htm" /* inhaltsverzeichnis anzeigen */
  parent.frames[1].location.href="../../global/files/" + head_l + ".htm" /* im Kopf auf linker Seite D oder E anzeigen */  
  parent.frames[2].location.href="../../" + path + "/files/" + head_r + ".htm" /* im Kopf auf rechter Seite die Orientierung anzeigen */  
	parent.frames[9].location.href="../../" + path + "/files/" + main + ".pdf" /* counter deutsch / english */
	parent.frames[7].location.href="../../global/files/" + counter + ".htm" /* z.B. Startdatei im Hauptfenster anzeigen */
  parent.frames[9].focus();
}

/* Wechselt das Inhaltsverzeichnis, Kopf und Hauptfenster aus
   [5]..Navigation links / [2] Kopfinfo, oben rechts / [9] Hauptfenster  */
	 
function startseite(path,navi,head_l,head_r,main,counter)
{ parent.frames[5].location.href="../../" + path + "/files/" + navi + ".htm" /* inhaltsverzeichnis anzeigen */
  parent.frames[1].location.href="../../global/files/" + head_l + ".htm" /* im Kopf auf linker Seite D oder E anzeigen */  
  parent.frames[2].location.href="../../" + path + "/files/" + head_r + ".htm" /* im Kopf auf rechter Seite die Orientierung anzeigen */  
	parent.frames[9].location.href="../../" + path + "/files/" + main + ".htm" /* counter deutsch / english */
	parent.frames[7].location.href="../../global/files/" + counter + ".htm" /* z.B. Startdatei im Hauptfenster anzeigen */
  parent.frames[9].focus();
}	

function change_main(main)
{	parent.frames[9].location.href=main + ".htm" /* z.B. Startdatei im Hauptfenster anzeigen */
  parent.frames[9].focus()
}
function wOpen(ziel)
{window.open(ziel, "f1", "left=100,top=100,width=300,height=500");
}

function wOpen_scr_1(ziel)
{window.open(ziel, "f1", "left=300,top=240,width=500,height=400,scrollbars=yes,resizable=yes");
}

function wOpen_scr(ziel)
{window.open(ziel, "f1", "left=50,top=30,width=750,height=650,scrollbars=yes,resizable=yes");
}


function tag()
{ var heute = new Date();
  var tag = heute.get.Date();
  var month = heute.get.Month();
  var year = heute.get.Year();
	document.write(Tag + "." + month + "." + year) 
}




