//****************************************************************
// Frame-Check-Funktion
//****************************************************************
function frame_check(){
	if (top == self){
		// self
		var me = escape(self.location.pathname);
		top.location.href = "index.htm";
	}
}
//****************************************************************



//****************************************************************
// POPUP-SKRIPT --> ZERTIFIKATE
//****************************************************************
// styles.css evtl. absolut verlinken, damit Formatierung des Popups auch
// aus anderen Verzeichnissen heraus funzt??

		var popup="", num=0;
		function auf(x,y,bild)
		{
		popup=window.open("", num, "width="+(x+60)+",height="+(620)+",scrollbars")
		popup.document.write("<html>");
		popup.document.write("<head> <link rel='STYLESHEET' type='text/css' href='../../../../../scripts/main.css'> ");
		popup.document.write("<title>Zertifikate</title></head>");
		popup.document.write("<body margin-top='0' margin-bottom='0'>");
		popup.document.write("<center><img src="+bild+" width="+x+" height="+y+" class='foto'><br><br>");
		popup.document.write("<a href='javascript:window.close()' class='fotos'>Fenster schliessen</a></center>");
		popup.document.write("</body></html>");
		num++;
		
		}
//****************************************************************



//****************************************************************
// POPUP-SKRIPT --> ANFAHRTSSKIZZEN
//****************************************************************
// styles.css evtl. absolut verlinken, damit Formatierung des Popups auch
// aus anderen Verzeichnissen heraus funzt??

		var popup="", num=0;
		function auf2(x,y,bild)
		{
		popup=window.open("", num, "width="+(x+30)+",height="+(y+60)+"")
		popup.document.write("<html>");
		popup.document.write("<head> <link rel='STYLESHEET' type='text/css' href='../../../../scripts/main.css'> ");
		popup.document.write("<title>Anfahrtsskizze</title></head>");
		popup.document.write("<body bgcolor=#E9F5F0 scroll=no margin-top='0' margin-bottom='0'>");
		popup.document.write("<center><img src="+bild+" width="+x+" height="+y+" class='foto'><br><br>");
		popup.document.write("<a href='javascript:window.close()' class='fotos'>Fenster schliessen</a></center>");
		popup.document.write("</body></html>");
		num++;
		
		}
//****************************************************************


//****************************************************************
// FORMULAR-CHECK ( Formular )
//****************************************************************

function checkform()

{
   
   if(document.mailform.nachname.value == "")
   {
    alert("Bitte geben Sie Ihren Namen ein!");
    document.mailform.nachname.focus();
    return false;
   }
   
   if(document.mailform.vorname.value == "")
   {
    alert("Bitte geben Sie Ihren Vornamen ein!");
    document.mailform.vorname.focus();
    return false;
   }
   
   if(document.mailform.telefon.value == "")
   {
    alert("Bitte geben Sie Ihre Telefonnummer ein!");
    document.mailform.telefon.focus();
    return false;
   }    
       
    if ((document.mailform.email.value.indexOf('@', 0) == -1) || (document.mailform.email.value.indexOf('.') == -1)) 
   {
   alert("Bitte geben Sie eine gültige Email-Adresse ein!");
   document.mailform.email.focus();
   return false; 
   }  

     else
   {document.mailform.submit();
   return document.mailform.submit()}
}

//****************************************************************
