function check_form(form)
{
  if (form.fullname.value=='')
  {
    alert('You must enter your name first.');
    form.fullname.focus();
    return false;
  }
  if (form.email.value=='')
  {
    alert('You must enter your email address first.');
    form.email.focus();
    return false;
  }
  if (form.message.value=='')
  {
    alert('You must enter a message.');
    form.message.focus();
    return false;
  }
  return true;
}

// these functions will remove dotted lines (focus) from ALL links when the page is first loaded
// This MAY piss people off if they cannot tab to a link...if so, use the other function
function unblur()
{
  this.blur()
}
function blurLinks()
{
  theLinks = document.getElementsByTagName('a');
  for (i=0; i<theLinks.length; i++) theLinks[i].onfocus = unblur;
}
window.onload = blurLinks;

function add_email(uName, Dom, Tld, mName, subject_line)
{
  var first = 'ma';
  var second = 'il';
  var third = 'to:';
  var address = uName;
  var domain = Dom;
  var ext = Tld;

  var sub = (subject_line) ? '?subject='+subject_line : '';

  document.write('<a href="' + first + second + third + address + '@' + domain + '.' + ext + sub +'">');
  if (mName=='') document.write(address + '@' + domain + '.' + ext);
  else document.write(mName);
  document.write('</a>');
}
