function writemail(hostname,username,linktext,mode) {
if (hostname.length > 0) {
mail_to="mail" + "to:" + username + "@" + hostname;
if (mode==0) {
(linktext.length > 0)?document.write("" + linktext + ""):document.write("" + username + ""+"@" + hostname +"" + "");
}
else { document.location.replace(mail_to); }
}
}