function validateForm(form)
{
  for (i=0; i < form.elements.length; i++)
  {
    if (form.elements[i].value=='')
    {
      alert('Please fill out all form fields before sending your mail.');
      return false;
      break;
    }
  }
  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 new_win(url, w, h)
{
  var left_position = (Math.floor(screen.availWidth)) ? (Math.floor(screen.availWidth) - w) / 2 : 5;
  var top_position = (Math.floor(screen.availHeight)) ? (Math.floor(screen.availHeight) - h) / 2 : 5;
  var win = window.open(url,'x', 'width=' + w + ', height=' + h + ',resizable=yes,status=no,location=no,menubar=no,toolbar=no,scrollbars=no,left=' + left_position + ', top=' + top_position);
  win.focus();
}