function AddOnload(myfunc)
{
    if(window.addEventListener)
        window.addEventListener('load', myfunc, false);
    else if(window.attachEvent)
        window.attachEvent('onload', myfunc);
}
function hilightHeading(headingID)
{
	var x=document.getElementById(headingID)
	x.className = "stayDown";
}
function dimHeading(headingID)
{
	var x=document.getElementById(headingID)
	x.className = "link";
}
	function showPopUp(el,winW,winH) {
    var cvr = document.getElementById("cover");
    var dlg = document.getElementById(el);
		
    cvr.style.display = "block";
		cvr.style.zIndex = "0";
		
		dlg.style.zIndex = "152";
    dlg.style.display = "block";

		var winX = (document.body.clientWidth - winW) / 2;
		var winY = (document.body.clientHeight - winH) / 2;

    dlg.style.left = winX + "px";
   	dlg.style.top = winY + "px";
		
    dlg.style.width= winW + "px";
    dlg.style.height = winH + "px";

    if (document.body.style.overflow = "hidden") {
    cvr.style.width = document.body.clientWidth;
    cvr.style.height = document.body.clientHeight;
    }
    }
    function closePopUp(el) {
    var cvr = document.getElementById("cover");
    var dlg = document.getElementById(el);
		cvr.style.zIndex = "0";
		dlg.style.zIndex = "0";
    cvr.style.display = "none";
    dlg.style.display = "none";
    document.body.style.overflowY = "scroll";
  }
	
	function showZ()
	{

		var parg = document.getElementsByTagName('*');


       //var children = parg.childNodes;
       for (var i = 0; i < parg.length; i++) 
       {
						//alert(i);
						//alert(parg[i].nodeName + " : " + parg[i].id + " : " + parg[i].style.zIndex);
       }


		
	}
