// JavaScript Document

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
  
function BlurLinks(){
lnks=document.getElementsByTagName('a');
for(i=0;i<lnks.length;i++){
lnks[i].onfocus=new Function("if(this.blur)this.blur()");
}
}
onload=BlurLinks;


function Test()
{
   alert("Please e!");
   return false;
}


function chkFormular_e()
{
 if(document.Formular.Vorname.value == "")
  {
   alert("Please enter your first name!");
   document.Formular.Vorname.focus();
   return false;
  }
   if(document.Formular.Nachname.value == "")
  {
   alert("Please enter your surname!");
   document.Formular.Nachname.focus();
   return false;
  }
 if(document.Formular.Strasse.value == "")
  {
   alert("Please enter your street!");
   document.Formular.Strasse.focus();
   return false;
}
if(document.Formular.PLZ.value.length <=  3 )
 {
 alert("Please enter your postal code!");
 document.Formular.PLZ.focus();
 return false;
}
 if(document.Formular.Ort.value == "")
  {
   alert("Please enter your city!");
   document.Formular.Ort.focus();
   return false;
  }

 if(document.Formular.Email.value == "")
  {
   alert("Please enter your email!");
   document.Formular.Email.focus();
   return false;
  }
      if(document.Formular.Email.value.indexOf('@') == -1)
  {
   alert("Incorrect email address!");
   document.Formular.Email.focus();
   return false;

  }

 if(document.Formular.Email.value.indexOf('.') == -1)
  {
   alert("Incorrect email address!");
   document.Formular.Email.focus();
   return false;
  }
	if(document.Formular.Passwort.value == "")
  {
   alert("Please enter a password!");
   document.Formular.Passwort.focus();
   return false;
  }
if(document.Formular.Passwortbest.value == "")
  {
   alert("Please confirm your password!");
   document.Formular.Passwortbest.focus();
   return false;
}

if(document.Formular.Passwortbest.value != document.Formular.Passwort.value)
  {
   alert("Your passwords do not match!");
   document.Formular.Passwortbest.focus();
   return false;
}



}
  
function chkFormular()
{
 if(document.Formular.Vorname.value == "")
  {
   alert("Bitte geben Sie Ihren Vornamen ein!");
   document.Formular.Vorname.focus();
   return false;
  }
   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 die Strasse an!");
   document.Formular.Strasse.focus();
   return false;
}
if(document.Formular.PLZ.value.length <=  3 )
 {
 alert("Bitte geben Sie die Postleitzahl korrekt an!");
 document.Formular.PLZ.focus();
 return false;
}
 if(document.Formular.Ort.value == "")
  {
   alert("Bitte geben Sie den Wohnort an!");
   document.Formular.Ort.focus();
   return false;
  }

 if(document.Formular.Email.value == "")
  {
   alert("Bitte geben Sie Ihre E-Mail-Adresse ein!");
   document.Formular.Email.focus();
   return false;
  }
      if(document.Formular.Email.value.indexOf('@') == -1)
  {
   alert("Keine gueltige E-Mail-Adresse!");
   document.Formular.Email.focus();
   return false;

  }

 if(document.Formular.Email.value.indexOf('.') == -1)
  {
   alert("Keine gueltige E-Mail-Adresse!");
   document.Formular.Email.focus();
   return false;
  }
if(document.Formular.Passwort.value == "")
  {
   alert("Bitte geben Sie ein Passwort an!");
   document.Formular.Passwort.focus();
   return false;
  }
if(document.Formular.Passwortbest.value == "")
  {
   alert("Bitte bitte bestätigen SIe Ihre Passworteingabe!");
   document.Formular.Passwortbest.focus();
   return false;
	}
	if(document.Formular.Passwortbest.value != document.Formular.Passwort.value)
  {
   alert("Ihre eingebenen Passwörter stimmen nicht überein!");
   document.Formular.Passwortbest.focus();
   return false;
}

}


