function initFormContactUs()
{
	
	frmvalidator = new Validator("frmGlad");
	frmvalidator.clearAllValidations();
  	frmvalidator.addValidation("FirstName","req", "Please enter your name.");
	frmvalidator.addValidation("LastName","req", "Please enter your last name.");
  	frmvalidator.addValidation("emailAddress","req", "Please enter your email address."); 
	frmvalidator.addValidation("emailAddress","email", "Please enter a valid email address.");  
	frmvalidator.addValidation("EnquiryType","req", "Please select type of enquiry.");
  	frmvalidator.addValidation("comments","req", "Please enter your comments.");    

	
  	
}

function ageMsg(age)
{
	if (age.value != "")
	{
		if(age.value >= 13 && age.value <= 17)
            alert('"As you under the age of 18, please confirm that you have your parent or guardian\'\s permission to enter the competition (as per our terms and conditions)"');
	}
}


function ageCheck()
{

	if (!document.getElementsByTagName) {
		
		return false; 
	} 
	// create an array of objects of each link in the document 
	
	var popuplinks = document.getElementsByTagName("input");
	// loop through each of these links (anchor tags) 	
	for (var i=0; i < popuplinks.length; i++) {	
		// if the link has a class of "popup"...
		if (popuplinks[i].className == "ageCheck") {
			// add an onclick event on the fly to pass the href attribute	
			// of the link to our second function, openPopUp 	
			popuplinks[i].onblur = function() {ageMsg(this)};
			
		}
	} 
}




function ageMsgAskDerm(age)
{
	if (age.value != "")
	{
		if(age.value >= 13 && age.value <= 17)
            alert('"As you are under the age of 18, please confirm that you have your parent or guardian\'\s permission to submit your enquiry."');
	}
}


function ageCheckAskDerm()
{

	if (!document.getElementsByTagName) {
		
		return false; 
	} 
	// create an array of objects of each link in the document 
	
	var popuplinks = document.getElementsByTagName("input");
	// loop through each of these links (anchor tags) 	
	for (var i=0; i < popuplinks.length; i++) {	
		// if the link has a class of "popup"...
		if (popuplinks[i].className == "ageCheckAskDerm") {
			// add an onclick event on the fly to pass the href attribute	
			// of the link to our second function, openPopUp 	
			popuplinks[i].onblur = function() {ageMsgAskDerm(this)};
			
		}
	} 
}



function MouseOver()
{
	MM_preloadImages('../images/genre/nav_home_hi.gif','../images/genre/nav_rapidClearRange_hi.gif','../images/genre/nav_the8hour_hi.gif','../images/genre/nav_ourExperts_hi.gif','../images/genre/nav_tellafriend_hi.gif');	
}
