/* FILE ARCHIVED ON 22:00:04 Sep 15, 2008 AND RETRIEVED FROM THE AN OPENWAYBACK INSTANCE ON 12:04:31 Jun 6, 2024. JAVASCRIPT APPENDED BY OPENWAYBACK, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ function sendFeedback() { var position; if (document.getElementById("agree").checked==true) { position="I Agree"; } else { position="I Disagree"; } var publish; if(document.getElementById("agreeToPublish").checked==true) { publish = "Yes"; } else { publish = "No"; } if(document.getElementById("agree").checked==false && document.getElementById("disagree").checked==false) { alert("You must select whether you agree or disagree with the Senator on this issue."); return; } if(document.getElementById("first_name").value =="") { alert("You must enter your first name"); return; } if(document.getElementById("last_name").value =="") { alert("You must enter your last name"); return; } if(document.getElementById("email_address").value =="") { alert("You must enter your email address"); return; } if(document.getElementById("zipCode").value =="") { alert("You must enter your zip code"); return; } params = "first_name=" + document.getElementById("first_name").value; params += "&last_name=" + document.getElementById("last_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 = "https://webarchive.library.unt.edu/eot2008/20080915220004/http://casey.senate.gov//cfc_extensions/com/creativengine/send_your_views.cfc?method=sendEmail"; //alert(cfcPath); 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); }