// JavaScript Document
function openImage(ref,W,H){
	//var Painting=open('', 'picture', 'width=400 height=600')
	//Painting.document.writeln("<html><head><title></title></head><body>");
	//Painting.document.writeln("<img src='" + ref + "' border=3 vspace='0'><br>");
	//Painting.document.writeln("	</body></html>")
	//var H = (Painting.document.images[0].height)+100
	//var W = (Painting.document.images[0].width)+100
	//Painting.close()	
	W= (W*1)+100
	H= (H*1)+180
	var Painting = open('','picture', 'width='+W+' height='+H)
	//Painting2 = open('','picture2', 'width=500 height=800')
	Painting.document.writeln("<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'><html><head><title>Painting</title><meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'></head><body bgcolor='#CCCCCC'><table width='100%' height='100%' border='0' cellpadding='0'><tr><td height='163' align='center' valign='middle'>	<form name='form1' method='post' action=''>");
	Painting.document.writeln("<img src='" + ref + "' border=3 vspace='0'><br>");
	Painting.document.writeln("<br><br><input type='button'  value='Close' onClick='window.close()'> ")
	Painting.document.writeln("	</form></td></tr></table></body></html>")
} //OpenImage(ref)
