/********************************************
* File    : rudinewimagewindow.js
* Created : 2001/12/11 
* Author  : Rudi Petrov 
* Purpose : To create a new window
* History 
* Date         Version        Description 
* 2004-23 February	1.0	First version
*********************************************/
 function RudiPaintWindow(jimg,wsp,hsp,pictxt,autxt,destxt,raztxt) { 
twsp=wsp+200
thsp=hsp+16
 features = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width="+twsp+",height="+thsp
hsm=hsp-30
bghp=(hsp-150)/2
bgwp=(wsp-150)/2
 dlg = window.open ("","",features) 
 dlg.document.write ("<head><title>&nbsp;&#8220;",pictxt,"&#8221;&nbsp;-&nbsp;",autxt,"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Art Gallery Philippopolis&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</title>")  
 dlg.document.write ("<meta http-equiv='Content-Type' content='text/html; charset=windows-1251'>")
 dlg.document.write ("<style type='text/css'>")
 dlg.document.write ("body {background-image: url('images/load1.gif'); background-repeat: no-repeat; ackground-attachment: fixed; background-position: ",bgwp," ",bghp,";}</style>")
 dlg.document.write ("</head><BODY bgcolor='#333333' text='#CC9966' leftmargin='0' topmargin='0' marginwidth='0' marginheight='0' vspace='0' hspace='0'>") 
 dlg.document.write ("<style type='text/css'>") 
 dlg.document.write (".button{BORDER: #CC9966 1px solid;PADDING: 1; padding-left: 0px; font:11px Verdana,Arial,Helvetica;BACKGROUND-COLOR: #632910;COLOR: #DD9955;CURSOR:pointer;}")
 dlg.document.write ("</style>")
 dlg.document.write ("<table height='",hsp+14,"' border='0' cellspacing='0' cellpadding='0'>")
 dlg.document.write ("<tr><td width='",wsp+13,"' height='",hsp+14,"' valign='baseline'>")
 dlg.document.write ("<table width='",wsp+6,"' height='",hsp+6,"' border='0' align='right' cellpadding='0' cellspacing='0'>")
 dlg.document.write ("<tr><td colspan='2' rowspan='3'><table width='",wsp,"' height='",hsp,"' border='0' cellpadding='0' cellspacing='0'><tr><td background='",jimg,"'></td></tr></table></td></tr>")
 dlg.document.write ("<tr><td width='6' height='12' background='images/sh_rightup.gif'></td></tr>")
 dlg.document.write ("<tr><td width='6' height='",hsp-12,"' background='images/sh_right.gif'></td></tr>")
 dlg.document.write ("<tr><td width='12' height='6' background='images/sh_leftd.gif'></td>")
 dlg.document.write ("<td width='",wsp-12,"' height='6' background='images/sh_down.gif'></td>")
 dlg.document.write ("<td width='6' height='6' background='images/sh_downc.gif'></td></tr></table></td>")
 dlg.document.write ("<td width='5' height='",hsp+14,"'>&nbsp;</td>")
 dlg.document.write ("<td width='178' height='",hsp+14,"'>")
 dlg.document.write ("<table width='178' height='",hsp+14,"' border='0' cellpadding='0' cellspacing='0'>")
 dlg.document.write ("<tr><td><div align='center'><font size='3' face='Times New Roman, Times, serif'>")
 dlg.document.write ("&#8220;",pictxt,"&#8221;<br><br>",autxt,"<br><br>",destxt,"<br><br>")
 dlg.document.write ("<font size='2'>размер:&nbsp;",raztxt,"&nbsp;см.</font></font></div></td></tr>")
 dlg.document.write ("<tr><td width='178' height='30' valign='bottom'>")
 dlg.document.write ("<table height='30' border='0' align='right' cellpadding='0' cellspacing='0'>")
 dlg.document.write ("<form><tr><div align='right'><td height='30' align='right'>")
 dlg.document.write ("&nbsp;<input name='button' type='button' class=button onClick='self.close()' value='Затвори'>&nbsp;")
 dlg.document.write ("</td></div></form></tr></table></td></tr></table></td></tr></table>")
 dlg.document.write ("</body></html>")
}













