// This function masks the email addresses from spiders

function mail(name, domain, link)
{
  var a = name + "&#" +(22 + 42).toString()+domain;
  if (link)
    document.writeln("<a href='mailto:"+ a +"'>"+ a +"</a>"); 
  else
    document.writeln(a);
}

// This function masks a black (non-css) email address from spiders

function nocssmail(name, domain, link)
{
  var a = name + "&#" +(22 + 42).toString()+domain;
  if (link)
    document.writeln("<a class='mainnav' href='mailto:"+ a +"'>"+ a +"</a>"); 
  else
    document.writeln(a);
}

// The following function controls autoclose windows

function AutoClose()
{
 self.close();
}