//this function is to show a popup window
// it takes following arguments : src, width, height, 
// and title, medium, size, price (which are reflected in text on the page

var objWin, HTMLtxt;
function popup (src, width, height, title, medium, size, price, sno)
{
	if(objWin)
		objWin.close();
	objWin = window.open("", "popup", 'width=' + width + ', height=' + (height + 120) + ', resizable=no');
	HTMLtxt = "<html><head><title>PBC Art Gallery</title></head>";
	HTMLtxt += "<body style='margin:0px 0px 0px 0px'>"
	HTMLtxt += "<img src=" + src + ">";
	HTMLtxt += "<div style='background-color:#E5F6FF; font:10px verdana; text-align:center; padding:5px 0px'>";	
	HTMLtxt += "<table cellpadding='1' height='70' width='80%' cellspacing='0' style='font:10px verdana;' align='center'>"; 
	
	if (sno != "")
		HTMLtxt += "<tr valign='top'><td width='38%'><b>S.No</b></td><td width='4%' align='left'>:</td><td width='38%'>" + sno + "</td></tr>"
	if (title != "")
		HTMLtxt += "<tr valign='top'><td width='38%'><b>TITLE</b></td><td width='4%' align='left'>:</td><td width='38%'>" + title + "</td></tr>";
	if (medium != "")
		HTMLtxt += "<tr valign='top'><td width='38%'><b>MEDIUM</b></td><td width='4%' align='left'>:</td><td width='38%'>" + medium + "</td></tr>";
	if (size != "")
		HTMLtxt += "<tr valign='top'><td width='38%'><b>SIZE</b></td><td width='4%' align='left'>:</td><td width='38%'>" + size + "</td></tr>"
	if (price != "")
		HTMLtxt += "<tr valign='top'><td width='38%'><b>PRICE</b></td><td width='4%' align='left'>:</td><td width='38%'>Rs. " + price + "</td></tr>"	
		
	HTMLtxt += "</table>";
	HTMLtxt += "</div>";
	HTMLtxt += "<div style='background-color:#3BB4F4;text-align:right;font:11px verdana;padding:3px 15px 3px 0px'>";
	HTMLtxt += "<a href='javascript:window.close()' style='color:#FFFFFF; text-decoration:none'><b>Close this window</b></a></div>";
	HTMLtxt += "</body></html>";
	if (objWin){
		objWin.document.open();
		objWin.document.write(HTMLtxt);
		objWin.document.close();
		objWin.focus();
	}
}




var objWin, HTMLtxt;
function popup275 (src, width, height, title, medium, size, artist, coll)
{
	if(objWin)
		objWin.close();
	objWin = window.open("", "popup", 'width=' + width + ', height=' + (height + 180) + ', resizable=no');
	HTMLtxt = "<html><head><title>PBC Art Gallery</title></head>";
	HTMLtxt += "<body style='margin:0px 0px 0px 0px'>"
	HTMLtxt += "<img src=" + src + ">";
	HTMLtxt += "<div style='background-color:#E5F6FF; font:10px verdana; text-align:center; padding:5px 0px'>";	
	HTMLtxt += "<table cellpadding='1' height='70' width='80%' cellspacing='0' style='font:10px verdana;' align='center'>"; 
	if (artist != "")
		HTMLtxt += "<tr valign='top'><td width='38%'><b>ARTIST</b></td><td width='4%' align='left'>:</td><td width='38%'>" + artist + "</td></tr>"
	if (title != "")
		HTMLtxt += "<tr valign='top'><td width='38%'><b>TITLE</b></td><td width='4%' align='left'>:</td><td width='38%'>" + title + "</td></tr>";
	if (medium != "")
		HTMLtxt += "<tr valign='top'><td width='38%'><b>MEDIUM</b></td><td width='4%' align='left'>:</td><td width='38%'>" + medium + "</td></tr>";
	if (size != "")
		HTMLtxt += "<tr valign='top'><td width='38%'><b>SIZE</b></td><td width='4%' align='left'>:</td><td width='38%'>" + size + "</td></tr>"
	if (coll != "")
		HTMLtxt += "<tr valign='top'><td width='38%'><b>PRIVATE COLLECTION OF</b></td><td width='4%' align='left'>:</td><td width='38%'>" + coll + "</td></tr>"
	HTMLtxt += "</table>";
	HTMLtxt += "</div>";
	HTMLtxt += "<div style='background-color:#3BB4F4;text-align:right;font:11px verdana;padding:3px 15px 3px 0px'>";
	HTMLtxt += "<a href='javascript:window.close()' style='color:#FFFFFF; text-decoration:none'><b>Close this window</b></a></div>";
	HTMLtxt += "</body></html>";
	if (objWin){
		objWin.document.open();
		objWin.document.write(HTMLtxt);
		objWin.document.close();
		objWin.focus();
	}
}

