//var FinalErrorMessage="Whoops!  We need your to proceed with your quote";
 


function FomValidation()
{
 
    var FinalErrorMessage="";
    var fodusid="";

    if(IsEmptyString("txt_name") && IsEmptyString("txt_email") )
    {
        FinalErrorMessage="name and email";
        fodusid="txt_name";
    }

    else if(IsEmptyString("txt_name"))
    {
        FinalErrorMessage="name";
        fodusid="txt_name";
    }

    else  if(IsEmptyString("txt_email") )
    {
        FinalErrorMessage="email";
        fodusid="txt_email";
    }

    else  if(!IsValidEmail("txt_email") )
    {
        FinalErrorMessage="valid email";
        fodusid="txt_email";
    }

    
    if(FinalErrorMessage.length>0)
    {
        alert("Whoops!  We need your "+FinalErrorMessage+"  to proceed with your quote");
        
        try{
            document.getElementById(fodusid).focus();
        }catch(e){}

        return false;
    }
    else
    {
        return true;
    }
 
    
}
 

  
