function InsertMailto(strTLD, strDomain, strBox, strClass, strText)
{
	var strLink;
	var strAddress;

	strAddress = strBox;
	strAddress += "@";
	strAddress += strDomain;
	strAddress += ".";
	strAddress += strTLD;

	strLink = "<a href=\"";
	strLink += "mai";
	strLink += "lto:";
	strLink += strAddress;	
	strLink += "\"";
	if(strClass != null) strLink += " class=\"" + strClass + "\"";
	strLink += ">";
	
	if(strText == null) strLink += strAddress;
	else strLink += strText;
	
	strLink += "</a>";
	
	document.write(strLink);
}


