function check_email(obj) {
	if ((/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(obj.value)) == false){
		alert("Please enter a valid email address")
		obj.focus();
		obj.select();
		return false;
	} 
}

function vlidate(theForm) {
	if(theForm.name.value == "") {
		alert("Please enter name!");
		theForm.name.focus();
		return false ;
	}
	/*if(theForm.company.value == "") {
		alert("Please enter company!");
		theForm.company.focus();
		return false ;
	}*/
	if(theForm.telephone.value == "") {
		alert("Please enter telephone number!");
		theForm.telephone.focus();
		return false ;
	}	
	/*if(theForm.email.value == "") {
		alert("Please enter email address!");
		theForm.email.focus();
		return false ;
	}	
	flag = check_email(theForm.email);
	if(flag==false) { return false; }	*/
	return true;	
}	

function vlidateCall(theForm) {
	if(theForm.name.value == "") {
		alert("Please enter name!");
		theForm.name.focus();
		return false ;
	}
	if(theForm.telephone.value == "") {
		alert("Please enter telephone.");
		theForm.telephone.focus();
		return false ;
	}	
	/*if(theForm.email.value == "") {
		alert("Please enter email address!");
		theForm.email.focus();
		return false ;
	}	
	flag = check_email(theForm.email);
	if(flag==false) { return false; }*/
 return true;	
}	

function clearFormCall() {	
	theForm = document.forms[0];
	theForm.name.value = ""
	theForm.company.value = ""
	theForm.telephone.value = ""
	theForm.email.value = ""
	theForm.requirement.value = ""
}


function clearForm() {	
	theForm = document.forms[0];
	theForm.name.value = ""
	theForm.company.value = ""
	theForm.telephone.value = ""
	theForm.email.value = ""
	theForm.address.value = ""
	theForm.postcode.value = ""
	theForm.mobile.value = ""
	theForm.size_required.value = ""
	theForm.location.value = ""
	theForm.how_did.value = ""
	theForm.comment.value = ""
	for(i = 0; i < theForm.length; i++)
	  theForm.recieve[i].checked = false;
}