var DefaultDomain = "lcc.org"
//------------------------------------------------------------------

function cloakemail(user,domain,DisplayText){
////////////////////////////////////////////////////////////////////
// Created by Shane Rushik June 2003
// This function returns the provided email address to be written in HTML
// Leave 'DisplayText' empty to display the email address on the page
// Otherwise, the function will return the MailTo URL with the provided 
// Text highlited as a link
// The code to call this function follows:
//------------------------------------------------------------------
//		<script language="JavaScript">
//		  <!-- Begin
// 		    document.write(cloakemail('info','companyname.com'));
//    OR . . .
// 		    document.write(cloakemail('info','companyname.com','Click here to Email us'));
// 		  // End -->
//		</script>
//------------------------------------------------------------------
// The above function will write the address info@companyname.com on the web page
////////////////////////////////////////////////////////////////////

    var asciiMAILTO = "&#109;&#97;&#105;&#108;&#116;&#111;&#58;" //-- Ascii for 'mailto:'
    if (domain == null || domain== "" ){ domain = DefaultDomain}
    if (DisplayText == null || DisplayText== "" ){ DisplayText = user +'&#64;' + domain;}
	return '<a href="' + asciiMAILTO + user + '&#64;' + domain + '">' + DisplayText + '</a>';
}

function cloakemail_img(user,domain){
///////////////////////////////////////////////////////////////////////////////////////
// Created by Shane Rushik June 2003
// This function makes an image clickable with an email address
// put the image tag after the script tag in the HTML code
// You must put a "</a>" tag to terminate the link after the image
// -----------------------------------------------------
// Here is an example of how to write this in HTML CODE:
//	<script language="JavaScript">
//	<!--
//	  document.write(cloakemail_img('info','companyname.com'));
//	// End -->
//	</script>
//	<img border="0" src="../images/imgname.gif" width="127" height="11"></a>
///////////////////////////////////////////////////////////////////////////////////////
 

    var asciiMAILTO = "&#109;&#97;&#105;&#108;&#116;&#111;&#58;" //-- Ascii for 'mailto:'
    if (domain == null || domain== "" ){ domain = DefaultDomain}
    return '<a href="' + asciiMAILTO + user + '&#64;' + domain + '">';

}
