// ==========================================================
// Hide mail address from spiders
// ==========================================================
function mail(name,text,classname,subject)

{

var rhs = "gogetorganized.com";
var add = name + "@" + rhs;
var classtag = "";

// Set optional parameters to blank if they are not passed
if (text==null) {
	text = "";
}

if (classname==null) {
	classname = "";
}

if (subject==null) {
	subject = "";
}

// If the text field is not specified use the basic address
if (text=="") {
	text = add;
}

// Build the subject code if required
if (subject!="") {
	add = add + "?subject=" + subject;
}

// Build the class code if required
if (classname!="") {
	classtag = "class='" + classname + "'";
}

// Write out the completed mail to reference
document.write("<a " + classtag + " href='" + "mail" + "to:" + add + "'>" + text + "</a>");

}
