function add_contacts(){
	//alert("df");
	if((chk_empty(document.contact.f_Name))&&(chk_empty(document.contact.f_LastName))&&(checkEmail(document.contact.f_Email))&&(chk_empty(document.contact.f_Telephone))){
	document.contact.action="process.php?val=send_mail";
	document.contact.submit();
	return true;
	}
	else{return false;}
}

function chk_empty(bx){
	if(bx.value==""){
		var nm=bx.name.split("_");
		var b_nm=nm[1].toUpperCase();
		alert("The field \'"+b_nm+"\' cannot be empty. Please enter a valid value");
		bx.focus();
		return false;
	}
	else{return true;}	
}
function checkEmail(cho) {
   if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(cho.value)){
   return (true);
   }
	alert("Invalid E-mail Address! Please re-enter.");
	cho.focus();
	return (false);
}