
	/*************************************************************
	   writeAddr() written 1/19/03 by Nancy Brauer to thwart 
	   those ever-annoying spam bots.  If you reuse this code,
	   please have the decency to include this comment block.
	   Thanks!
	*************************************************************/
	function writeAddr(intWhat,strHover,strWho,strLink,strWhere)
	{
		var strReturn = "";

		// Declare the array of domain types.  Hard code the 0th element to
		//  be the highest index of the array.
		var strArray = Array(5,"com","org","net","edu","va.us");

		// Make sure we've got five arguments before going any further.
		if (intWhat && (strHover || (strHover == "")) && strWho && strLink && strWhere)
		{
			//alert("Got five arguments");
		}
		else
		{
			alert("Error:  Five arguments must be passed to this function.");
			return strReturn;
		}

		// Make sure we've got acceptable first, third, and fifth arguments
		//  before going any further.
		if ((intWhat < 1) || (intWhat > strArray[0]))
		{
			alert("Error:  The first argument is out of bounds of the array.");
			return strReturn;
		}
		if (strWho.length < 1)
		{
			alert("Error:  The third argument must be at least one character long.");
			return strReturn;
		}
		if (strLink.length < 1) 
		{
			alert("Error:  The fourth argument must be at least one character long.");
			return strReturn;
		}
		if (strWhere.length < 1) 
		{
			alert("Error:  The fifth argument must be at least one character long.");
			return strReturn;
		}

		// If we got this far, then valid strings were passed
		//  for the required arguments.  Keep going.
		var str1 = "<a href='";
		var str2 = "mai";
		var str3 = "lto:";
		var strAt = "&#64;";
		var strDot = "&#46;";
		var str4 = "'";

		// Tack on the hover text, if any was passed.
		if (strHover.length > 0) str4 = str4 + " title='" + strHover + "'";

		var str4 = str4 + ">";
		var str5 = "<\/a>";

		// Assemble the return string.
		strReturn = str1 + str2 + str3 + strWho + strAt + strWhere + strDot + strArray[intWhat] + str4 + strLink + str5;

		return strReturn
	}

