<!-- //hide the script
function clearBox(obj, defaultText) {
    if (obj.value == defaultText) {
        obj.value = "";
    }
}


function checkEmail(strng) {
	var error = "";

	var emailFilter=/^.+@.+\..{2,6}$/;

	if (!(emailFilter.test(strng))) {
		return false;
	}

	var illegalChars= /[\(\)\<\>\,\;\:\\\/\"\[\] ']/

	if (strng.match(illegalChars)) {
		return false;
	}

	return true;
}


function form_validation(theForm)
{

 	if(theForm.sender.value == "") {
 		 alert("Please enter your Full Name.");
 		 theForm.sender.focus();
 		 return(false);
 	}

		if(theForm.sender.value == "Enter your full name here") {
			 alert("Please enter your Full Name.");
			 theForm.sender.focus();
			 return(false);
		}

 	if(theForm.address.value == "") {
 		 alert("Please enter your Address.");
 		 theForm.address.focus();
 		 return(false);
 	}

		if(theForm.address.value == "Enter your address here (don’t forget to include Your house/flat number)") {
			 alert("Please enter your Address.");
			 theForm.address.focus();
			 return(false);
		}


	if(!checkEmail(theForm.email.value)) {
		 alert("Please enter a valid Email Address");
		theForm.email.focus();
		 return false;
	}

 	if(theForm.comments.value == "") {
 		 alert("Please enter some details.");
 		 theForm.comments.focus();
 		 return(false);
 	}

		if(theForm.comments.value == "Enter the details of the repair(s) required") {
			alert("Please enter some details.");
			 theForm.comments.focus();
			 return(false);
		}

 	if(theForm.room.value == "") {
 		 alert("Please enter some details.");
 		 theForm.room.focus();
 		 return(false);
 	}

		if(theForm.room.value == "Enter the exact location of the repair") {
			alert("Please enter some details.");
			 theForm.room.focus();
			 return(false);
		}

 	if(theForm.access.value == "") {
 		 alert("Please enter some details.");
 		 theForm.access.focus();
 		 return(false);
 	}

		if(theForm.access.value == "Enter when the contractor can get access to your home to carry out the work") {
			 alert("Please enter some details.");
			 theForm.access.focus();
			 return(false);
		}


	return (true);
}
// end script hiding -->

