<!-- Script courtesy of http://www.web-source.net - Your Guide to Professional Web Site Design and Development //-->

var today_date= new Date()
var tmonth=today_date.getMonth()
var ttoday=today_date.getDate()
var tyy=today_date.getYear()

var tyear = (tyy < 1000) ? tyy + 1900 : tyy;

var months = new Array(
'January',
'February',
'March',
'April',
'May',
'June',
'July',
'August',
'September',
'October',
'November',
'December');

var initialsubj="I loved this site. Check it out!"
var initialmsg="Hi:\n\n I thought you would enjoy this site: "+window.location
var good;

function checkEmailAddress(field) {

  var goodEmail = field.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\.info)|(\.sex)|(\.biz)|(\.aero)|(\.coop)|(\.museum)|(\.name)|(\.pro)|(\..{2,2}))$)\b/gi);
  if (goodEmail) {
    good = true;
  }else {
    alert('Please enter a valid address.');
    field.focus();
    field.select();
    good = false;
  }
}
u = window.location;
function mailThisUrl() {
  good = false
  checkEmailAddress(document.eMailer.email);
  if (good) {
    window.location = "mailto:"+document.eMailer.email.value+"?subject="+initialsubj+"&body="+initialmsg
  }
}

