

	function checkform() 
	{ 
	
	var message ="";

	if (window.document.form.enquiry_type.value == ""  ) {
		message +="* Your Enquiry Type\n"; 
		
	}
	
	if (window.document.form.name.value == "" || window.document.form.name.value == "Name" ) {
		message +="* Your Name\n"; 
		
	}

	if (window.document.form.email.value == "Email Address" ) {
		message +="* Your Email Address\n"; 
		
	}
	if(document.form.email.value != "Email Address" ){
		if ((document.form.email.value.indexOf('@') < 1) ||                     								// '@' cannot be in first position
			(document.form.email.value.lastIndexOf('.') <= document.form.email.value.indexOf('@')+1) ||     // Must be at least one valid char btwn '@' and '.'
			(document.form.email.value.lastIndexOf('.') == document.form.email.value.length - 1 ) ||        // Must be at least one valid char after '.'
			(document.form.email.value.indexOf(' ') != -1))                    								// No empty spaces permitted
		{
				message +="* You need to enter a valid Email Address\n";
				
		}
	}
	
	if (window.document.form.company.value == "" || window.document.form.company.value == "Company") {
		message +="* Your Company\n"; 
		 
	}
	
	if(message != ''){alert("The following fields are required:\n"+message); return false; }



	}

	function doClear(theText) {
    	 if (theText.value == theText.defaultValue) {
         theText.value = ""
   	  }
	 }

	 function doCheck(theText, y) {
    	 if (theText.value == "") {
         theText.value = y
   	  }
	 }
	
	

