
// POP UP A PREFORMATTED EMAIL MESSAGE WINDOW
function subscribe() {

  // SET MESSAGE VALUES
  var to = "newsletter@emispher.org";
  var subject = "PARRAINAGE";
  var body =
      "Welcome !\n\n\tEnter the email address of the recipients (one by line, preceeded by the word 'EMAIL : ') " +
      "\n\n\tEMAIL : ............ ";

  // BUILD MAIL MESSAGE COMPONENTS
  var doc = "mailto:" + to +
      "?subject=" + escape(subject) +
      "&body=" + escape(body);

  // POP UP EMAIL MESSAGE WINDOW
  window.location = doc;
}

function registerHTML() {
  // SET MESSAGE VALUES
  var to = "newsletter@emispher.org";
  var subject = "INSCRIPTION";
  var body =
      "Receive the newsletter as HTML in body (like a web page)." +
      "\n\nPlease confirm your subscription. Just click on the 'Reply' function of the your emailer software." +
      "\n\nYou will receive in the coming couple of hours an email confirmation. " +
      "\n\nNote : some emailer software do not support HTML in body. In such a case, choose the TEXT Format."

  // BUILD MAIL MESSAGE COMPONENTS
  var doc = "mailto:" + to +
      "?subject=" + escape(subject) +
      "&body=" + escape(body);

  // POP UP EMAIL MESSAGE WINDOW
  window.location = doc;
}

function registerTEXT() {
  // SET MESSAGE VALUES
  var to = "newsletter@emispher.org";
  var subject = "INSCRIPTION (FORMAT:TEXTE)";
  var body =
  	  "Receive the newsletter in TEXT format" +
      "\n\nPlease confirm your subscription. Just click on the 'Reply' function of the your emailer software." +
      "\n\nYou will receive in the coming couple of hours an email confirmation. "

  // BUILD MAIL MESSAGE COMPONENTS
  var doc = "mailto:" + to +
      "?subject=" + escape(subject) +
      "&body=" + escape(body);

  // POP UP EMAIL MESSAGE WINDOW
  window.location = doc;
}

function unsubscribe() {
  // SET MESSAGE VALUES
  var to = "newsletter@emispher.org";
  var subject = "DESINSCRIPTION";
  var body =
  	  "Do not receive anymore the newsletter," +
      "\n\nYour e-mail address will be removed from the mailing list of 'emispher.org'." +
      "\nYou will not receive any email from 'emispher.org'." +
      "\n\nJust click on the 'Reply' function of your emailer software to confirm unsubsciption." +
      "\n\nCancellation of your subscription will be confirmed by email. "

  // BUILD MAIL MESSAGE COMPONENTS
  var doc = "mailto:" + to +
      "?subject=" + escape(subject) +
      "&body=" + escape(body);

  // POP UP EMAIL MESSAGE WINDOW
  window.location = doc;
}

