// Sneaky Script
// Written by Mike Polowick, 2003
// Mikrotron.com

function codify (thisguy) {
	str = "";
	for (i=0; i<thisguy.length; i++) {
		str += "&#" + thisguy.charCodeAt(i) + ";";
	}	
	return str;
}

function buildaddress (one, two, three) {
	str = "";
	str += codify(three);
	str += "&#" + "064" + ";";
	str += codify(two);
	str += "&#" + "046" + ";";
	str += codify(one);
	return str;
}

// Our most popular function -- creates mailto link with email address as link text
function sneaky (one, two, three, four) {
	str = buildaddress(one, two, three);
	if (four != "") four = "class=" + four + " ";
	document.write("<a " + four + "hre" + "f=mai" + "lto:" + str +">" + str + "</" + "a>");
}

// Creates mailto link with fourth parameter as the link text
function sneaky2 (one, two, three, four, five) {
	str = buildaddress(one, two, three);
	if (four != "") five = "class=" + four + " ";
	document.write("<a " + five + "hre" + "f=mai" + "lto:" + str +">" + four + "</" + "a>");
}

// Simply prints the email address (great for forms!)
function sneaky3 (one, two, three) {
	document.write(buildaddress(one, two, three));
}