isDOM=document.getElementById //DOM1 browser (MSIE 5+, Netscape 6, Opera 5+) isOpera=isOpera5=window.opera && isDOM //Opera 5+ isOpera6=isOpera && window.print //Opera 6+ isOpera7=isOpera && document.readyState //Opera 7+ isMSIE=document.all && document.all.item && !isOpera //Microsoft Internet Explorer 4+ isMSIE5=isDOM && isMSIE //MSIE 5+ isNetscape4=document.layers //Netscape 4.* isMozilla=isDOM && navigator.appName=="Netscape" //Mozilla или Netscape 6.* var oldUrl = false; function IE5opener(url,w,h){ //w = Math.abs(w)+7; h = Math.abs(h)+27; scrollYes = ( w > screen.availWidth || h > screen.availHeight ) ? 1 : 0; addScrollbarWidth = (scrollYes) ? 17 : 0; w = (w > screen.availWidth) ? screen.availWidth - 40 : w + addScrollbarWidth; h = (h > screen.availHeight) ? screen.availHeight - 40 : h + addScrollbarWidth; var ver =navigator.appVersion; ver = ver.substring(ver.indexOf("MSIE")+5, ver.length); ver = parseFloat(ver.substring(0, ver.indexOf(";"))); if(ver >=5){ if((url != oldUrl)||(WinObj.closed)){ WinObj = showModelessDialog(url, window, "help: no; status: no; scroll:"+ scrollYes+"; resizable: on; dialogWidth:"+w+"px; dialogHeight:"+h+"px; margin: 0"); oldUrl = url; }else{ if(!WinObj.closed){WinObj.focus();} } }else{ OtherOpener(url,w,h); } } function OtherOpener(url,w,h){ w = w+18; h = h +26; d = new Date(); t = d.getTime(); WinObj = window.open(url, t,"width="+w+",height="+h+",location=yes,status=yes,menubar=yes,toolbar=no,resizable=yes"); return (WinObj!==null) ? false: true; } function PopUp(url,w,h){ if( document.all ){ IE5opener(url,w,h); }else{ if(document.images){ OtherOpener(url,w,h); } } return false; } var popupWin = null function openImg(iURL,iW,iH,iTitle){ if (popupWin && !popupWin.closed) { popupWin.close(); } popupWin = open("", "PopupWin", "width=" + iW + ",height=" + iH); popupWin.document.write("
"); popupWin.document.write("