function JavaShowPopup(elementid){
document.getElementById(elementid).style.display = "block";
}

function JavaHidePopup(elementid){
document.getElementById(elementid).style.display = "none";
}

function TogglePopup(elementid){
if (document.getElementById(elementid).style.display != 'none')
{
document.getElementById(elementid).style.display = "none";
}
else
{
document.getElementById(elementid).style.display = "block";
}
return false;
}

function DisableDrag(e) {
 var evt=window.event || e //evt evaluates to window.event or inexplicit e object, depending on which one is defined
 //Disable dragging in Firefox
if(evt.preventDefault){evt.preventDefault();}}


var PopUpWin = null;
var varChildWindow=null;

function OpenPopUp(URL, Name, Params)
{
var browserType = navigator.userAgent.toLowerCase();
//close the zoom window if they currently have it open
if (PopUpWin && (navigator.appName == "Microsoft Internet Explorer"))
{
PopUpWin.close();
}

//open the window
if (browserType.indexOf("opera") < 0) //not opera
{
PopUpWin=window.open(URL, Name, Params);
if (PopUpWin)
{
// popup successfully created
// set window as the focus
PopUpWin.focus();
}
else
{
location.href = URL
}
}
else //opera kills the code if open window attempted - must redirect automatically
{
location.href = strUrl
}
varChildWindow = PopUpWin;
return false;
}
