sub checkform_js { return q{ function CheckForm_onclick() { var myForm = document.form1; var message = ""; message = "Confirm if you need to disable . Choose OK to go ahead and Cancel to abort."; var answer = confirm(message); if (answer == false ){ document.write('You chose to Cancel. Closed window.'); } else { document.getElementById("userresponse").value = "Yes"; document.form.submit(); } } }; } ## end sub checkform_js sub main_page { my( $title ) = @_; return ' ', $title, '
'; } ## end sub main_page