function doNothing(){} function validate(){ var message="1"; var message2="1"; frm = document.forms[0]; frm.valSpam.value = "yes" message = verifySpaces(frm.fieldVal_1.value); message2 = verifySpaces(frm.fieldVal.value); //form has been spammed if fields are not = 0 if (message != "0" || message2 != "0" ){ return false; } else{ if( checkForm(document.forms[0])==true) { document.forms[0].submit(); } } } function checkForm(f) { f = document.forms[0]; //if (radio_button_checker(f.addradio)==false){ // alert("You did not select a timen Issue Address option. Please select an option before submitting."); // f.addradio[0].focus(); // return false; //} //val = getRadioButtonValue(f.addradio); //if(val=="1") { // if(checkString(f.issueAddress, "Issue Address")==false){ // //alert("Please enter an address for this issue."); // f.issueAddress.focus(); // return false; // } //} //val = getRadioButtonValue(f.Incident); //if(val=="1") { // if(checkString(f.issueAddress, "Issue Address")==false){ // //alert("Please enter an address for this issue."); // f.issueAddress.focus(); // return false; // } //} //if (f.IncidentType.options[f.IncidentType.selectedIndex].text=="---Choose One---") { // alert("Please choose an Incident Type."); // f.IncidentType.focus(); // return false; //} if(checkString(f.comments, "Issue Description")==false) { alert("Please enter a description for this incident."); f.comments.focus(); return false; } if (radio_button_checker(f.IncidentStartAMPM)==false){ alert("You did not select AM or PM for time. Please select an option before submitting."); f.IncidentStartAMPM[0].focus(); return false; } if (radio_button_checker(f.IncidentEndAMPM)==false){ alert("You did not select AM or PM for time. Please select an option before submitting."); f.IncidentEndAMPM[0].focus(); return false; } if (checkString(f.IncidentStartDate, "Incident Start Date")==false) { f.IncidentStartDate.focus(); return false; } if (checkString(f.IncidentStartTime, "Incident Start Time")==false) { f.IncidentStartTime.focus(); return false; } if (checkString(f.InfoFirstname_reportee, "First Name")==false) { //alert("Please enter the first name of the person filling out this report."); f.InfoFirstname_reportee.focus(); return false; } if (checkString(f.InfoLastname_reportee, "Last Name")==false) { //alert("Please enter the last name of the person filling out this report."); f.InfoLastname_reportee.focus(); return false; } return true; } function DoDisclaimer() { if (document.forms[0].AcceptedDisclaimer.value=="") overlay("disclaimer"); } function overlay(which) { el = document.getElementById(which); el.style.visibility = (el.style.visibility == "visible") ? "hidden" : "visible"; } function AcceptDisclaimer() { document.forms[0].AcceptedDisclaimer.value=new Date(); overlay("disclaimer"); } function CancelDisclaimer() { window.history.go(-1); } function verifySpaces(entry) //function checks for spaces, blanks and nulls in text fields { aCharExists=0; if (entry) { for (var i=0; i