function wopen(imgName, w , h, Title)
{
var wo = window.open("", "abc", "width = " + w + " , height = " + h + ", scrollbars=0, status=0");
wo.document.open();
var win = "";
win = "<html><head><title>";
win += Title;
win += "</title></head>"
win += "<body bgcolor='#FFFFFF' leftmargin='0' topmargin='0' rightmargin='0' bottommargin='0' marginwidth='0' marginheight='0'>";
win += "<table cellpadding='0' cellspacing='0' border='0' width='100%' height='100%'><tr><td align='center'>";
win += "<a href='#' onClick='self.window.close();'><img src='" + imgName + "' width='" + w + "' height='" + h + "' border='0' alt='" + Title + "'></a>";
win += "</td></tr></table>";
win += "</body></html>";
w += 20;
h += 50;
wo.window.resizeTo(w, h);
wo.document.write(win);
wo.window.focus();
wo.document.close();
}

function wopen2(imgName, w , h, Title)
{
	var left, top;
	left = screen.width / 2 - (w / 2);
	top = screen.height / 2 - (h / 2);

	var wo = window.open("", "abc", "width=" + w + ", height=" + h + ", scrollbars=0, status=0, left=" + left + ", top=" + top );
	wo.document.open();
	var win = "";
	win = "<html><head>";
	win += "<title>" + Title + "</title>";
	win += "<style type='text/css'> * {margin:0; padding:0; border:0; } </style> </head>"
	win += "<body>";
	win += "<table cellpadding='0' cellspacing='0' width='100%' height='100%'><tr><td align='center'>";
	win += "<a href='#' onClick='self.window.close();'><img src='" + imgName + "' width='" + w + "' height='" + h + "' alt='" + Title + "'></a>";
	win += "</td></tr></table>";
	win += "</body></html>";
	w += 20;
	h += 52;
	wo.window.resizeTo(w, h);
	wo.document.write(win);
	wo.window.focus();
	wo.document.close();
}
