/***************************************************************** dialogOpener(url, name, args) General purpose window opener *****************************************************************/ function dialogOpener(url, name, args) { if (typeof(popupWin) != "object") { popupWin = window.open(url,name,args); } else { if (!popupWin.closed) { popupWin.location.href = url; } else { popupWin = window.open(url, name,args); } } popupWin.focus(); } /*********************************************************** following two functions call the date picker dialog box ************************************************************/ function myDateDialog() { var retDay; var retMonth; var retYear; } function dialogOpenDatePicker(wnd, field, dateFormat) { myDateDialog.retDay=""; myDateDialog.retMonth=""; myDateDialog.retYear=""; var pathname = window.location.pathname; var dlgURL = pathname.substring(0,(pathname.lastIndexOf(".nsf") + 5))+'F_DLG_DATE_PICKER?OpenForm'; if(wnd.showModalDialog(dlgURL,myDateDialog,"dialogHeight:380px;dialogWidth:295px;center")==true) { field.value=dateFormat.replace(/yyyy/, myDateDialog.retYear).replace(/mm/, myDateDialog.retMonth).replace(/dd/, myDateDialog.retDay); } else { return; } } /***************************************************************** dialogAddressLookup (fieldName) fieldName = return field on form This function displays the address lookup "dialog box" *****************************************************************/ function dialogAddressLookup(fieldName) { var pathname; var url; pathname = (window.location.pathname); url=pathname.substring(0,(pathname.lastIndexOf('.nsf')+5))+'F_DLG_ADDRESS?OpenForm&rf=' + fieldName window.open(url ,'Address', 'status=yes, resizable=no,scrollbars=no,top=120,left=100,width=376,height=460'); }