function makemailto( pre, post, nm, cls ) {
	if ( !nm )
		nm = "";
	document.write( "\<a href=\"javascript:mailto('" + nm + "','" + pre +
"','" + post + "')\"" );
	if ( cls && cls.length > 0 )
		document.write( " class=\"" + cls + "\"" );
	document.write( "\>" + pre + "@" + post + "\</a\>" );
}

function mailto( nm, pre, post ) {
	var addr;
	if ( nm && nm.length > 0 )
		addr = nm + " <" + pre + "@" + post + ">";
	else
		addr = pre + "@" + post;
	document.location = "mailto:"+addr;
}