// JavaScript Document for pop up window

function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
window.open(href, windowname, 'scrollbars=yes,dependent=yes,status=yes,resizable=yes');
return false;
}

function targetopener(mylink, closeme, closeonly)
{
if (! (window.focus && window.opener))return true;
window.opener.focus();
if (! closeonly)window.opener.location.href=mylink.href;
if (closeme)window.close();
return false;
}

function showPopUp()
{
	document.getElementById("dialogue").style.display = "block";
	document.getElementById("overlay").style.display = "block";
}
function hidePopUp()
{
	document.getElementById("dialogue").style.display = "none";
	document.getElementById("overlay").style.display = "none";
}




