function cloakmail( user, domain, subject, text )
{ user = user.replace(/\./g,"&#046;");
  domain = domain.replace(/\./g,"&#046;");
  document.write("<a href=\"mailto:" + user + "&#064;" + domain);
  if (subject)
  { document.write( "?Subject=" + subject.replace( / /g, "%20" ) );
  }
  document.write( "\">" );
  if (text) { document.write( text ); }
  else { document.write( user + "&#064;" + domain ); }
  document.write( "<\/a>");								
}

// *****************************************************************************
// *     t o g g l e     *
// ***********************
// Hides and displays sections of text.  Function 'toggle' is usually called
// from 
// Argument node (usually the node whose onclick handler calls us) must be
// within a DIV of class 'toggle'.  The function will look at the immediate
// children of that DIV for nodes of class 'toggle-on' or 'toggle-off' and will
// switch them to the opposite class.  CSS defined elsewhere must define class
// 'toggle-off' as being not for display. 
function toggle( node )
{ // Go up document tree looking from node of class "toggle"
  while (node != null && node.className != "toggle")
  { node = node.parentNode;
  }
  if (node == null) return true; // We can't do anything, allow default action
  // Scan child nodes, switching classes toggle-on and toggle-off
  var c = node.firstChild;
  while (c != null)
  { if (c.nodeType == 1)
    { if (c.className == "toggle-on") c.className = "toggle-off";
	  else if (c.className == "toggle-off") c.className = "toggle-on";
	}
    c = c.nextSibling;
  }
  return false; // To cancel default action.
}
