<!--
function MasterFormValidate(theForm)
{
	var errorDesc = "";


   		if (theForm.t1.value == "")
  		{
    		theForm.t1.focus();
			errorDesc +="Full Name\n";
  		}

   		if (theForm.t2.value == "")
  		{
    		theForm.t2.focus();
			errorDesc +="First Line of your address\n";
  		}

               if (theForm.t6.value == "")
               {
               theForm.t6.focus();
               errorDesc +="Poscode\n";
               }
              else
               {
                  if (isValidPostcode(theForm.t6.value) == false)
                   {
                     theForm.t6.focus();
                     errorDesc +="Invalid Poscode\n"
                   }
                  else
                  {
                 //alert(formatPostcode(theForm.t8.value));
                 theForm.t6.value =(formatPostcode(theForm.t6.value));
                  }
               }

   		if (theForm.t7.value == "")
  		{
    		theForm.t7.focus();
			errorDesc +="Daytime Phone No.\n";
  		}


   		if (theForm.t9.value == "")
  		{
    		theForm.t9.focus();
			errorDesc +="Email\n";
  		}
  		else
  		{

                    var email = document.getElementById('emailaddress');
                    var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
                    if (!filter.test(email.value)) {
                    theForm.t9.focus();
			errorDesc +="Invalid Email Address\n";
  		 }
  		}


   		if (theForm.t10.value !== theForm.t9.value)
  		{
    		theForm.t10.focus();
			errorDesc +="Email does not Re-typed Email\n";
  		}


	if (errorDesc == "")
  		{
			return (true);
  		}
	else
  		{
			alert("There are problem(s) with your submission: you have missing inputs:\n\n" + errorDesc);
			errorDesc = "";
			return (false);
  		}

}

//-->
