function Validator(theForm)
{

  if (theForm.title.value == "")
  {
    alert("Please fill out all required fields!!"); // no title
    theForm.title.focus();
    return (false);
  }

  if (theForm.fname.value == "")
  {
    alert("Please fill out all required fields!!"); // no vorname
    theForm.fname.focus();
    return (false);
  }

if (theForm.lname.value == "")
  {
    alert("Please fill out all required fields!!"); // no name
    theForm.lname.focus();
    return (false);
  }
  
if (theForm.street.value == "")
  {
    alert("Please fill out all required fields!!"); // no strasse
    theForm.street.focus();
    return (false);
  }  

if (theForm.postcode.value == "")
  {
    alert("Please fill out all required fields!!"); // no plz
    theForm.postcode.focus();
    return (false);
  }

if (theForm.city.value == "")
  {
    alert("Please fill out all required fields!!"); // no plz
    theForm.city.focus();
    return (false);
  }

if (theForm.country.value == "")
  {
    alert("Please fill out all required fields!!"); // no land
    theForm.country.focus();
    return (false);
  }

if (theForm.phone.value == "")
  {
    alert("Please fill out all required fields!!"); // no telefon
    theForm.phone.focus();
    return (false);
  }

  if (theForm.email.value == "")
  {
    alert("Please fill out all required fields!!"); // no email
    theForm.email.focus();
    return (false);
  }
  
 if (theForm.email.value != "" && (theForm.email.value.indexOf("@") == -1 || theForm.email.value.indexOf(".") == -1)) {
	alert("Please fill out all required fields!!");     // email is not correct
	theForm.email.focus();
    return (false);	
}

return (true);
}

