if (this.name = '') this.name='shEAMainWnd'; this.focus(); function imagePopUp(urlToOpen) { var x = (screen.width-800)/2, y = (screen.height-800)/2; OpenWin = this.open(urlToOpen, "CtrlWindow", "toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes, screenX="+x+", screenY="+y+", left="+x+", top="+y); } function printerFriendly(urlToOpen) { var x = (screen.width-600)/2, y = (screen.height-400)/2; OpenWin = this.open(urlToOpen, "CtrlWindow", "width=575,height=400,toolbar=no,menubar=yes,location=no,scrollbars=yes,resizable=no, screenX="+x+", screenY="+y+", left="+x+", top="+y); } function recommend(urlRecommandForThisArticle) { var x = (screen.width-380)/2, y = (screen.height-340)/2; OpenWin = this.open(urlRecommandForThisArticle, "CtrlWindow", "width=560,height=400,toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no, screenX="+x+", screenY="+y+", left="+x+", top="+y); } function setPollCookie(pollID) { var date = new Date(); date.setTime(date.getTime()+(30*24*60*60*1000)); var expires = "; expires="+date.toGMTString(); document.cookie = 'shClaRItiNEPoll=' + pollID + '; expires=' + expires + '; path=/' } function gE(el) { return document.getElementById(el); } function Dimension(element){ this.x=-1; this.y=-1; this.w=0; this.h=0; if (element==document){ this.x=element.body.scrollLeft; this.y=element.body.scrollTop; this.w=element.body.clientWidth; this.h=element.body.clientHeight; }else if (element!=null){ var e=element; var left=e.offsetLeft; while ((e=e.offsetParent)!=null) { left+=e.offsetLeft; } var e=element; var top=e.offsetTop; while((e=e.offsetParent)!=null) { top+=e.offsetTop; } this.x=left; this.y=top; this.w=element.offsetWidth; this.h=element.offsetHeight; } }