var user;
var domain;
var suffix;

function jemail(user, domain, suffix, displaytext)
{
   if (displaytext != "")
      document.write('<a href="' + 'mailto:' + user + '@' + domain + '.' + suffix + '">' + displaytext + '</a>');
   else
      document.write('<a href="' + 'mailto:' + user + '@' + domain + '.' + suffix + '">' + user + '@' + domain + '.' + suffix + '</a>');
}

function openWindowCentered(thePage, theName, theWidth, theHeight, isResizable)
{
  leftPos = 0
  topPos = 0
  if (screen)
  {
     leftPos = (screen.availWidth - theWidth) / 2
     topPos = (screen.availHeight - theHeight) / 2
  }
  if (isResizable)
     popupWindow = window.open(thePage, theName, "resizable=yes,scrollbars=yes,width=" + theWidth + ",height=" + theHeight + ",left=" + leftPos + ",top=" + topPos)
  else   
     popupWindow = window.open(thePage, theName, "width=" + theWidth + ",height=" + theHeight + ",left=" + leftPos + ",top=" + topPos)
  popupWindow.focus()
}


