// Auto center window script- Eric King (http://redrival.com/eak/index.shtml)
      var win = null;
      function NewWindow(mypage,myname,w,h,scroll,text){
        LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
        TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
        settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars=no,resizable'
        win = window.open("","NewWindow",settings);
        win = window.open("","NewWindow",settings);
        win.document.write ("<HTML><HEAD><TITLE>Waldschule Regio Basel");
        win.document.write ("</TITLE></HEAD>");
        win.document.write ("<BODY BGCOLOR='#FFFFFF'>");
        win.document.write (" ");
        win.document.write (" ");
        win.document.write (" ");
        win.document.write ("<CENTER><IMG SRC='");
        win.document.write (mypage);
        win.document.write ("' BORDER=0></CENTER>");
        win.document.write (" ");
        win.document.write (" ");
        win.document.write (" ");
        win.document.write ("</BODY></HTML>");
        win.document.close();
        win.document.bgColor="#FFFFFF"
        if(win.window.focus)
          {win.window.focus();}
      }
	  
	  
// PupUp
function popup(theURL,winName,features)
{
 window.open(theURL,winName,features);
}

//reloads the window if Nav4 resized

function MM_reloadPage(init) { 
 if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
 document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
 else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


// Form validate
function validate(){

if (document.form.Name.value=="") {
alert("Bitte geben Sie einen NAMEN ein !")
return false
}
if (document.form.Strasse.value=="") {
alert("Bitte geben Sie eine STRASSE ein!")
return false
}
if (document.form.PLZ.value=="") {
alert("Bitte geben Sie eine PLZ ein!")
return false
}
if (document.form.Ort.value=="") {
alert("Bitte geben Sie einen ORT ein!")
return false
}
if (document.form.Fon.value=="") {
alert("Bitte geben Sie eine TELEFONNUMMER ein!")
return false
}
if (document.form.eMail.value=="") {
alert("Bitte geben Sie eine E MAIL ADRESSE ein!")
return false
}

return true
}