	var d=document;
	var	w=window;
	var transBack=null;
	var popUpId="divPopup"; // popUp Id

	function showPopup(){ 
		var popupWidth = 300; 
		var popupHeight = 150; 
		var dE,div,b = d.getElementsByTagName("BODY")[0];
		transBack=d.createElement("DIV");
		transBack.id="transparentBack";
		transBack.style.height=b.offsetHeight + "px";
		div=d.getElementById(popUpId);
		div.onclick=function(){ 
			hidePopup();
		}
		dE=d.documentElement;
		with(div.style){
			width=popupWidth+"px";
			height=popupHeight+"px";
			top=((w.innerHeight)?w.innerHeight:dE.clientHeight)/2+dE.scrollTop-150+"px";
			left=(((w.innerWidth)?w.innerWidth:dE.clientWidth)-popupWidth)/2+"px";
			display="block";
		}
		b.appendChild(transBack);
	}

	function hidePopup(){
		transBack.parentNode.removeChild(transBack);
		transBack=null;
		d.getElementById(popUpId).style.display="none";
	}

