/* AMJ scripts for outgoing mail and page links */

// for mail

function text(part1, text1, linktext, text2, part2) {
  var result = (text1 + '<a href="' + '&#109;ail' + 'to&#58;' + part1 + '&#64;' + part2 + '">' + linktext + '<\/a>' + text2);
  return result;
}


// for new window, to be sure it is visible

var newWindow = '';

function openNew(url,name) {
  if (!newWindow.closed && newWindow.location) {
    newWindow.location.href = url;
  } else {
    newWindow = window.open(url,name);
    if (!newWindow.opener) {
      newWindow.opener = self;
    }
    if (window.focus) {
      newWindow.focus();
    }
  }
  return false;
}
