function IsValidEmail(strElementValue){	strFormat = "xxxxx@xxxxx.xxx";		strInvalidChars="`~!#$%^&@*()=+[]{}|;,<>?:";	strInvalidBodyChars="`~!#$%^&@*()=+[]{}|;,<>.?:";		intFirstSep=strElementValue.indexOf("@");	if ((intFirstSep == 0) || (intFirstSep == -1))		{alert("The email address you entered does not appear to be valid.  Please re-enter it.");return false;}			strName=strElementValue.substring(0,intFirstSep);	for (i=0; i < strName.length; i++)	{		chrElementChar = strName.substring(i, i+1);		if (strInvalidChars.indexOf(chrElementChar) != -1)				{alert("The email address you entered does not appear to be valid.  Please re-enter it.");return false;}	}	strElementValue=strElementValue.substring(intFirstSep+1,strElementValue.length);	intSecondSep = -1;	for (i=0; i< strElementValue.length; i++)	{		chrElementChar = strElementValue.substring(i, i+1);		if (chrElementChar == ".")			intSecondSep = i;	}	if ((intSecondSep == 0) || (intSecondSep == -1))		{alert("The email address you entered does not appear to be valid.  Please re-enter it.");return false;}	strLocation=strElementValue.substring(0,intSecondSep);		for (i=0; i < strLocation.length; i++)	{		chrElementChar = strLocation.substring(i, i+1);		if ((strInvalidChars.indexOf(chrElementChar) != -1))				{alert("The email address you entered does not appear to be valid.  Please re-enter it.");return false;}	}	strElementValue=strElementValue.substring(intSecondSep+1,strElementValue.length);	strExtension=strElementValue.substring(0,strElementValue.length);	if ((strExtension.length < 2) || (strExtension.length > 3))		{alert("The email address you entered does not appear to be valid.  Please re-enter it.");return false;}	for (i=0; i < strExtension.length; i++)	{		chrElementChar = strExtension.substring(i, i+1);		if ((strInvalidBodyChars.indexOf(chrElementChar) != -1))				{alert("The email address you entered does not appear to be valid.  Please re-enter it.");return false;}	}	return true;}

function check(){if(document.applicationform.passwordcheck.value!=document.applicationform.password.value){alert('The passwords you typed do not match. Please re-type both.');document.applicationform.passwordcheck.value = '';document.applicationform.password.value='';}}

function grad(){var select=document.applicationform.ant_grad;var value=select.options[select.selectedIndex].value;if(value=="--Please Select--"){alert('Please Select Your Anticipated Graduation Date');return false;}else return true;}
