// JavaScript Document
(function() 
{	
	var $id = function (el)
	{
		return document.getElementById(el);	
	}
	$(document).ready( function()
	{	// check to make sure it exists before you attempt to add and event to it
		if ( typeof $id('email') != 'undefined' ) {
			$('#email').blur( function() 
			{
				emailContent = this.value;
				if ( emailContent != '' && !emailContent.match(/^.+@.+\.[a-z]{2,6}$/) ) {
					alert('Sorry, it seems your email address is not formatted correctly.');
				}
			}); // end blur function
		} // end if type of is defined
	});
	
})();