// JavaScript Document
function validateDOB( str ) //format = mm/dd/yyyy
{
	if( str == "" )
		return true;
	 
	var year, month, day;
	year 	= str.substr(0, 5);
	month 	= str.substr(5, 3);
	day 	= str.substr(8, 3);
	var dateStr = year + month + day;
	var regEx = /^\d{2}\/\d\d\/\d{4}$/;
	if( result = regEx.test(dateStr) ) 
		return true;
	//alert("Invalid date \r\nDate format: [yyyy/mm/dd]");
	return false;
}

function isValidEmail(strEmail)
{ 
  validRegExp = /^[^@]+@[^@]+.[a-z]{2,}$/i;
  //strEmail = document.forms[0].email.value;

   // search email text for regular exp matches
   if (strEmail.search(validRegExp) == -1) 
   {
	  //alert('A valid e-mail address is required');
	  return false;
	} 
	return true; 
}
