/*
 * Copyright (c) 2002-2007 CodeDroids ApS (http://www.codedroids.com)
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * For further information about CodeDroids ApS, please see the
 * company website: http://www.codedroids.com
 * 
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 * 
 * $LastChangedRevision: 117 $
 * $LastChangedDate: 2007-02-20 11:24:48 +0100 (Tue, 20 Feb 2007) $
 * 
 */

function cd_mobfuscate(dom, name) {
  document.write(name+"@"+dom);
}
function cd_m2obfuscate_l(dom, name, subj, pre, txt, post) {
  document.write("<a href='mailto:");
  document.write(name+"@"+dom);
  if(subj!=null && subj.length > 0)
    document.write("?"+subj);
  document.write("'>"+pre+(txt==null ? (name+"@"+dom) : txt)+post+"</a>");
}
function cd_m2obfuscate(dom, name) {
  cd_m2obfuscate_l(dom, name, null, '', null, '');
}
function cd_m2obfuscate1(dom, name, subj) {
  document.write("<a href='mailto:");
  document.write(name+"@"+dom);
  if(subj!=null && subj.length > 0)
    document.write("?"+subj);
  document.write("'>");
}
function cd_m2obfuscate2(dom, name) {
  document.write(name+"@"+dom);
}
function cd_m2obfuscate3() {
  document.write("</a>");
}