
function hide(user, host, sbj, name)
	/*
	Aug 25/2004

	hide email address routine
	user@host?Subject=sbj
	
	passed user name and host - create email string and display
	optional subject  (if blank='' then ignor)
	optional name  (if blank='' then use email name)

	create and display string for html
	<A href=mailto:user@host?Subject=sbj>name</A>
	<A href=mailto:user@host?Subject=sbj>user@host</A>
	
	sample code
		<head>
		<!-- load routine to hide email addresses from webbots -->
		<script language="JavaScript" src="hidemail.js" type="text/javascript"></script>
		</head>

	
		<body>
		<script language="JavaScript">hide('user', 'company.com', 'subject', 'real name');</script>
		</body>

	*/

{
	var eml="<A href='mailto:"+user+"@"+host;
	if (sbj!=="") eml=eml+"?Subject="+sbj;
	eml=eml+"'>";
	if (name!=="")
		{eml=eml+name;}
	else
		{eml=eml+user+"@"+host;}
	eml=eml+"</A>";
	document.write(eml);
}
