formImgObj = new DHTML_modalMessage();	// We only create one object of this class
formImgObj.setShadowOffset(5);	// Large shadow

function formImgDisplay(messageContent,w,h,cssClass)
{
	//alert(h);
	//alert(d.widthSM);
	//formImgObj.layoutCss = "aaa.css";
	formImgObj.setHtmlContent(messageContent);
	h = Number(h)+Number(23);
	formImgObj.setSize(w,h);
	//formImgObj.setSize('500','333');
	formImgObj.setCssClassMessageBox(cssClass);
	formImgObj.setSource(false);	// no html source since we want to use a static message here.
	formImgObj.setShadowDivVisible(false);	// Disable shadow for these boxes	
	formImgObj.display();
}
/*function closeMessage()
{
	formImgObj.close();	
}*/
function callFormImg(src, w, h)
{
	//var h2 = 23;
	//alert(h);
	//formImgObj.width = w;
	//formImgObj.height = h;
	
	//alert(h2);
	var messageContent = "<div style='margin:0;width:"+w+";height:"+h+";' onclick='formImgObj.close();'>";
		messageContent+="<table border=0 cellpadding=0 cellspacing=0>";
		messageContent+="	<tr bgcolor='#CCCCCC'><td></td><td><input class='button_search' onclick='formImgObj.close();' type='button' value='Закрыть'></td></tr>";
		messageContent+="	<tr><td colspan='2'><img onclick='formImgObj.close();' width='"+w+"' height='"+h+"' src='"+src+"'></td></tr>";
		messageContent+="</table>";
		messageContent+="</div>";
	formImgDisplay(messageContent,w,h,false);
}