// JavaScript Document
function check_required(field,label){
	
	if (document.getElementById){
		thisField=document.getElementById(field).value;
		thisLabel=document.getElementById(label).style;
		if (thisField.length<1){
			thisLabel.color="Red";
			return "0";
		}
		else {
			thisLabel.color="black";
			return "1";
		}
	}
}
		function validate(){
			strCreatedBy=check_required("your_name","lblyour_name");
			strPhone=check_required("phone","lblphone");
			strEmail=check_required("email","lblemail");
			strMessage=check_required("comments","lblcomments");
			
			if (strCreatedBy=="0" || strPhone=="0" || strEmail=="0" || strMessage=="0"){
				alert("There are still required fields that have not been completed!");
			}
			else {
				document.frm.submit();
			}
		}

