 function popOpen(location)
 {
	window.open(location,'','scrollbars=yes,menubar=no,height=550,width=600,resizable=yes,toolbar=no,location=no,status=no');
 }


<!-- Modal Dialog Box for email -->
function ShowModal(mess, theTop)
{
	document.getElementById("message").innerHTML = mess;
	document.getElementById("modalLayer").style.visibility = "visible";
	document.getElementById("ConBox").style.visibility = "visible";
	document.getElementById("cB1").focus();
	CenterContent(theTop);
}

function HideModal()
{
	document.getElementById("modalLayer").style.visibility = "hidden";
	document.getElementById("ConBox").style.visibility = "hidden";
}

function emailResponseEnter()
{
	HideModal();
}

function CenterContent(theTop)
{
	if(typeof window.innerWidth == 'number')
	{
		pageW = window.innerWidth;
		pageH = window.innerHeight;
		boxW = document.getElementById("ConBox").innerWidth;
		boxH = document.getElementById("ConBox").innerHeight;
	}
	else if (document.documentElement && document.documentElement.clientWidth)
	{
		pageW = document.documentElement.clientWidth;
		pageH = document.documentElement.clientHeight;
		boxW = document.getElementById("ConBox").clientWidth;
		boxH = document.getElementById("ConBox").clientHeight;
	}
	else
	{
		pageW = document.body.clientWidth;
		pageH = document.body.clientHeight;
		boxW = document.getElementById("ConBox").clientWidth;
		boxH = document.getElementById("ConBox").clientHeight;	
	}
	
	document.getElementById("modalLayer").style.height = (pageH - 20) + "px";
	placeW = Math.floor((pageW - boxW)/2) + "px";
	placeH = Math.floor((pageH - boxH)/2) + "px";
	document.getElementById("ConBox").style.left = placeW;
	document.getElementById("ConBox").style.top = theTop;
}

function getPageH()
{
	if(typeof window.innerWidth == 'number')
	{
		pageH = window.innerHeight;
	}
	else if (document.documentElement && document.documentElement.clientWidth)
	{
		pageH = document.documentElement.clientHeight;
	}
	else
	{
		pageH = document.body.clientHeight;
	}
	return pageH;
}
		
if(!window.saveInnerWidth) {
  window.onresize = resizeIt;
  window.saveInnerWidth = window.innerWidth;
  window.saveInnerHeight = window.innerHeight;
}

function resizeIt() {
    if (saveInnerWidth < window.innerWidth || 
        saveInnerWidth > window.innerWidth || 
        saveInnerHeight > window.innerHeight || 
        saveInnerHeight < window.innerHeight ) 
    {
        AdjustBottom();
    }
}

