ADS.addEvent(window,"load",initDynElements);ADS.addEvent(window,"load",initForm);ADS.addEvent(window,"load",initCollapsed);ADS.addEvent(window,"load",initAddtlInfo);function initDynElements(){var B=getURLParam("domain")||getDomain().toLowerCase();logMsg(B+" links are being set");var C=B;B=B.replace(/-/,"");var A=null;if(B=="osso"){B="hospitalconnect";C="hospitalconnect"}if(B=="ashe"){C="oam-"+C}if(B in PORTAL){A=ADS.$("logoLink");if(A){A.href="http://www."+PORTAL[B]}A=ADS.$("helpPageLink");if(A){A.href="http://www."+PORTAL[B]+"/"+C+"/oam/help.html"}A=ADS.$("privacyPageLink");if(A){A.href="http://www."+PORTAL[B]+"/"+C+"/oam/privacy.html"}A=ADS.$("contactPageLink");if(A){A.href="http://www."+PORTAL[B]+"/"+C+"/oam/contact_us.html"}A=ADS.$("forgotPasswordLink");if(A){A.href=OAMLINK.forgotPassword+"?redirectPage=http://www."+PORTAL[B]+"/"+C+"/oam/welcome.html"}A=ADS.$("registerLink");if(A){A.href=OAMLINK.register+"?redirectPage=http://www."+PORTAL[B]+"/"+C+"/oam/welcome.html"}var A=ADS.$("loginLogoImg");if(A){A.alt=ADS.$("logoLink").href}A=ADS.$("errorLogoImg");if(A){A.src="/oam/images/logos/"+getDomain()+".gif";A.alt=ADS.$("logoLink").href}}}function initForm(){var A=ADS.$("OAMloginform");if(A){A.userid.focus();ADS.addEvent(A.login,"click",validateForm)}}function validateForm(){var A=ADS.$("OAMloginform");if((A.userid.value=="")||(A.password.value=="")){alert("Please enter a username and password.");return false}if(A.remember_me.value=="yes"){logMsg("initiating cookie set...");submitForm()}else{submitForm()}return true}function submitForm(){var A=ADS.$("OAMloginform");A.action="/oam/router.jsp";A.method="GET";A.submit()}function setRememberMe(){ADS.xssRequest("http://www.hospitalconnect.com/oam/oam.dhtml?task=remember&x="+Math.random(),{completeListener:function(){if(this.responseJSON.status==1){logMsg("done setting cookie - status="+this.responseJSON.status);submitForm()}},errorListener:function(){logMsg("ERROR: "+this.statusText)}});return }function initCollapsed(){var A=document.getElementsByTagName("div");for(var B=0;B<A.length;B++){if(A[B].className=="collapsible"){var C=A[B].firstChild;while(C.nodeName.toLowerCase()!="h1"){C=C.nextSibling}A[B].tween=new Tween(A[B],"height",C.scrollHeight,A[B].scrollHeight,500,"px");A[B].style.height=C.scrollHeight+"px";C.onclick=function(){if(!this.parentNode.tween.playing){this.style.backgroundImage="url("+(this.parentNode.tween.position==0?"/oam/images/minus.gif":"/oam/images/plus.gif")+")";this.parentNode.tween.play()}}}}}function initAddtlInfo(){if(document.getElementById("remember_me")){var A=document.getElementById("remember_me");var B=document.getElementById("addtlInfo");A.tween=new Tween(B,"height",0,B.scrollHeight,300,"px");B.style.height=0;A.onclick=function(){this.tween.play()}}}PositionX=100;PositionY=100;defaultWidth=500;defaultHeight=500;var AutoClose=true;if(parseInt(navigator.appVersion.charAt(0))>=4){var isNN=(navigator.appName=="Netscape")?1:0;var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0}var optNN="scrollbars=no,width="+defaultWidth+",height="+defaultHeight+",left="+PositionX+",top="+PositionY;var optIE="scrollbars=no,width=150,height=100,left="+PositionX+",top="+PositionY;function popImage(imageURL,imageTitle){if(isNN){imgWin=window.open("about:blank","",optNN)}if(isIE){imgWin=window.open("about:blank","",optIE)}with(imgWin.document){writeln("<html><head><title>Loading...</title><style>body{margin:0px;}</style>");writeln("<script>");writeln("var isNN,isIE;");writeln("if (parseInt(navigator.appVersion.charAt(0))>=4){");writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');writeln("function reSizeToImage(){");writeln("if (isIE){");writeln("window.resizeTo(300,300);");writeln("width=300-(document.body.clientWidth-document.images[0].width);");writeln("height=300-(document.body.clientHeight-document.images[0].height);");writeln("window.resizeTo(width,height);}");writeln("if (isNN){");writeln('window.innerWidth=document.images["George"].width;');writeln('window.innerHeight=document.images["George"].height;}}');writeln('function doTitle(){document.title="'+imageTitle+'";}');writeln("<\/script>");if(!AutoClose){writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()">')}else{writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">')}writeln('<img name="George" src='+imageURL+' style="display:block"></body></html>');close()}};