// ActionScript Document
// 2007, Universum Inkasso GmbH

function jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}


// Kontaktforular

 function checkFormular()
  {

	if(document.Formular.Anrede.value == "")
    {
     alert("Bitte Ihre Anrede eingeben!");
     document.Formular.Anrede.focus();
     return false;
    }
	
	if(document.Formular.Name.value == "")
    {
     alert("Bitte Ihren Namen eingeben!");
     document.Formular.Name.focus();
     return false;
    }
	
	if(document.Formular.Vorname.value == "")
    {
     alert("Bitte Ihren Vornamen eingeben!");
     document.Formular.Vorname.focus();
     return false;
    }
	
	if(document.Formular.Geburtsdatum.value == "")
    {
     alert("Bitte Ihr Geburtsdatum eingeben!");
     document.Formular.Geburtsdatum.focus();
     return false;
    }
	
	if(document.Formular.Aktenzeichen.value == "")
    {
     alert("Bitte Ihr Aktenzeichen eingeben!");
     document.Formular.Aktenzeichen.focus();
     return false;
    }
	
	if(document.Formular.Strasse.value == "")
    {
     alert("Bitte Ihre Straße eingeben!");
     document.Formular.Strasse.focus();
     return false;
    }
	
	if(document.Formular.PLZ.value == "")
    {
     alert("Bitte Ihre PLZ eingeben!");
     document.Formular.PLZ.focus();
     return false;
    }
	
	if(document.Formular.Ort.value == "")
    {
     alert("Bitte Ihren Ort eingeben!");
     document.Formular.Ort.focus();
     return false;
    }
		
	if(document.Formular.Telefon.value == "")
    {
     alert("Bitte Ihre Telefonnummer eingeben!");
     document.Formular.Telefon.focus();
     return false;
    }
	
    if(document.Formular.Email.value == "")
    {
     alert("Bitte Ihre E-Mail-Adresse eingeben!");
     document.Formular.Email.focus();
     return false;
    }
	
   if(document.Formular.Email.value.indexOf('@') == -1)
    {
     alert("Bitte eine korrekte E-Mail-Adresse eingeben!");
     document.Formular.Email.focus();
     return false;
    }
	if(document.Formular.Email.value.indexOf('.') == -1)
    {
     alert("Bitte eine korrekte E-Mail-Adresse eingeben!");
     document.Formular.Email.focus();
     return false;
    }
	var chkZ = 1;
   for(i=0;i<document.Formular.Telefon.value.length;++i)
     if(document.Formular.Telefon.value.charAt(i) < "0"
     || document.Formular.Telefon.value.charAt(i) > "9")
       chkZ = -1;
   if(chkZ == -1)
   {
     alert("Die Telefonnummer darf nur aus Zahlen bestehen!");
     document.Formular.Telefon.focus();
     return false;
    }
  
  }