function AltOpenWindow(xref, name) { ref=String(xref); p=ref.indexOf('?'); s1=""; s2=""; if (p>-1) { s1=ref.substring(0,p); s2=ref.substring(p+1,ref.length); } document.xsubmitterform.target=name; document.xsubmitterform.action=s1; document.xsubmitterform.xsubmitter.value=s2; document.xsubmitterform.submit(); } var olderror; function myonerror(msg, url, lno) { window.onerror=olderror; return true; } function ignoreerror(msg, url, lno) { return true; } window.onerror=null function RealOpenWindow(ref) { window.open(ref); } function OpenWindowHandler(mwin,ref,name,dofocus) { if (!mwin) return; mwin.OpenWindow(ref,name,null,dofocus); } function MaximizeThisWindow() { if (!document.layers) { olderr=window.onerror window.onerror=ignoreerror moveTo(0,0) resizeTo(screen.availWidth, screen.availHeight); window.onerror=olderr } } function OpenWindowHandlerFullScreen(mwin,ref,name,dofocus) { if (!mwin) return; mwin.OpenWindow(ref,name,windowprops,dofocus); } function OpenWindow1(ref,name) { OpenWindowHandler(top,ref,name,true); } function FindMainWindow() { if (window.top.name=="mainframe") { pwin=window.top; if (!pwin) return null; if (pwin.name=="mainframe") { if (pwin.closed) return null; return pwin; } } pwin=window.opener; if (pwin) { pwin=pwin.top if (pwin && pwin.name=="mainframe") { if (!pwin.closed) return pwin } } pwin=window.open("","update"); if (!pwin) return null; pwin=pwin.top; if (pwin.name=="mainframe") { if (pwin.closed) return null; return pwin; } } function WindowOpened(win) { } function WindowClosed(win) { } function MyOpenWindow(ref,name) { ww=window.open(ref,name); ww.focus(); } function MyOpenWindowNoFocus(ref,name) { mwin=FindMainWindow(); OpenWindowHandler(mwin,ref,name,false); } function FindWindow(name) { mwin=FindMainWindow(); return mwin.FindWindow(name); } function MainWindowFocus() { } function Logout() { mwin=FindMainWindow(); if (mwin) mwin.Logout(); else { alert("Can't Logout - Can't find mainframe"); } return; } function ClearStatus() { window.status=" "; } function MyReload() { location.reload(); window.status=" "; }