function viewImg(imgName,winName,title,height,width,text){
	html = ("<html><head><title>" + title + "</title></head>");
	html = (html + "<link rel=stylesheet href=sky.css>");
	html = (html +"<body bgcolor='#FFFFFF' leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>");
	html = (html +"<img vspace=0 src='" + imgName + "' border=0 width=" + width + "><br>");
	html = (html +"<table cellpadding=5 cellspacing=0 border=0 width=100%><tr>");
	html = (html +"<td>" + text + " [&nbsp;<a href=javascript:self.close(); class=smltxt>Close window</a>&nbsp;]</td></tr></table>");
	html = (html +"</body></html>");
	
	NewWin=window.open("",winName,"toolbar=no,width=" +width+ ",height=" +height+ ",left=20, top=20, status=yes,resize=no,menubar=no,dependent=yes")
	NewWin.document.write(html)
	NewWin.document.close()
	NewWin.focus()
}

function di(id,name){
	if (document.images) {
			document.images[id].src=eval(name+".src");
	}
}
