function Validator(theForm)
{

  if (theForm.title.value == "")
  {
    alert("Bitte füllen sie alle Pflichtfelder aus!"); // no title
    theForm.title.focus();
    return (false);
  }

  if (theForm.fname.value == "")
  {
    alert("Bitte füllen sie alle Pflichtfelder aus!"); // no vorname
    theForm.fname.focus();
    return (false);
  }

if (theForm.lname.value == "")
  {
    alert("Bitte füllen sie alle Pflichtfelder aus!"); // no name
    theForm.lname.focus();
    return (false);
  }
  
if (theForm.street.value == "")
  {
    alert("Bitte füllen sie alle Pflichtfelder aus!"); // no strasse
    theForm.street.focus();
    return (false);
  }  

if (theForm.postcode.value == "")
  {
    alert("Bitte füllen sie alle Pflichtfelder aus!"); // no plz
    theForm.postcode.focus();
    return (false);
  }

if (theForm.city.value == "")
  {
    alert("Bitte füllen sie alle Pflichtfelder aus!"); // no plz
    theForm.city.focus();
    return (false);
  }

if (theForm.country.value == "")
  {
    alert("Bitte füllen sie alle Pflichtfelder aus!"); // no land
    theForm.country.focus();
    return (false);
  }

if (theForm.phone.value == "")
  {
    alert("Bitte füllen sie alle Pflichtfelder aus!"); // no telefon
    theForm.phone.focus();
    return (false);
  }

  if (theForm.email.value == "")
  {
    alert("Bitte füllen sie alle Pflichtfelder aus!"); // no email
    theForm.email.focus();
    return (false);
  }

 if (theForm.email.value != "" && (theForm.email.value.indexOf("@") == -1 || theForm.email.value.indexOf(".") == -1)) {
	alert("Bitte füllen sie alle Pflichtfelder aus!");     // email is not correct
	theForm.email.focus();
    return (false);	
}

return (true);
}

