function validate_form()
{
    var dPath = document.Contact;
    var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
    var reg2 = /^(\d{9})$/;
    var reg3 = /^([0])(\d{8,10})$/;
    with (dPath)
    {    
        dPath.send.disabled=true;        
        if(dPath.Name.value == '')
        {
            alert("שדה שם פרטי הינו שדה חובה, אנא מלא/י אותו");
            dPath.send.disabled=false;
            dPath.Name.focus()
            return false;
        }
        if(dPath.Name2.value == '')
        {
            alert("שדה שם משפחה הינו שדה חובה, אנא מלא/י אותו");
            dPath.send.disabled=false;
            dPath.Name2.focus()
            return false;
        }
        if(dPath.Phone.value == '')
        {
            alert ("שדה טלפון הינו שדה חובה, אנא מלא/י אותו");
            dPath.send.disabled=false;
            dPath.Phone.focus();
            return false;
        }
        if(reg3.test(dPath.Phone.value) == false){
            alert("!מספר הטלפון שהקלדת שגוי");
            dPath.send.disabled=false;
            dPath.Phone.focus();
            return false;
        }
        if(dPath.Address.value == '')
        {
            alert ("שדה עיר מגורים הינו שדה חובה, אנא מלא/י אותו");
            dPath.send.disabled=false;
            dPath.Address.focus();
            return false;
        }
        if(dPath.Subject.value == '')
        {
            alert ("שדה כותרת הינו שדה חובה, אנא מלא/י אותו");
            dPath.send.disabled=false;
            dPath.Subject.focus();
            return false;
        }
        if(dPath.Value.value == '')
        {
            alert ("שדה הודעה הינו שדה חובה, אנא מלא/י אותו");
            dPath.send.disabled=false;
            dPath.Value.focus();
            return false;
        }
                
    }
    dPath.send.disabled=false;
}
