function ValidateEmailMe(){
	if(document.getElementById('email_me').value=='Enter Your Email Address' || document.getElementById('email_me').value==''){
		alert("Please enter your email address and we will contact you with 24 hours.");
		return false;
	}else if (!document.getElementById('email_me').value.match(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/)) {
		alert("The email address entered does not appear to be valid.\nPlease re-enter the email address.");
		document.getElementById('email_me').focus();
		return false;
	}else{
		document.form_1.submit();
		return true;
	}
}

function SendRequestEmail(){
	if(document.getElementById('email_me').value=='Enter Your Email Address'){
		document.getElementById('email_me').value='';
		return true;
	}
	if(document.getElementById('email_me').value==''){
		document.getElementById('email_me').value='Enter Your Email Address';
		return true;
	}
}

function ToggleClass(val,id){
	if(val=='0'){
		document.getElementById(id).className='menu_item_hover';
	}
	if(val=='1'){
		document.getElementById(id).className='menu_item';
	}
}

function SubForm(form_name){
	window.location=form_name+".php"	
}

function ValidContactUs(){
	if(!document.getElementById('name').value){
		alert('Please enter a contact name.');
		document.getElementById('name').focus();
		return false;
	}
	if(!document.getElementById('number').value){
		alert('Please enter a contact number.');
		document.getElementById('number').focus();
		return false;
	}
	if(!document.getElementById('email').value){
		alert('Please enter a contact email.');
		document.getElementById('email').focus();
		return false;
	}
	if (!document.getElementById('email').value.match(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/)) {
		alert("The email address entered does not appear to be valid.\nPlease re-enter the email address.");
		document.getElementById('email').focus();
		return false;
	}
	if(!document.getElementById('msg').value){
		alert('Please enter your message.');
		document.getElementById('msg').focus();
		return false;
	}
}
