var objChildWindow;function addEvent(obj,type,fn){if(obj.addEventListener)
obj.addEventListener(type,fn,false);else if(obj.attachEvent){obj["e"+type+fn]=fn;obj[type+fn]=function(){obj["e"+type+fn](window.event);}
obj.attachEvent("on"+type,obj[type+fn]);}}
function open_window(oPage,iWidth,iHeight,bScroll){var sfeatures;var xOffset,yOffset;xOffset=(screen.width-iWidth)/2;yOffset=(screen.height-iHeight)/2;var sfeatures='status=0,'+'toolbar=0,'+'resizable=0,'+'directories=0,'+'location=0,'+'scrollbars='+bScroll+','+'menubar=0,'+'top='+yOffset+','+'left='+xOffset;objChildWindow=window.open(oPage,'winDescription',sfeatures+',width='+iWidth+',height='+iHeight);addEvent(window,"focus",keepChildFocus);addEvent(window,"click",keepChildFocus);return false;}
function keepChildFocus(){try{if(objChildWindow)objChildWindow.focus();}catch(ex){}}
