// Google Analytics code
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-157975-11']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

function validate_email()
{
	var emailid;
	var emailfilter;
	var invalidid;
	emailid = document.getElementById("email");
	invalidid = document.getElementById("invalidemailtext");
	emailfilter = /^[\w\.\+\-=]+@[\w\.\-]+\.[\w\-]+$/;

	if (!(emailfilter.test(emailid.value))) {
		invalidid.innerHTML = "Please enter a valid email address.";
//		alert("You have entered an invalid email address." +
//                        " Please a" +
//			" valid email address.");
		return false;
	} else {
		invalidid.innerHTML = "";
	}

	return true;
}

function validate()
{
	if (validate_email() == false) {
		alert("You have entered an invalid email address." + 
			" Please enter a valid email address.");
		document.getElementById("email").focus();	
		return false;
	}

	return true;
}
