
// Function to "hide" an email address from robots

function hide(host_ext,host_name,id,show){
  addr = id + '@' + host_name + '.' + host_ext;
	if (show == null) {show = addr;}
  document.write('<a href="' + 'mail' + 'to:' + addr + '">' + show + '</a>')
	
  // Example of use:
  //
  // <head>
  // <script language="JavaScript" type="text/javascript" src="hide_addr.js"></script>
  // </head>
	
  // <body>
  // HTML:	<script type="text/javascript"> hide('net','thekingz','dave')</script>
  // Displays:	dave@thekingz.net (address is underlined and an e-mail link)
  // HTML:	<script type="text/javascript"> hide('net','thekingz','dave','The King')</script>)
  // Displays:	The King (name is underlined and an e-mail link) 	
  }