var test3= /^[0-9-]+$/;
function quickvalidation(reg){
if (document.quickform.quickcatid.value=='')
    {
    alert("Please select Category");
    document.quickform.quickcatid.focus();
    return(false);
    }
 
 if (document.quickform.quickfirstname.value=='')
    {
    alert("Please enter Name");
    document.quickform.quickfirstname.focus();
    return(false);
    }
    
 if (document.quickform.quickphone.value=="")
		{
		alert("Enter Phone Number");
		document.quickform.quickphone.focus();
		return(false);
		}
 if (document.quickform.quickphone.value!="" && !document.quickform.quickphone.value.match(test3))
	    {
		alert("Invalid Phone Number");
		document.quickform.quickphone.focus();
		return(false);
		}
    
 if (document.quickform.quickemail.value=='')
    {
    alert("Please enter Email");
    document.quickform.quickemail.focus();
    return(false);
    }
 
 if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.quickform.quickemail.value)){}else{

alert("Invalid Email. Please enter Valid Email ID");

document.quickform.quickemail.focus();

return false;

}						
  return(true);                                                       
  }							

