if (this.name = '') this.name='shHHMainWnd'; this.focus(); function printerFriendly(urlToOpen) { var x = (screen.width-600)/2, y = (screen.height-400)/2; OpenWin = this.open(urlToOpen, "CtrlWindow", "width=600,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=380,height=340,toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no, screenX="+x+", screenY="+y+", left="+x+", top="+y); } function populateLocations(aAddress) { var i = 0; var r = $H(aAddress); var l = $('location'); var address = new Array(); r.each(function(item) { l.options[l.options.length] = new Option(item.key, i); address[i] = item.value; if(i == 0) { $('address').update(item.value); } i++; }); l.observe('change', function(event) {changeAddress(Event.element(event), address)}); } function changeAddress(el, a) { $('address').update(a[el.value]); }