/**
 * This function allows a mailto operation to hide behind a form button. When
 * the user clicks the form button the behaviour is identical to clicking on
 * a mailto tag in HTML.
 *
 * This function is used for Outlook Integration.
 *
 * @author SMcE 12/August/2003. A fine summers day.
 */
function popupMessage(subject, body) {
  // BUILD MAIL MESSAGE COMPONENTS
  var doc = "mailto:" +
  "?subject=" + escape(subject) +
  '&body=' + escape(body);
  window.location = doc;
}

/**
 * This function is similar to above but allows us to pass in a 'To' email address.
 *
 * This function is used for sending a support e-mail from the login page. when the
 * user clicks the support@spectel.com hypertext, this function will create a mail
 * message with the To and Subject fields populated.
 *
 * @author GW 23/Jan/2004.
 */

function popupMessageTo(to, subject, body) {
  // BUILD MAIL MESSAGE COMPONENTS
  var doc = "mailto:" + to +
  "?subject=" + escape(subject) +
  '&body=' + escape(body);
  window.location = doc;
}