function contactCheck()
{
	var nameV="";
	var emailV="";
	var subjectV="";
	var enquiryDetsV="";
	var alertField="";//variable used to check if all fields have been completed
	
	if(document.contactform.name.value == "")
	//if the contact name field is blank returns the following lines text to the contactName variable
		{
			nameV = "\n> Contact Name";	
		}
	if(document.contactform.email.value == "")
	//if the email field is blank returns the following lines text to the email variable
		{
			emailV = "\n> Email Address";	
		}
	if(document.contactform.subject.value == "")
	//if the email field is blank returns the following lines text to the email variable
		{
			subjectV = "\n> Subject";	
		}
	if(document.contactform.enquiryDets.value == "")
	//if the email field is blank returns the following lines text to the email variable
		{
			enquiryDetsV = "\n> Enquiry Details";	
		}
	
if(nameV != "" || emailV != ""  || subjectV != "" || enquiryDetsV != "" )		    //checks to see if either of the fields in the form contact name, contact number, email address is blank if so    	evaluates to true and returns the following indicator to the variable
		{
			alertField = "Missing Fields";
		}
	if(alertField != "")//checks to see if either variable content evaluates to true if so the following alert is launched
		{
			alert("The following fields needs to be completed: " + nameV + subjectV + emailV + enquiryDetsV);
		}
	if(alertField != "Missing Fields")
				{
				document.forms[0].submit();
				}
				return false;
	
}
