
var baseText = null;

function showPopup(w,h){
	var popUp = document.getElementById("popupcontent");
	
	popUp.style.top = "0px";
	
	popUp.style.left = "0px";
	
	popUp.style.width = "253px";
	
	popUp.style.height = "270px";

		
	if (baseText == null) baseText = popUp.innerHTML;
				
	popUp.innerHTML = baseText +
	
	"<div id=\"statusbar\"><input type='image' src ='images/pop-close.gif' onclick='hidePopup();'></div>";
	
	var sbar = document.getElementById("statusbar");
	
	var browser=navigator.appName;
	if(browser=="Microsoft Internet Explorer")
	{
		sbar.style.marginLeft = (parseInt(h)-0) + "px";
	
		sbar.style.marginTop = (parseInt(h)-470) + "px";
	}
	else
	{
		sbar.style.marginLeft = (parseInt(h)-0) + "px";
	
		sbar.style.marginTop = (parseInt(h)-465) + "px";
	}
	
	popUp.style.visibility = "visible";
}


function hidePopup(){

	var popUp = document.getElementById("popupcontent");
	
	popUp.style.visibility = "hidden";

}
