document.write('<script type="text/javascript"');
document.write('src="../scripts/jquery-1.4.3.min.js" ');
document.write('>' + '<'+'/script>');
    
function sendEmail()
{
    var sName = document.getElementById('name').value;
    var sEmail = document.getElementById('email').value;
    var sPhone = document.getElementById('phone').value;

    if (sName == '') {
        alert("Please input your first name.");
        return false;
    }
    
    if (sEmail == '') {
        alert("Please input your e-mail.");
        return false;
    }
    
    var regex = /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i;
    if (!regex.test(sEmail)) {
        alert("Sorry, your e-mail is not valid, please type it again.");
        return false;
    }

    //window.alert("Thank you!. We'll reach you as soon as possible.");

    var sTo = "alba.diaz@ovalpath.com;info@ovalpath.com";
    var sMessage = "<h3>From : www.ovalpath.com </h3><br/><br/><b> Contact Information</b><br/><b>Name:  </b><i>" + sName + "</i><br/><b>eMail:  </b><i>" + sEmail + "</i><br/><b>Phone:  </b><i>" + sPhone + "</i><br/>";
    //var myRequest = "http://www.ovalpath.com/wsdb/service.asmx/SendNotificationEmail?sTo=" + sTo + "&sMessage=" + sMessage + "&sHtml=true"
/*
    $.ajax({
        type: "GET",
        url: myRequest,
        data: { d: 's' },
        success: function(r) {
        //alert("Thanks for your taking the time to send us your feedback. You will hear from us soon.");
            //window.location = "index.html";
        }
    });*/
    
    $.ajax({
        type: "GET",
        url: "http://www.ovalpath.com/wsdb/service.asmx/SendNotificationEmail",
        data: { sTo: sTo, sMessage:sMessage, sHtml:true},
        success: function(r) {
        alert("Thank you!. We'll reach you as soon as possible.");
            //window.location = "index.html";
        }
    });
    document.getElementById('name').value = '';
    document.getElementById('email').value = '';
    document.getElementById('phone').value = '';
	  
}



