function sendAdvertiseWithUsEmail() {
    var name    = escape(document.getElementById("wpname").value);
    var email   = escape(document.getElementById("wpemail").value);
    var phone   = escape(document.getElementById("wpphone").value);
    var company = escape(document.getElementById("wpcompany").value);
    var website = escape(document.getElementById("wpwebsite").value);
    var comments= escape(document.getElementById("wpcomments").value);
    
    ajax("services/sendAdvertiseWithUs_srvc.php", 
        "&name="+name+"&email="+email+"&phone="+phone+"&company="+company+"&website="+website+"&comments="+comments,
        handleSendAdvertiseWithUsResponse);
}
function handleSendAdvertiseWithUsResponse(contents, responseDoc) {
    var statusElems = responseDoc.getElementsByTagName("status");
    var errorBlock = document.getElementById("errorblock");
    if (statusElems.length > 0) {
        var status=statusElems[0];
        var statusValue = status.getAttribute("value");
        var statusDesc = status.getAttribute("desc");
        if (status.getAttribute("value") == "0") {
            // Success
            alert("Thanks.  One of our representatives will contact you soon.");
        } else {
            alert(statusDesc);
        }
    }
}