/* * */ var DialogCall = function(dialogURL,otherArguments,dialogWidth,dialogHeight) { return DialogDirectCall(dialogURL,"/SYM-GSS/dialog/DialogFrame.jsp",otherArguments,dialogWidth,dialogHeight); }; /* * */ var DialogDirectCall = function(dialogURL,dialogMainURL,otherArguments,dialogWidth,dialogHeight) { var dialogArgus = { "dialogurl":dialogURL, "dialogWidth":((dialogWidth==null)?"317px":""+dialogWidth), "dialogHeight":((dialogHeight==null)?"108px":""+dialogHeight), "arguments":otherArguments, "window":window }; // ¹w³]ªº Dialog °ª»P¼e dialogWidth = "317px"; dialogHeight = "108px"; // ¦pªG¬O¦ʤ$񠁭pº⤘¹꼚ªº¼e«׻P°ª«Չ if (dialogWidth.substring(dialogWidth.length-1)=="%") { dialogWidth = (window.screen.availWidth*parseFloat(dialogWidth.substring(0, dialogWidth.length-1))/100)+"px"; } if (dialogHeight.substring(dialogHeight.length-1)=="%") { dialogHeight = (window.screen.availHeight*parseFloat(dialogHeight.substring(0, dialogHeight.length-1))/100)+"px"; } // clear webfx cookie /* ¥H¤U¬°µ²¦X Tab ªº³B²z§@·~¡A¥Ϊº¬O webfx ªº tabpane var dialogURLWithoutHost = dialogURL.substring(dialogURL.lastIndexOf("/")); var _webfx_PaneName = "webfxtab__webfx_"+dialogURLWithoutHost.substring(0, dialogURLWithoutHost.indexOf(".")); var d = new Date(); d.setTime( d.getTime() - (24 * 60 * 60 * 1000) ); var expires = "; expires=" + d.toGMTString(); document.cookie = _webfx_PaneName + "=" + expires + "; path=/"; */ var returnData = window.showModalDialog( ((dialogMainURL==null)?dialogURL:dialogMainURL), dialogArgus, "dialogWidth="+dialogWidth+";dialogHeight="+dialogHeight+";scrollbars=no;center=yes;border=no;help=no;status=no;resizable=yes;"); return returnData; };