<!--

function stopEnter(event) {
  if (event.keyCode == 13) {
    event.returnValue = false;
    return false;
  }
}

// POSTCODE
function validatePostCode(theForm) {

    var postcode = parseInt(theForm.txtPostCode.value, 10);
	if (!theForm.txtPostCode.value || (postcode != theForm.txtPostCode.value || postcode > 9999)) {
	    alert("You must enter a valid Australian postcode.");
		theForm.txtPostCode.focus();
		return false;
	}
	
	return true;
}

// LEAD FORM
function validateForm(theForm) {
	if (!theForm.Street1.value) {
		alert("You must enter the Address.");
		theForm.Street1.focus();
		return false;
	}
	
	if (!theForm.Name.value) {
		alert("You must enter your Name.");
		theForm.Name.focus();
		return false;
	}
	
	var emailFilter=/^.+@.+\..{2,3}$/;
	if (theForm.Email.value=="" || !(emailFilter.test(theForm.Email.value)))
	{   alert("Please enter a valid Email Address before continuing.");
		theForm.Email.focus();
		return false;
	}
	
	return true;
}
-->