

function check_form_validates(){
var f = document.this_form;
var msg = "";
var NStar=document.getElementById("full_name_star");
var Estar=document.getElementById("email_address_star");
var Estar2=document.getElementById("confirm_email_address_star");

if (f.Full_Name.value==""){
	msg += ("Full name must be completed.\n");
	NStar.style.color="red";
	NStar.style.fontWeight="bold";
	} else {
	NStar.style.color="";
	NStar.style.fontWeight="";
	}
	
var E1 = f.Email_Address.value;
var E2 = f.Confirm_Email_Address.value;
	
if (E1!=E2){
	msg += ("Please ensure that both email address fields match.\n");
	Estar.style.color="red";
	Estar.style.fontWeight="bold";
	Estar2.style.color="red";
	Estar2.style.fontWeight="bold";
	} else {
	Estar.style.color="";
	Estar.style.fontWeight="";
	Estar2.style.color="";
	Estar2.style.fontWeight="";
	} 	
	
var emailRegEx = /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,8}$/i;
	
	if (f.Email_Address.value.search(emailRegEx) == -1){
		msg += "Please enter a valid email address.\n";	
		Estar.style.color="red";
		Estar.style.fontWeight="bold";
		} else {
		Estar.style.color="black";
		Estar.style.fontWeight="normal";
		}
	

	



if (msg!=""){
alert(msg);
} else {
//alert("Submit");
f.submit();
}
}

function clearField(){
var f = document.this_form;
var textbox1 = f.Further_Details
	if (textbox1.value=="Please provide any further details here and provide as much information as possible."){
		textbox1.value="";
	}
}


