// xwsScripts 
// Version 1.0
// Created by Denny Brown (dbrown@expertwebsupport.com)
// Feel free to reuse this. Please retain the attribution information.

function xsMailTo(whoTo, domainTo, linkText, subjectTo, bodyTo ) {
	// xsMailTo is a function that puts a mailto: link into a file without making the email address obviously visible to
	// robots that might be trying to harvest email addresses.
	// whoTo specifies the target email address without the domain part.
	// domainTo specifies the domain for the address.
	// linkText is what appears to the visitor in her browser.
	// subjectTo is an optional Subject for the message to be sent.
	// bodyTo is an optional Body for the message to be sent.
	// Sample usage: 
	//   <script language="JavaScript" type="text/javascript"> xsMailTo("webinquiry", "xs.com", "webInquiry at xs.com", "Free Developmental Edit",
	//                   "Please contact me about a free developmental edit on the document of my choice."); </script >
	if (!subjectTo) { subjectTo = ""; };
	if (!bodyTo) { bodyTo = ""; };
	document.write('<a href=\"mai' + 'lto:' + whoTo + '&#64;' + domainTo + '?subject=' + subjectTo + '&body=' + bodyTo
				   + '\" onMouseOver=\"window.status=\' \';return true\">' + linkText + '</a>');
	
} // xsMailTo