function ReloadVerificationImage() {
	var dNow = new Date();	
	var sKey = "";

	//create a unique key based on the current time to retrieve a non-cached image
	sKey = sKey + dNow.getHours();
	sKey = sKey + dNow.getMinutes();
	sKey = sKey + dNow.getSeconds();
	sKey = sKey + dNow.getMilliseconds();
	sKey = sKey + dNow.getDate();
	sKey = sKey + dNow.getMonth() + 1;
	sKey = sKey + dNow.getFullYear();

	//reset our image source
	document.getElementById("VerificationImage").src = "GetVerificationImage.asp?sKey=" + sKey;
}

function CheckForm(oForm) {
	with (oForm) {
		//Hide all note elements before validating the form
		HideElements("note_");

		//Check that the required field has been entered
		if ( _1_Name.value == "" ) {
			ShowAndSet("_1_Name","Please enter your Name.");
			_1_Name.focus();
			return false;
		}

		//Check that the required field has been entered
		if ( _5_Email_Address.value == "" ) {
			ShowAndSet("_5_Email_Address","Please enter your email address.");
			_5_Email_Address.focus();
			return false;
		}

		//Check that the Email is a valid one
		if ( !isEmail(_5_Email_Address.value) ) {
			ShowAndSet("_5_Email_Address","Please enter a valid Email Address.");
			_5_Email_Address.focus();
			return false;
		}

		//Check that the required field has been entered
		if ( _15_Comments.value == "" ) {
			ShowAndSet("_15_Comments","Please enter your comments/enquiry.");
			_15_Comments.focus();
			return false;
		}

		//Check that the required field has been entered
		if ( VerificationCode.value == "" ) {
			ShowAndSet("VerificationCode","Please enter the Security Code (the characters in the image).");
			VerificationCode.focus();
			return false;
		}
	}
	return true;
}

function Focus() {
	document.forms.Contact._1_Name.focus();
}

//Ensure that no matter what, the focus function is executed on the loading of the page
if (window.addEventListener)
window.addEventListener("load", Focus, false)
else if (window.attachEvent)
window.attachEvent("onload", Focus)
else if (document.getElementById)
window.onload=Focus