function displayEmail(account, server, domain, subject, caption) { 
	var subjecttxt = "";
	var captiontxt = "";
	if (subject!=="") {
		subjecttxt = "?subject="+subject;
	} 	
	if (caption!=="") { 
		captiontxt = caption;
	} else {
		captiontxt = account+"@"+server+"."+domain;
	}
	fulllink="<a class=\"mailto\" href='mailto:"+account+"@"+server+"."+domain+subjecttxt+"'>"+captiontxt+"</a>"; 
	document.writeln(fulllink);
}
function flashFix(theText){document.write(theText);}
// Change floating div to correct text on mouseover
var ent;
function doText(t,dname) {
	var xp, yp, op
	xp = dname.offsetLeft;
	yp = dname.offsetTop;
	while (dname.offsetParent) {
		op = dname.offsetParent;
		xp = xp + op.offsetLeft;
		yp = yp + op.offsetTop;
		dname = dname.offsetParent;
	}
	ent = document.getElementById("ent")
	if (ent) {
		// Customise
		ent.style.color = "#000000";
		ent.style.font = "normal x-small verdana";
		ent.style.padding = "1px 1px 1px 1px";
		ent.style.background = "#eee";
		ent.style.border = "1px solid #ddd";
		// Not below
		ent.style.position = 'absolute';
		ent.style.left = (xp+10)+"px";
		ent.style.top = (yp+24)+"px";
		ent.innerHTML = t;
		ent.style.zIndex = 99;
		ent.style.display = "block";
	}
}
function doClear(dname) {
	ent = document.getElementById("ent")
	if (ent) {
		ent.style.display = "none";
	}
}
