//this function creates a mailto: link to help prevent address mining
function MailTo(ename,edomain,esubject,clickable,classname,imgdetail,linktext) {
	thislink = "mailto:" + ename + "@" + edomain;
	esubject.length != 0 ? thislink += "?subject=" + esubject : thislink = thislink;
	if (linktext == ''){
		thistext = ename + "@" + edomain;
	} else {
		thistext = linktext;
	}
	if (clickable == 1) {
		if (imgdetail == ''){
			if (classname ==''){
				return thistext.link(thislink);
			} else {
				thisclasslink =  "<a href='" + thislink + "' class='" + classname + "'>" + thistext + "</a>"
				return thisclasslink;
			}
		} else {
			thisimglink = "<a href='" + thislink + "'><img " + imgdetail + "></a>";
			return thisimglink;
		}
	} else {
		return thistext;
	}
}

// date object
var d = new Date();