function genEmail(emaila,emailb,emailc,thetext,theclass) {
// Write an email link to the document;
// All 5 arguments are required;
// First 3 args must be non-blank, and will make an email address of the form:
//   emaila@emailb.emailc
// If last 2 args are non-blank, then this generates: 
//   <a href="mailto:emaila@emailb.emailc" class="theclass">thetext</a>
// If thetext is blank, then it uses the email address as thetext, such as:
//   <a href="mailto:emaila@emailb.emailc" class="theclass">emaila@emailb.emailc</a>
// If theclass is blank, then the 'class="theclass"' portion is omitted from the output
// Call me like this, for example:
//   Please <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">genEmail("info","xyz","com","contact us","fancy");</script> for help.
// Or like this:
//   Contact <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">genEmail("info","xyz","com","","");</script> for help.
var output;
if (thetext == '') {
	thetext = emaila + '@' + emailb + '.' + emailc;
}
if (theclass != '') {
	theclass = ' class="' + theclass + '"';
}
output = '<a href=\"mailto:' + emaila + '@' + emailb + '.' + emailc + '"' + theclass + '>' + thetext + '</a>';
document.write(output);
}
