function maskify(user, text, subject)
{
	var output = "<a href='mailto:"+user+"@sgc.com.au";
	
	if (subject != null)
		output += "?subject="+subject;
	
	output += "'>";
	
	if (text == null)
		output += user+"@sgc.com.au";
	else
		output += text;
		
	output += "</a>";
	document.write(output);
}