<!-- Begin

//Copyright 2003 - George Plumley  george@bravenewniche.com
//Please email the author for permission to use - I usually say yes :-)

//The makeLive number refers to the kind of email link it will be.
//1 = just the email address with no link or class style
//2 = the opening portion of an A HREF link without a class style (use around images, etc.)
//3 = same as 2, but with class style
//4 = the email address as the text of the mailto link, with a class style
//0 or no number = same as 4, but with no class style
//endBit = domain suffix (.com)   whereat = domain name (yahoo)  toWhom = username (joesmith)

function eThis(endBit,whereAt,toWhom,makeLive,theClass) {

var theAddress;
var thePartial;
var thePartialClass;
var theFull;
var theFullClass;

theAddress = toWhom+"@"+whereAt+"."+endBit;

if (makeLive == "1") {
	document.write(theAddress);
}

else if (makeLive == "2") {
	thePartial = '<a href="mailto:'+theAddress+'">';
	document.write(thePartial);
}

else if (makeLive == "3") {
	thePartial = '<a class="'+theClass+'" href="mailto:'+theAddress+'">';
	document.write(thePartial);
}

else if (makeLive == "4") {
	theFullClass = '<a class="'+theClass+'" href="mailto:'+theAddress+'">'+theAddress+'</a>';
	document.write(theFullClass);
} 

else {
	theFull = '<a href="mailto:'+theAddress+'">'+theAddress+'</a>';
	document.write(theFull);
} 


}


//This function is to protect the recipient email in a form

function includeEmail() {

var f = document.RequestForm;
var name = "spin";
var at = "@";
var url = "amsind.com";
f.recipient.value = name + at + url;
return true;

}


// End -->
