function doContactSubmit(){//alert();}
	fName=document.formContact.fnm.value;
	if (fName=="")
	 	{ msg="נא למלא שם ";
		  alert(msg);
		  document.formContact.fnm.select();
		  return;}
	/*lName=document.formContact.lnm.value;
	if (lName=="")
	 	{ msg="נא למלא משפחה ";
		  alert(msg);
		  document.formContact.lnm.select();
		  return;}*/
	Email=document.formContact.eml.value;
	if ((Email=='דוא"ל')||(Email==''))
	 	{ msg= "נא למלא דוא''ל";
		  alert(msg);
		  document.formContact.eml.select();
		  return;}
	
	if ((Email.indexOf("@")<2) || (Email.lastIndexOf(".")<=(Email.indexOf("@")+2) || ((Email.length<8)) || (Email.charAt(0) == "-" || Email.charAt(0) == "_" || Email.charAt(0) == "@" || Email.charAt(0) == "-" || Email.charAt(0) == "_" || Email.charAt(0) == "."))) 
	  	{ msg= "נא למלא דוא''ל תקין";
		  alert(msg);
		  document.formContact.eml.select();
		  return;} 
	/*phone=document.formContact.pn.value;
	if (phone=='')
	 	{ msg= "נא למלא טלפון";
		  alert(msg);
		  document.formContact.pn.select();
		  return;}
	cellphone=document.formContact.cpn.value;
	if (phone=='')
	 	{ msg= "נא למלא טלפון נייד";
		  alert(msg);
		  document.formContact.cpn.select();
		  return;}*/
	document.formContact.submit();
	ClearContactForm();
	
}

function ClearContactForm()
	{ 
	 var el = formContact.elements;
	 for(i=0;i<el.length;i++)
 	   {
 	   if ((el(i).type=="text")||(el(i).type=="textarea")||(el(i).type=="hidden"))
	   	 	el(i).value="";	   
	   if (el(i).type=="select-one")
	   	 	el(i).value="0";	 
		}	
	 }
	 
	 
function isMail(e){	
	var strCheck = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_.@';
	var whichCode = (window.Event) ? e.which : e.keyCode;		
	if (whichCode != 0){
		if (whichCode == 13) return true;
		key = String.fromCharCode(whichCode);
		if (strCheck.indexOf(key) == -1 ) return false;
		else return true;
	}
}
function isNmbr(e){	
	var strCheck = '0123456789';
	var whichCode = (window.Event) ? e.which : e.keyCode;	
	if (whichCode != 0){
		if (whichCode == 13) return true;
		key = String.fromCharCode(whichCode);
		if (strCheck.indexOf(key) >-1 ) return  true;
		else return false;
	}
}
function isTel(e){	
	var strCheck = '0123456789.-';
	var whichCode = (window.Event) ? e.which : e.keyCode;	
	if (whichCode != 0){
		if (whichCode == 13) return true;
		key = String.fromCharCode(whichCode);
		if (strCheck.indexOf(key) >-1 ) return  true;
		else return false;
	}
}
