function PrintEmail(user, domain, display, props){
	document.write('<a href="mailto:' + user + '@' + domain + '" ' + props + '>');
	if (display != '' && display != null) {
		document.write(display);
	} else {
		document.write(user + '@' + domain);
	}
	document.write('</a>');
// useage: Place the following in script tages:
//	PrintEmail('user','domain.tld','Display Name', 'additional attributes of the "a href" tag');
}

function remove_XS_whitespace(item)
{
  var tmp = "";
  var item_length = item.value.length;
  var item_length_minus_1 = item.value.length - 1;
  for (index = 0; index < item_length; index++)
  {
    if (item.value.charAt(index) != ' ')
    {
      tmp += item.value.charAt(index);
    }
    else
    {
      if (tmp.length > 0)
      {
        if (item.value.charAt(index+1) != ' ' && index != item_length_minus_1)
        {
          tmp += item.value.charAt(index);
        }
      }
    }
  }
  item.value = tmp;
}
