function PriviewSubmitForm(theForm){
  if (theForm.tle.selectedIndex == 0)
  {
    alert("Please select a Title.");
    theForm.tle.focus();
    return (false);
  }

  if (theForm.giv.value == "")
  {
    alert("Please enter a value for the \"First name\" field.");
    theForm.giv.focus();
    return (false);
  }
  if (theForm.sur.value == "")
  {
    alert("Please enter a value for the \"Family name\" field.");
    theForm.sur.focus();
    return (false);
  }

  
if (theForm.add1.value == "")
  {
    alert("Please enter an Address");
    theForm.add1.focus();
    return (false);
  }

  
  if (theForm.suburb.value == "")
  {
    alert("Please enter a value for the \"City\" field.");
    theForm.suburb.focus();
    return (false);
  }

  if (theForm.pcode.value == "")
  {
    alert("Please enter a value for the \"Postal code/Zip\" field.");
    theForm.pcode.focus();
    return (false);
  }
    
    if (theForm.country.selectedIndex == 0)
 
 {
    alert("Please select a Country from the list");
    theForm.country.focus();
    return (false);
  }

	window.open("inv.asp","invwin","toolbar=yes,menubar=yes,scrollbars=yes,resizable=yes,width=680,height=550")
	document.RegForm.action="inv.asp";
	document.RegForm.target="invwin";
	document.RegForm.submit(theForm);


}

