// JavaScript Document


<!--

function SymError()
{
  return true;
}

window.onerror = SymError;

var SymRealWinOpen = window.open;

function SymWinOpen(url, name, attributes)
{
  return (new Object());
}

window.open = SymWinOpen;

//-->



<!--
function validatecontact(){
	if (propertyinvestmenttraining_enquiry_form.title.value == ""){
		alert("You must complete the Title field...");
		propertyinvestmenttraining_enquiry_form.title.focus();
		return (false);
	
	}

	if (propertyinvestmenttraining_enquiry_form.firstname.value == ""){
		alert("You must complete the First Name field...");
		propertyinvestmenttraining_enquiry_form.firstname.focus();
		return (false);
	
	}

	if (propertyinvestmenttraining_enquiry_form.lastname.value == ""){
		alert("You must complete the Last Name field...");
		propertyinvestmenttraining_enquiry_form.lastname.focus();
		return (false);
	
	}


	if (propertyinvestmenttraining_enquiry_form.address1.value == ""){
		alert("You must complete the Address field...");
		propertyinvestmenttraining_enquiry_form.address1.focus();
		return (false);
	
	}

	if (propertyinvestmenttraining_enquiry_form.town.value == ""){
		alert("You must complete the Town field...");
		propertyinvestmenttraining_enquiry_form.town.focus();
		return (false);
	
	}

	if (propertyinvestmenttraining_enquiry_form.postcode.value == ""){
		alert("You must complete the Postcode field...");
		propertyinvestmenttraining_enquiry_form.postcode.focus();
		return (false);
	
	}

	if (propertyinvestmenttraining_enquiry_form.dayphone.value == ""){
		alert("You must complete the Contact Number field...");
		propertyinvestmenttraining_enquiry_form.dayphone.focus();
		return (false);
	
	}

	if (propertyinvestmenttraining_enquiry_form.course.value == ""){
		alert("You must complete the Course field...");
		propertyinvestmenttraining_enquiry_form.course.focus();
		return (false);
	
	}

	if (propertyinvestmenttraining_enquiry_form.email.value == ""){
		alert("You must complete the Email field...");
		propertyinvestmenttraining_enquiry_form.email.focus();
		return (false);
				
	}
	
	// test if valid email address, must have @ and .
	var checkEmail = "@.";
	var checkStr = propertyinvestmenttraining_enquiry_form.email.value;
	var EmailValid = false;
	var EmailAt = false;
	var EmailPeriod = false;
	for (i = 0;  i < checkStr.length;  i++)
	{
	ch = checkStr.charAt(i);
	for (j = 0;  j < checkEmail.length;  j++)
	{
	if (ch == checkEmail.charAt(j) && ch == "@")
	EmailAt = true;
	if (ch == checkEmail.charAt(j) && ch == ".")
	EmailPeriod = true;
		  if (EmailAt && EmailPeriod)
			break;
		  if (j == checkEmail.length)
			break;
		}
		// if both the @ and . were in the string
	if (EmailAt && EmailPeriod)
	{
			EmailValid = true
			break;
		}
	}
	if (!EmailValid){
		alert("The \"email\" field must contain an \"@\" and a \".\".");
		propertyinvestmenttraining_enquiry_form.email.focus();
		return (false);
	}
	
	//E-mail Validation Part II
	if (propertyinvestmenttraining_enquiry_form.email.value == ""){
		alert("You must enter a correct Email Address");
		propertyinvestmenttraining_enquiry_form.email.focus();
		return (false);
		
	}
}

//-->

