function changeActionset(button) { } function changeActiongen(myaction) { document.MainSection.action = myaction; } String.prototype.trim = function() { a = this.replace(/^\s+/, ''); return a.replace(/\s+$/, ''); }; // Changes the value for the subform form variable before submitting function changeActionAdd(subform_table) { document.MainSection.subform_table.value=subform_table; return true } function changeActionexh(button,myAction) { exh_num=button.value.substr(8,1); document.MainSection.exhnum.value=exh_num; document.MainSection.subform_table.value='exhibit'; document.MainSection.action = myAction; } // end changeActionexh function changeActionexhibit(form){ //var x = trim(form.description.value); //var y = trim(form.exhibit_textarea.value); //alert(x.length) if (form.description.value.trim().length == 0 || form.exhibit_textarea.value.trim().length == 0) { alert("The Exhibit description and text cannot be blank: This exhibit will not be saved or validated"); form.js_errors.value='Y'; } form.subform_table.value='exhibit'; } function changeAction(form,button,myAction,field,subform_table,copynum,section){ /** for(i=0; i"); } **/ var exh_num; var aa= document.getElementById("MainSection"); form.action.value = myAction; }//end of function // Valildation Rules