<!-- //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.description.value == "") {
 		 alert("Please enter a description.");
 		 theForm.description.focus();
 		 return(false);
 	}

		if(theForm.description.value == "Enter a brief description of the adaptation needed.") {
			alert("Please enter a description.");
			 theForm.description.focus();
			 return(false);
		}

 	if(theForm.explanation.value == "") {
 		 alert("Please give a reason for the adaptation.");
 		 theForm.explanation.focus();
 		 return(false);
 	}

		if(theForm.explanation.value == "Enter a brief explanation of the reason that the adaptation is needed.") {
			alert("Please give a reason for the adaptation.");
			 theForm.explanation.focus();
			 return(false);
		}

 	if(theForm.contactyou.value == "") {
 		 alert("Please enter you preferred contact method.");
 		 theForm.contactyou.focus();
 		 return(false);
 	}

		if(theForm.contactyou.value == "Enter your preferred contact method") {
			 alert("Please enter you preferred contact method.");
			 theForm.contactyou.focus();
			 return(false);
		}


	return (true);
}
// end script hiding -->
