var w
var h
var hl
var wl
var wa
var ha
var nid

function LoadWin(strTem,URL,w,h)
{
wl = w - 6
hl = h - 6
wa = w + 10
ha = h + 33

var wc=parseInt((screen.availWidth-wa)/2) 
var hc=parseInt((screen.availHeight-ha)/2)


var capt = "site";


var win=window.open('','','width='+wa+',height='+ha+',top='+hc+',screenY='+hc+',left='+wc+',screenX='+wc)  
win.document.open()  
win.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><HTML><HEAD><meta http-equiv="content-type" content="text/html; charset=windows-1251"><meta http-equiv="pragma" content="no-cache"><TITLE>')
win.document.write(strTitle)
win.document.write('</title> <link rel="shortcut icon" type="image/x-icon" href="favicon4.ico"> ')
win.document.write('<SCRIPT TYPE="text/javascript">function winclose() { self.close() } </SCRIPT>')
win.document.write('</HEAD><BODY OnClick="winclose()" TOPMARGIN="0" LEFTMARGIN="0" BGCOLOR="#FFFFFF" LINK="#0000CC" VLINK="#0000CC" BACKGROUND="sup/bk.gif">\n<TABLE><TR><TD ALIGN="left"><BIG>')
win.document.write(strTem)
win.document.write('</BIG></TD></TR><TR><TD ALIGN="right" VALIGN="bottom"><img src="')
win.document.write(URL)
win.document.write('" alt=""')
win.document.write(capt)
win.document.write('" width="')
win.document.write(w)
win.document.write('" height="')
win.document.write(h)
win.document.write('"><IMG SRC="ls3.gif" WIDTH="6" HEIGHT="')
win.document.write(hl)
win.document.write('" ><BR><IMG SRC="ls3.gif" WIDTH="')
win.document.write(wl)
win.document.write('" HEIGHT="6" ></TD></TR></TABLE>\n</BODY></HTML>')  
win.document.close()  

}

