/* * $Id: unmunge_emails.js,v 1.6 2003/12/05 20:21:16 chip Exp $ * $Source: /var/www/unicom.com/htdocs/RCS/unmunge_emails.js,v $ * * Chip Rosenthal * Unicom Systems Development * * * unmunge_emails() - Remove anti-spam protection from email addresses. * * This routine allows you to "munge" mailto: links in a document (both * and tags), to hide them from spam address extractors. For * instance, you can say something like: * * mail me * * This routine, when called, will rewrite the document so that becomes: * * mail me * * The munging transformations you may use are: * * - You may say "at" in place of the "@" character. * - You may say "dot" in place of a "." character. * - You may put "_" characters and spaces anywhere in the address. * - You may place any "noise words" (described below) in the address. * * Although you can use either space or underscore as word separators, I * recommend underscore. Space separators may confuse the browser or * mail program. For instance, Mozilla (with javascript off) would treat * each word as a separate recipient. * * To use this function, you must do two things. First, add within * the element a line saying: * * * * (Adjust src= to point to this file.) * * Next, you must add an onLoad= parameter to your tag, such as: * * * * So, your document will look something like this: * * * * Demonstration Page *