// start lastmodified
function LastModi()
{
      document.write(document.lastModified);
}
// end lastmodified
//###############start hist Back#################
function back()
{
history.back();
}
//###############end hist Back#################
// #################start change pictures onmouseover#############

browserName = navigator.appName;

browserVer = parseInt ( navigator.appVersion );



version = "n2";

if ( browserName == "Netscape" && browserVer >= 4 ) version = "n4";

if ( browserName == "Microsoft Internet Explorer" && browserVer >=4 ) version = "e4";



if ( version == "n4" || version == "e4" )

{

        home_on = new Image ( 134, 94 );

        home_on.src = "images/menu/home_on.gif";

        why_on = new Image ( 134, 94 );

        why_on.src = "images/menu/wasH.jpg";

        about_on = new Image ( 134, 94 );

        about_on.src = "images/menu/uberH.jpg";

        contact_on = new Image ( 134, 94 );

        contact_on.src = "images/menu/kontaktH.jpg";

        stuff_on = new Image ( 134, 94 );

        stuff_on.src = "images/menu/contentH.jpg";





        home_off = new Image ( 134, 94 );

        home_off.src = "images/menu/home_off.gif";

        why_off = new Image ( 134, 94 );

        why_off.src = "images/menu/wasD.jpg";

        about_off = new Image ( 134, 94 );

        about_off.src = "images/menu/uberD.jpg";

        contact_off = new Image ( 134, 94 );

        contact_off.src = "images/menu/kontaktD.jpg";

        stuff_off = new Image ( 134, 94 );

        stuff_off.src = "images/menu/contentD.jpg";






}



function button_on ( imgName )

{

        if ( version == "n4" || version == "e4" )

        {

                butOn = eval ( imgName + "_on.src" );

                document [imgName].src = butOn;

        }

}



function button_off ( imgName )

{

        if ( version == "n4" || version == "e4" )

        {

                butOff = eval ( imgName + "_off.src" );

                document [imgName].src = butOff;

        }

}
// ######################end change pictures onmouseover###################
//###########################################
// Javascript Fehler unterdruecken
//onerror = stopError;
//function stopError()
//{
//return true;
//}
// End Javascript Fehler unterdruecken

//###########################################


//start Formular check
function chkFormular()


{

	if(document.Formular.Nachname.value == "")
		 {
		   alert("Bitte geben Sie Ihren Namen ein!");
		   document.Formular.Nachname.focus();
		   return false;
		  }
	if(document.Formular.Strasse.value == "")
		 {
		   alert("Bitte geben Sie Ihre Strasse und Hausnummer ein!");
		   document.Formular.Strasse.focus();
		   return false;
		  }




	if(document.Formular.PLZ.value == "")
		 {
		   alert("Bitte geben Sie Ihre PLZ ein!");
		   document.Formular.PLZ.focus();
		   return false;
		  }
		 var chkZ = 1;
		 for(i=0;i<document.Formular.PLZ.value.length;++i)
		   if(document.Formular.PLZ.value.charAt(i) < "0"
		   || document.Formular.PLZ.value.charAt(i) > "9")
		     chkZ = -1;
		 if(chkZ == -1)
		 {
		   alert("Die eingegene PLZ ist keine Zahl!");
		   document.Formular.PLZ.focus();
		   return false;

		}
	if(document.Formular.Ort.value == "")
		 {
		   alert("Bitte geben Sie Ihren Wohnort ein!");
		   document.Formular.Ort.focus();
		   return false;
		  }
	if(document.Formular.Land.value == "")
		 {
		   alert("Bitte geben Sie Ihr Wohnland ein!");
		   document.Formular.Land.focus();
		   return false;
		  }
	if(document.Formular.Email.value== "")
		 {
		   alert("Bitte geben Sie Ihre Email-Adresse ein!");
		   document.Formular.Email.focus();
		   return false;
		  }
	if(document.Formular.Email.value.indexOf('@') && document.Formular.Email.value.indexOf('.') == -1)
		 {
		   alert("Ihre Emailadresse scheint nicht zu stimmen!");
		   document.Formular.Email.focus();
		   return false;
		  }


}
//###########################################
function onFocus()
{
document.Formular.Nachname.focus();
}
//###########################################
//schliesst das rechte Fenster, damit nicht mAIN UND MENUE OFFEN SIND
//function closeMenueStuff()
//{
//alert("haloo")
//parent.menu.location = "about.html";
//}
//ENDE
//######################Button#####################

var NavLightColor = '#8ba0a4';
var NavShadeColor = '#0c2125';
var NavBarColor = '#18424A';
var FuncLightColor = '#ffd287';
var FuncShadeColor = '#7f5208';
var ExBGColor = '#FFA510';





function FuncBtnOver(Btn){
	//Btn.style.padding = '2px 7px 4px 5px';
	Btn.style.borderLeftColor = FuncLightColor;
	Btn.style.borderTopColor = FuncLightColor;
	Btn.style.borderRightColor = FuncShadeColor;
	Btn.style.borderBottomColor = FuncShadeColor;
}

function FuncBtnOut(Btn){
	Btn.style.borderColor = '#FFA510';
	//Btn.style.padding = '3px 6px 3px 6px';
}

function FuncBtnDown(Btn){
	Btn.style.borderLeftColor = FuncShadeColor;
	Btn.style.borderTopColor = FuncShadeColor;
	Btn.style.borderRightColor = FuncLightColor;
	Btn.style.borderBottomColor = FuncLightColor;
	//Btn.style.padding = '4px 5px 2px 7px';
}
//######################end Button#####################