function chkFormular_rb_e()
{
  if(document.Formular.Firma.value == "")
  {
   alert("Please enter the name of your company!");
   document.Formular.Firma.focus();
   return false;
  }
 if(document.Formular.Vorname.value == "")
  {
   alert("Please enter your first name!");
   document.Formular.Vorname.focus();
   return false;
  }
   if(document.Formular.Nachname.value == "")
  {
   alert("Please enter your surname!");
   document.Formular.Nachname.focus();
   return false;
  }
 if(document.Formular.Strasse.value == "")
  {
   alert("Please enter your street!");
   document.Formular.Strasse.focus();
   return false;
}
if(document.Formular.PLZ.value.length <=  3 )
 {
 alert("Please enter your postal code!");
 document.Formular.PLZ.focus();
 return false;
}
 if(document.Formular.Ort.value == "")
  {
   alert("Please enter your city!");
   document.Formular.Ort.focus();
   return false;
  }
  if(document.Formular.Fax.value == "")
  {
   alert("Please enter your fax number!");
   document.Formular.Fax.focus();
   return false;
  }
if(document.Formular.Email.value == "")
  {
   alert("Please enter your email!");
   document.Formular.Email.focus();
   return false;
  }
if(document.Formular.Email.value.indexOf('@') == -1)
  {
   alert("Incorrect email address!");
   document.Formular.Email.focus();
   return false;
  }
 if(document.Formular.Email.value.indexOf('.') == -1)
  {
   alert("Incorrect email address!");
   document.Formular.Email.focus();
   return false;
  }
if(document.Formular.Passwort.value == "")
  {
   alert("Please enter a password!");
   document.Formular.Passwort.focus();
   return false;
  }
if(document.Formular.Passwortbest.value == "")
  {
   alert("Please confirm your password!");
   document.Formular.Passwortbest.focus();
   return false;
}

if(document.Formular.Passwortbest.value != document.Formular.Passwort.value)
  {
   alert("Your passwords do not match!");
   document.Formular.Passwortbest.focus();
   return false;
	}
}
  
function chkFormular_rb()
{
  if(document.Formular.Firma.value == "")
  {
   alert("Bitte geben Sie den Namen der Firma ein!");
   document.Formular.Firma.focus();
   return false;
  }
 if(document.Formular.Vorname.value == "")
  {
   alert("Bitte geben Sie Ihren Vornamen ein!");
   document.Formular.Vorname.focus();
   return false;
  }
   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 die Strasse an!");
   document.Formular.Strasse.focus();
   return false;
}
if(document.Formular.PLZ.value.length <=  3 )
 {
 alert("Bitte geben Sie die Postleitzahl korrekt an!");
 document.Formular.PLZ.focus();
 return false;
}
 if(document.Formular.Ort.value == "")
  {
   alert("Bitte geben Sie den Wohnort an!");
   document.Formular.Ort.focus();
   return false;
  }

 if(document.Formular.Email.value == "")
  {
   alert("Bitte geben Sie Ihre E-Mail-Adresse ein!");
   document.Formular.Email.focus();
   return false;
  }
 if(document.Formular.Fax.value == "")
  {
   alert("Bitte geben Sie eine Faxnummer ein!");
   document.Formular.Fax.focus();
   return false;
  }
if(document.Formular.Email.value.indexOf('@') == -1)
  {
   alert("Keine gueltige E-Mail-Adresse!");
   document.Formular.Email.focus();
   return false;
  }

 if(document.Formular.Email.value.indexOf('.') == -1)
  {
   alert("Keine gueltige E-Mail-Adresse!");
   document.Formular.Email.focus();
   return false;
  }
if(document.Formular.Passwort.value == "")
  {
   alert("Bitte geben Sie ein Passwort an!");
   document.Formular.Passwort.focus();
   return false;
  }
if(document.Formular.Passwortbest.value == "")
  {
   alert("Bitte bitte bestätigen SIe Ihre Passworteingabe!");
   document.Formular.Passwortbest.focus();
   return false;
	}
	if(document.Formular.Passwortbest.value != document.Formular.Passwort.value)
  {
   alert("Ihre eingebenen Passwörter stimmen nicht überein!");
   document.Formular.Passwortbest.focus();
   return false;
}

}


function chkLogin_e()
{
if(document.Login.EMail.value == "")
  {
   alert("Please enter your email!");
   document.Login.EMail.focus();
   return false;
  }
if(document.Login.EMail.value.indexOf('@') == -1)
  {
   alert("Incorrect email address!");
   document.Login.EMail.focus();
   return false;
  }
 if(document.Login.EMail.value.indexOf('.') == -1)
  {
   alert("Incorrect email address!");
   document.Login.EMail.focus();
   return false;
  }
  if(document.Login.Passwort.value == "")
  {
   alert("Please enter your password!");
   document.Login.Passwort.focus();
   return false;
  }
}
  
