<!--
/*
if ((top==self)==true) 
{
	parent.location.href='http://www.lafun.org/main/default.asp';
}
*/

/*
function checkEmail(theControl)
{
	emv = theControl.value;
	filter=/^.+@.+\..{2,3}$/
	if (filter.test(emv) && emv.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\..{2,2}))$)\b/gi)) 
	{
		return true;
	} 
	else 
	{
		alert("Please input a valid email address!")
		theControl.select();
		return false;
	}
}
*/

function SwapImage(obj,newImg)
{
	obj.src = newImg
}

function checkEmail(theControl) {
   var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
   var address = theControl.value;
   if(reg.test(address) == false) {
      alert('Invalid Email Address');
      theControl.select();
      return false;
   }
   
   return true;
}

//-->
