function validate(aForm)
{
	var frm=aForm;
	if(frm.txtName.value=='')
	{
		alert("Enter the Name");
		frm.txtName.focus();
		return false;
	}

	if(frm.txtEmail.value=='')
	{
		alert("Enter the Mail");
		frm.txtEmail.focus();
		return false;
	}
	if (!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(frm.txtEmail.value))){
		alert("Enter the valid email id");
		frm.txtEmail.focus();
		return false
		}
		
		if(frm.txtPhone.value=='')
	{
		alert("Enter the Telephone Number");
		frm.txtPhone.focus();
		return false;
	}
	
	 if (!(frm.txtPhone.value.search(/^[0-9][0-9][0-9]\-[0-9][0-9][0-9]\-[0-9][0-9][0-9][0-9]$/) != -1))
	 {
		 alert("Phone Number Format is 123-123-1234");
		 frm.txtPhone.focus();
		 return false;
	}	
	
		if(frm.txtFax.value=='')
	{
		alert("Enter the Fax");
		frm.txtFax.focus();
		return false;
	}
	
	 if(isNaN(frm.txtFax.value)) 
	{
		alert("Please Enter a Number Only.");
		frm.txtFax.focus();
		return false;
    }
	
	if(frm.tareaComments.value=='')
	{
	alert("Enter your Comments");
	frm.tareaComments.focus();
	return false;
	}
	
	return true;
	
}