function chkLogin()
{
if(document.Login.EMail.value == "")
  {
   alert("Bitte geben Sie Ihre E-Mail-Adresse ein!");
   document.Login.EMail.focus();
   return false;
  }
if(document.Login.EMail.value.indexOf('@') == -1)
  {
   alert("Keine gueltige E-Mail-Adresse!");
   document.Login.EMail.focus();
   return false;
  }

 if(document.Login.EMail.value.indexOf('.') == -1)
  {
   alert("Keine gueltige E-Mail-Adresse!");
   document.Login.EMail.focus();
   return false;
  }
    if(document.Login.Passwort.value == "")
  {
   alert("Bitte geben Sie Ihr Passwort ein!");
   document.Login.Passwort.focus();
   return false;
  }
  if(document.Login.Passwort.value == "")
  {
   alert("Bitte geben Sie Ihr Passwort ein!");
   document.Login.Passwort.focus();
   return false;
  }

}


function chkPA()
{

   if(document.PA.Nachname.value == "")
  {
   alert("Bitte geben Sie Ihren Namen ein!");
   document.PA.Nachname.focus();
   return false;
  }

   if(document.PA.Anzahl.value == "")
  {
   alert("Bitte geben Sie die gewünschte Anzahl ein!");
   document.PA.Anzahl.focus();
   return false;
  }

  if(document.PA.EMail.value == "")
  {
   alert("Bitte geben Sie Ihre E-Mail-Adresse ein!");
   document.PA.EMail.focus();
   return false;
  }
      if(document.PA.EMail.value.indexOf('@') == -1)
  {
   alert("Keine gueltige E-Mail-Adresse!");
   document.PA.EMail.focus();
   return false;
  }
   if(document.PA.EMail.value.indexOf('.') == -1)
  {
   alert("Keine gueltige E-Mail-Adresse!");
   document.PA.EMail.focus();
   return false;
  }
}


function chkPA_e()
{
  if(document.PA.Nachname.value == "")
  {
   alert("Please enter your surname!");
   document.PA.Nachname.focus();
   return false;
  }
 if(document.PA.Anzahl.value == "")
  {
   alert("Please enter the number of tickets!");
   document.PA.Strasse.focus();
   return false;
}
if(document.PA.EMail.value == "")
  {
   alert("Please enter your email!");
   document.PA.EMail.focus();
   return false;
  }
if(document.PA.EMail.value.indexOf('@') == -1)
  {
   alert("Incorrect email address!");
   document.PA.EMail.focus();
   return false;
  }
 if(document.PA.EMail.value.indexOf('.') == -1)
  {
   alert("Incorrect email address!");
   document.PA.EMail.focus();
   return false;
  }
}

function chkFormularLA_e()
{
 if(document.Formular.LA_Vorname.value == "")
  {
   alert("Please enter your first name!");
   document.Formular.LA_Vorname.focus();
   return false;
  }
   if(document.Formular.LA_Nachname.value == "")
  {
   alert("Please enter your surname!");
   document.Formular.LA_Nachname.focus();
   return false;
  }
 if(document.Formular.LA_Strasse.value == "")
  {
   alert("Please enter your street!");
   document.Formular.LA_Strasse.focus();
   return false;
}
if(document.Formular.LA_PLZ.value.length <=  3 )
 {
 alert("Please enter your postal code!");
 document.Formular.LA_PLZ.focus();
 return false;
}
 if(document.Formular.LA_Ort.value == "")
  {
   alert("Please enter your city!");
   document.Formular.LA_Ort.focus();
   return false;
  }
}
  
function chkFormularLA()
{
 if(document.Formular.LA_Vorname.value == "")
  {
   alert("Bitte geben Sie Ihren Vornamen ein!");
   document.Formular.LA_Vorname.focus();
   return false;
  }
   if(document.Formular.LA_Nachname.value == "")
  {
   alert("Bitte geben Sie Ihren Namen ein!");
   document.Formular.LA_Nachname.focus();
   return false;
  }
 if(document.Formular.LA_Strasse.value == "")
  {
   alert("Bitte geben Sie die Strasse an!");
   document.Formular.LA_Strasse.focus();
   return false;
}
if(document.Formular.LA_PLZ.value.length <=  3 )
 {
 alert("Bitte geben Sie die Postleitzahl korrekt an!");
 document.Formular.LA_PLZ.focus();
 return false;
}
 if(document.Formular.LA_Ort.value == "")
  {
   alert("Bitte geben Sie den Wohnort an!");
   document.Formular.LA_Ort.focus();
   return false;
  }
}

function chknewsletter_e()
{

if(document.nl.email.value == "")
  {
   alert("Please enter your email!");
   document.nl.email.focus();
   return false;
  }
if(document.nl.email.value.indexOf('@') == -1)
  {
   alert("Incorrect email address!");
   document.nl.email.focus();
   return false;
  }
 if(document.nl.email.value.indexOf('.') == -1)
  {
   alert("Incorrect email address!");
   document.nl.email.focus();
   return false;
  }
}

