function initPopupLinks()
{
  if (!document.getElementsByTagName) return true;
  var pageLinks = document.getElementsByTagName("a");
  for (var i = 0; i < pageLinks.length; i++) 
  {
    if (((pageLinks[i].className != null) && 
         (pageLinks[i].className != "")) ||
        ((pageLinks[i].parentNode.className != null) && 
         (pageLinks[i].parentNode.className != "")))
    {
      var linkClass = " " + pageLinks[i].className + " ";
      if ((linkClass == "  ") && (pageLinks[i].parentNode.className != ""))
      {
        linkClass = " " + pageLinks[i].parentNode.className + " ";
      }
      for (var theKey in popupLinkConfig) 
      {
        if (linkClass.indexOf(" " + theKey + " ") > -1)
        {
          if ((pageLinks[i].target == "") || (pageLinks[i].target == null))
          {
            pageLinks[i].target = (popupLinkConfig[theKey][0] != "") ? popupLinkConfig[theKey][0] : theKey;
          }
          pageLinks[i].width = popupLinkConfig[theKey][1];
		  pageLinks[i].height = popupLinkConfig[theKey][2];
		  pageLinks[i].settings = popupLinkConfig[theKey][3];
		  pageLinks[i].center = popupLinkConfig[theKey][4];
          pageLinks[i].onclick = popUp;
        }
      }
    }
  }
  return true;
}

function popUp()
{
	var settings;
	if(this.center) {
		var winl = (screen.width - this.width) / 2;
		var wint = (screen.height - this.height) / 2;
		settings = "width="+this.width + ", height=" + this.height + ", " + this.settings + ", left=" + winl + ", top=" + wint + ", screenX=" + winl + ", screenY=" + wint;
	} else {
		settings = "width="+this.width + ", height=" + this.height + ", " + this.settings;
	}
  newWin = window.open(this.href, this.target, settings);
  newWin.focus();
  return false;
} 


function safetyL2(message)
{
    status=message;
}
function safetyL3(message)
{
    status=message;
    setTimeout('safetyL2("'+message+'")',1);
}

function getCurrentURL () {
var URL = document.location.toString();
document.joinList.hidRef.value = URL;
}