function on(itm){ // set style properties itm.runtimeStyle.backgroundColor="#adadd1"; itm.runtimeStyle.color="#003399"; } function off(itm){ // set style properties itm.runtimeStyle.backgroundColor=""; itm.runtimeStyle.color=""; } function cancelIt() { ask = confirm("Clicking on OK will close the document without saving"); if (ask){top.opener==null?self.history.back():top.close();} } function mb_CancelBtn(){ ask = confirm("Clicking on OK will close the document without saving"); if (ask){top.opener==null?self.history.back():top.close();} } function mb_CloseBtn(){ self.close() } function mb_PrefsBtn(){ self.location.href=dbPath+'/wPrefs?OpenForm'; } function mb_SubmitBtn(){ if(validateForm()){g_doBtnOK=0;document.forms[0].submit();} return false; } function mb_DeleteBtn(){ if (confirm('Are you sure you want to delete the Request?')) { var docURL = document.URL; var end = parseInt(docURL.lastIndexOf('?')); docURL = docURL.substring(0,end); top.location.href = docURL + '?DeleteDocument'; } } function mb_DeleteCommentBtn(){ if (confirm('Are you sure you want to delete the Comments?')) { var docURL = document.URL; var end = parseInt(docURL.lastIndexOf('?')); docURL = docURL.substring(0,end); top.location.href = docURL + '?DeleteDocument'; } } function mb_PrintBtn(){ parent.main==null?self.focus():parent.main.focus(); print(); } function mb_EditBtn(){ g_doBtnOK=0; self.location.href=dbPath+"/$defaultview/"+thisUNID+"?EditDocument&un="+Math.random(); } function mb_EditBtn2(){ g_doBtnOK=0; self.location.href=dbPath+"/$defaultview/"+thisUNID+"?EditDocument&*S"+document.forms(0).SectionName.value+"*E"; }