function chknewsletter()
{

if(document.nl.email.value == "")
  {
   alert("Bitte EMail Adresse eingeben!");
   document.nl.email.focus();
   return false;
  }
if(document.nl.email.value.indexOf('@') == -1)
  {
   alert("Falsche EMail Adresse!");
   document.nl.email.focus();
   return false;
  }
 if(document.nl.email.value.indexOf('.') == -1)
  {
   alert("Falsche EMail Adresse!");
   document.nl.email.focus();
   return false;
  }
}


function Total() 
{
var tot = 0;
tot += (1 * document.Zimmer.EZ.value);
tot += (2 * document.Zimmer.DZ.value);
document.Zimmer.Personen.value = tot;
}

function FTag() 
{
var tagvon = document.Zimmer.tagabb.value;
var monatvon = document.Zimmer.monatabb.value;

if (monatvon == 1 || monatvon == 3 || monatvon == 5 || monatvon == 7 || monatvon == 8 || monatvon == 10 || monatvon == 12)
	{
	var monatstyp = 31;
	}

if (monatvon == 4 || monatvon == 6 || monatvon == 9 || monatvon == 11)
	{
	var monatstyp = 30;
	}
	
if (monatvon == 2)
	{
	var monatstyp = 28;
	}
	
if (tagvon > tagbis)
	{
	tagvon++
	document.Zimmer.tagbiss.value = tagvon;	
	}
	
}

function FMonat() 
{
var monatvon = document.Zimmer.monatabb.value;
var monatbis = document.Zimmer.monatbiss.value;

if (monatvon > monatbis)
	{
	document.Zimmer.monatbiss.value = monatvon;	
	}
	
}

function chkFormularZ()
{
 if(document.Zimmer.EZ.value == "" && document.Zimmer.DZ.value == "")
  {
   alert("Bitte wählen Sie Ihre Zimmerart!");
   document.Zimmer.EZ.focus();
   return false;
   exit;
  }
}


function chkFormularZE()
{
 if(document.Zimmer.EZ.value == "" && document.Zimmer.DZ.value == "")
  {
   alert("Please choose the type of your room!");
   document.Zimmer.EZ.focus();
   return false;
   exit;
  }
}


function chkFormularCC()
{
  if(document.LLogin.ccInhaber.value == "")
  {
   alert("Bitte geben Sie den Namen des Kreditkarten Inhabers ein!");
   document.LLogin.ccInhaber.focus();
   return false;
  }
  
   if(document.LLogin.ccNummer.value == "")
  {
   alert("Bitte geben Sie die Kreditkartennummer ein!");
   document.LLogin.ccNummer.focus();
   return false;
  }
  
     if(document.LLogin.ccNummer.value.length <=  14 )
  {
   alert("Bitte geben Sie die Kreditkartennummer vollständig ein!");
   document.LLogin.ccNummer.focus();
   return false;
  }
 
     if(document.LLogin.ccCode.value == "")
  {
   alert("Bitte geben Sie die Prüfnummer ein!");
   document.LLogin.ccCode.focus();
   return false;
  }

    if(document.LLogin.ccCode.value.length <  3 )
  {
   alert("Bitte geben Sie die Prüfnummer korrekt ein!");
   document.LLogin.ccCode.focus();
   return false;
  }

    if(document.LLogin.ccCode.value.length >  4 )
  {
   alert("Bitte geben Sie die Prüfnummer korrekt ein!");
   document.LLogin.ccCode.focus();
   return false;
  }


}


function chkFormularCC_e()
{
  if(document.LLogin.ccInhaber.value == "")
  {
   alert("Please enter the name of the creditcard holder!");
   document.LLogin.ccInhaber.focus();
   return false;
  }
  
  ccCode
   if(document.LLogin.ccNummer.value == "")
  {
   alert("Please enter the creditcard number!");
   document.LLogin.ccNummer.focus();
   return false;
  }
  
    if(document.LLogin.ccCode.value == "")
  {
   alert("Please enter the securitycode!");
   document.LLogin.ccCode.focus();
   return false;
  }


    if(document.LLogin.ccNummer.value.length <=  14 )
  {
   alert("Please enter the correct credit card number!");
   document.LLogin.ccNummer.focus();
   return false;
  }
 
  
    if(document.LLogin.ccCode.length <  3 )
  {
   alert("Please enter the correct security code!");
   document.LLogin.ccCode.focus();
   return false;
  }
 
   
    if(document.LLogin.ccCode.length >  4 )
  {
   alert("Please enter the correct security code!");
   document.LLogin.ccCode.focus();
   return false;
  }

}

