
var baseText = null;

function showPopup(w,h){
	var popUp = document.getElementById("popupcontent");
	
	popUp.style.top = "0px";
	
	popUp.style.left = "320px";
	
	popUp.style.width = "250px";
	
	popUp.style.height = "250px";

		
	if (baseText == null) baseText = popUp.innerHTML;
				
	popUp.innerHTML = baseText +
	
	"<div id=\"statusbar\"><img src ='/images/close.gif' onclick='hidePopup();' alt='Close' style='padding:0px; margin:0px; background:none;' /></div>";
	
	var sbar = document.getElementById("statusbar");
	
	var browser=navigator.appName;
	if(browser=="Microsoft Internet Explorer")
	{
		sbar.style.marginLeft = (parseInt(h)-30) + "px";
	
		sbar.style.marginTop = (parseInt(h)-495) + "px";
	}
	else
	{
		sbar.style.marginLeft = (parseInt(h)-30) + "px";
	
		sbar.style.marginTop = (parseInt(h)-495) + "px";
	}
	
	popUp.style.visibility = "visible";
}


function hidePopup(){

	var popUp = document.getElementById("popupcontent");
	
	popUp.style.visibility = "hidden";

}

