function changeToMx(lpMxLinkUrl){ changeToModalScrollWin(lpMxLinkUrl, "", "", ""); } function changeToModalWin(lpLinkUrl, lpWidth, lpHeight, lpScreenFlag){ var lpTmpWidth, lpTmpHeight; lpTmpWidth = lpWidth; lpTmpHeight = lpHeight; if (lpScreenFlag == 1){ lpTmpWidth = screen.width; lpTmpHeight = screen.height; }else{ if (lpWidth == "") lpTmpWidth = 640; if (lpHeight == "") lpTmpHeight = 420; } var style = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,"; style += "width="+lpTmpWidth+"px,height="+lpTmpHeight+"px"; lpNormalWin = window.open(lpLinkUrl, "ModalWin", style); lpTop = (screen.height - lpTmpHeight) / 2; lpLeft = (screen.width - lpTmpWidth) / 2; lpNormalWin.moveTo(lpLeft, lpTop); lpNormalWin.focus(); } function changeToModalScrollWin(lpLinkUrl, lpWidth, lpHeight, lpScreenFlag){ var lpTmpWidth, lpTmpHeight; lpTmpWidth = lpWidth; lpTmpHeight = lpHeight; if (lpScreenFlag == 1){ lpTmpWidth = screen.width - 10; lpTmpHeight = screen.height - 25; }else{ if (lpWidth == "") lpTmpWidth = 640; if (lpHeight == "") lpTmpHeight = 420; } var style = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,"; style += "width="+lpTmpWidth+"px,height="+lpTmpHeight+"px"; lpNormalWin = window.open(lpLinkUrl, "NormalWin", style); lpTop = (screen.height - (lpTmpHeight + 25)) / 2; lpLeft = (screen.width - (lpTmpWidth + 10)) / 2; lpNormalWin.moveTo(lpLeft, lpTop); lpNormalWin.focus(); } function changeToModalDialog(lpLinkUrl, lpWidth, lpHeight, lpScreenFlag){ var lpTmpWidth, lpTmpHeight; lpTmpWidth = lpWidth; lpTmpHeight = lpHeight; if (lpScreenFlag == 1){ lpTmpWidth = screen.width; lpTmpHeight = screen.height; }else{ if (lpWidth == "") lpTmpWidth = 640; else lpTmpWidth = lpWidth; if (lpHeight == "") lpTmpHeight = 420; else lpTmpHeight = lpHeight; } var style = "status:no;scroll:no;help:no"; style += ";dialogWidth:"+lpTmpWidth+"px;dialogHeight:"+lpTmpHeight+"px"; window.showModalDialog(lpLinkUrl, "", style); } function changeToClose(lpLinkUrl){ changeToModalDialog(lpLinkUrl, 400, 280, 0); history.back(); } function openMdlFullWin(lpLinkUrl) { var fullwin=window.open(lpLinkUrl,"SysMdlWin","toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes"); fullwin.moveTo(0, 0); fullwin.resizeTo(screen.width, screen.height-25); fullwin.focus(); } function openMailWin(lpLinkUrl) { var EMailWin=window.open(lpLinkUrl, "EMail", "toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes"); //EMailWin.moveTo(0, 0); //EMailWin.resizeTo(screen.width, screen.height-25); EMailWin.focus(); } function openNormalWin(lpLinkUrl, lpWidth, lpHeight, lpScreenFlag){ var lpTmpWidth, lpTmpHeight; lpTmpWidth = lpWidth; lpTmpHeight = lpHeight; if (lpScreenFlag == 1){ lpTmpWidth = screen.width; lpTmpHeight = screen.height; }else{ if (lpWidth == "") lpTmpWidth = 640; if (lpHeight == "") lpTmpHeight = 460; } var style = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,"; style += "width="+lpTmpWidth+"px,height="+lpTmpHeight+"px"; lpNormalWin = window.open(lpLinkUrl, "ModalWin", style); lpTop = (screen.height - lpTmpHeight) / 2; lpLeft = (screen.width - lpTmpWidth) / 2; lpNormalWin.moveTo(lpLeft, lpTop); lpNormalWin.focus(); } function openFullWin(url) { var fullwin=window.open(url,"FullWin","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes"); fullwin.moveTo(0, 0); fullwin.resizeTo(screen.width, screen.height-25); fullwin.focus(); return false; } function openFullWin2(url) { var fullwin=window.open(url,"FullWin2","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes"); fullwin.moveTo(0, 0); fullwin.resizeTo(screen.width, screen.height-25); fullwin.focus(); } function openFullWin3(url) { var fullwin=window.open(url,"FullWin3","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes"); fullwin.moveTo(0, 0); fullwin.resizeTo(screen.width, screen.height-25); fullwin.focus(); /* x = screen.width - 10; y = screen.height; l = 0; t = 0; s = "scrollbars=yes,toolbar=no,location=no,status=no,menubar=no,resizable=yes"; s += " width=" + x + ", height=" + y + ", left=" + l + ", top=" + t; window.open(url, "", s); */ } function openRemind(lpName, lpLinkUrl, lpWidth, lpHeight) { var lpTmpWidth, lpTmpHeight; lpTmpWidth = lpWidth; lpTmpHeight = lpHeight; if (lpWidth == "") lpTmpWidth = 640; if (lpHeight == "") lpTmpHeight = 420; var style = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,"; style += "width="+lpTmpWidth+"px,height="+lpTmpHeight+"px"; lpNormalWin = window.open(lpLinkUrl, lpName, style); lpTop = (screen.height - (lpTmpHeight + 25)) / 2; lpLeft = (screen.width - (lpTmpWidth + 10)) / 2; lpNormalWin.moveTo(lpLeft, lpTop); lpNormalWin.focus(); }