function formFwd() { document.forms['app_form'].action="index.php"; document.forms['app_form'].current_action.value="FWD"; document.forms['app_form'].submit(); } function formClear() { if (confirm("Do you want to clear all values on this page?")) { document.forms['app_form'].action="index.php"; document.forms['app_form'].current_action.value="CLEAR"; document.forms['app_form'].submit(); } } function conditionalDivShowIfY(aField, aDiv) { if (aField.value == "Y") { document.getElementById(aDiv).style.display = 'inline-block'; } if (aField.value == "N") { document.getElementById(aDiv).style.display = 'none'; } } function conditionalDivShowIfN(aField, aDiv) { if (aField.value == "N") { document.getElementById(aDiv).style.display = 'inline-block'; } if (aField.value == "Y") { document.getElementById(aDiv).style.display = 'none'; } }