function sendFeedback() { var position; if (document.getElementById("agree").checked==true) { position="I Agree"; } else if(document.getElementById("disagree").checked==true) { position="I Disagree"; } else{alert("Please select your position on this issue"); return; } var publish; if (document.getElementById("agreeToPublish").checked==true) { publish="Yes"; } else { publish="No"; } params = "name=" + document.getElementById("name").value; params +="&email=" + document.getElementById("email_address").value; params +="&zipCode=" + document.getElementById("zipCode").value; params +="&comments=" + document.getElementById("comments").value; params +="&position=" + position; params +="&agreeToPublish=" + publish; params +="&issue_uid=" + document.getElementById("issue_uid").value; params +="&issue_name=" + document.getElementById("issue_name").value; params +="&senders_ip=" + document.getElementById("senders_ip").value; cfcPath = "http://brown.senate.gov//cfc_extensions/com/creativengine/send_your_views.cfc?method=sendEmail"; //alert(params); http( "POST" , cfcPath , showFeedbackStatus , params ); } function showFeedbackStatus() { document.getElementById("feedbackSubmitted").style.display=""; document.getElementById("feedbackForm").style.display="none"; //alert("submitted form"); //alert(document.getElementById("feedBackForm").id); }