	function ONW(title,name,width,height){ 
	   var OpenWindow=window.open("", "", "width="+width+",height="+height);
		   OpenWindow.document.write("<html>")
		   OpenWindow.document.write("<head>")
		   OpenWindow.document.write("<title>"+title+"</title>")
		   OpenWindow.document.write("<meta http-equiv='Content-Type' content='text/html; charset=windows-1251'>")
		   OpenWindow.document.write("</head>")
		   OpenWindow.document.write("<body onClick='self.close();' style='background-color: #FFFFFF; margin-top: 0px; margin-bottom: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px'>")
		   OpenWindow.document.write("<img src='"+proname_dir+"/images/"+name+"' border=0 hspace=0 vspace=0 width="+width+" height="+height+" align=left alt=''>")
		   OpenWindow.document.write("</body>")
		   OpenWindow.document.write("</html>")
	}

  	function ONW2(title,name,width,height){ 
	   var OpenWindow=window.open("", "", "scrollbars=yes,status=no,location=no,menubar=no,resizable=yes,width="+width+",height="+height);
		   OpenWindow.document.write("<html>")
		   OpenWindow.document.write("<head>")
		   OpenWindow.document.write("<title>"+title+"</title>")
		   OpenWindow.document.write("<meta http-equiv='Content-Type' content='text/html; charset=windows-1251'>")
		   OpenWindow.document.write("</head>")
		   OpenWindow.document.write("<body onClick='self.close();' style='background-color: #FFFFFF; margin-top: 0px; margin-bottom: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px'>")
		   OpenWindow.document.write("<img src='"+proname_dir+"/images/"+name+"' border=0 hspace=0 vspace=0 align=left alt=''>")
		   OpenWindow.document.write("</body>")
		   OpenWindow.document.write("</html>")
	}
    
	function ONIMG(title,url,width,height){ 
       var OpenWindow=window.open("about:blank", "img", "scrollbars=no,status=no,location=no,menubar=no,resizable=yes,width="+width+",height="+height);
           OpenWindow.document.write("<html>");
           OpenWindow.document.write("<head>");
           OpenWindow.document.write("<title>"+title+"</title>");
           OpenWindow.document.write("<meta http-equiv='Content-Type' content='text/html; charset=windows-1251'>");
           OpenWindow.document.write("</head>");
           OpenWindow.document.write("<body style='background-color: #FFFFFF; margin-top: 0px; margin-bottom: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px'>");
           OpenWindow.document.write("<table border=0 width="+width+" height="+height+" cellspacing=0 cellpadding=0><tr><td background=\""+proname_dir+"/images/"+url+"\"><img src='"+proname_dir+"/images/spacer.gif' border=0 hspace=0 vspace=0 width="+width+" height="+height+" align=left alt='"+title+"'></td></tr></table>");
           OpenWindow.document.write("</body>");
           OpenWindow.document.write("</html>");
	}

  	function swfONW(version,title,name,width,height){
	   var OpenWindow=window.open("", "", "width="+width+",height="+height);
		   OpenWindow.document.write("<html>")
		   OpenWindow.document.write("<head>")
		   OpenWindow.document.write("<title>"+title+"</title>")
		   OpenWindow.document.write("<meta http-equiv='Content-Type' content='text/html; charset=windows-1251'>")
		   OpenWindow.document.write("</head>")
		   OpenWindow.document.write("<body onClick='self.close();' style='background-color: #FFFFFF; margin-top: 0px; margin-bottom: 0px; margin-right: 0px; margin-left: 0px; margin-width: 0px; margin-height: 0px; padding-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px'>")
		   OpenWindow.document.write('<object id="'+name+'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+version+'" width="'+width+'" height="'+height+'">\n')
		   OpenWindow.document.write('<param name="allowScriptAccess" value="sameDomain">\n')
		   OpenWindow.document.write('<param name="movie" value="'+proname_dir+'/images/flash/'+name+'.swf">\n')
		   OpenWindow.document.write('<param name="quality" value="high">\n')
		   OpenWindow.document.write('<param name="menu" value="false">\n')
		   OpenWindow.document.write('<param name="scale" value="noscale">\n')
		   OpenWindow.document.write('<param name="salign" value="lt">\n')
		   OpenWindow.document.write('<param name="wmode" value="transparent">\n')
		   OpenWindow.document.write('<embed name="'+name+'" id="'+name+'" src="'+proname_dir+'/images/flash/'+name+'.swf" wmode="transparent" quality="high" swLiveConnect="true" scale="noscale" salign="lt" menu="false" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" width="'+width+'" height="'+height+'">\n')
		   OpenWindow.document.write('</object>\n')
		   OpenWindow.document.write("</body>")
		   OpenWindow.document.write("</html>")
	}
