/**
 * Copyright (C) 2004, CodeHouse.com. All rights reserved.
 * CodeHouse(TM) is a registered trademark.
 *
 * THIS SOURCE CODE MAY BE USED FREELY PROVIDED THAT
 * IT IS NOT MODIFIED OR DISTRIBUTED, AND IT IS USED
 * ON A PUBLICLY ACCESSIBLE INTERNET WEB SITE.
 *
 * Script Name: E-mail Hider
 * Script name: copulo, William D. Redman Modified 
 *
 * You can obtain this script at http://www.codehouse.com
 */
 
function copulo(name, domain, suffix, text)
{
   
   
   var address = name + "\u0040" + domain + "." + suffix;
   var url = "mailto:" + address;

   if( ! text )
   {
      text = address;
   }

   document.write("<a href=\"" + url + "\">" + text + "</a>");
}

/**
 *
 * Follow the covention below. Create a list[n] for the appropriate name,
 * and an asssociate domain as well. The passed value of cname is the key into
 * the list to match up pairs. The numbers to not need to be sequential.
 *
 */
function ligo(cname) 
{
   var list[0] = "wredman";
   var list[1] = "Stylock";
   var list[2] = "Chip";

   var dom[0] = "frontiernet.net";
   var dom[1] = "aol.com";
   var dom[2] = "Penske.com";
   

   var msg[0] = "Email WebAdmin";
   var msg[1] = "Email Primary";
   var msg[2] = "Email Secondary";

   copulo(list[cname],dom[cname],msg[cname]);


}
