/******************************************************************************
 *
 *                   INDIGEN SOLUTIONS PROPRIETARY INFORMATION
 *       This software is supplied under the terms of a license agreement or
 *       nondisclosure agreement with Indigen Solutions and may not be copied
 *       or disclosed except in accordance with the terms of that agreement.
 *            Copyright (c) 2004 Indigen Solutions. All Rights Reserved.
 *
 * Author    : David PISTORI (david.pistori@indigen.com)
 *
 * File name :
 *
 * Abstract  :
 *
 * RCS Id                       $Id: mail.js,v 1.2 2005/03/08 14:57:29 indigen Exp $
 * RCS Revision                 $Revision: 1.2 $
 * RCS Check in date            $Date: 2005/03/08 14:57:29 $
 * RCS State                    $State: Exp $
 * RCS Author                   $Author: indigen $
 * RCS Locked by                $Locker:  $
 *
 ******************************************************************************/

function _m(param1, param2) {
  document.location.href = "mailto:" + param1 + "@" + param2;
}

function validEmailForm(form, message) {
  var email = "";
  if (form.icmsform_email)
    email = form.icmsform_email.value;
  if (form.icmsform_mail)
    email = form.icmsform_mail.value;
  if (email.indexOf(".") > 2 && (email.indexOf("@") > 0) && email != '')
    return true;
  alert(message);
  return false;
}
