<!--

function validateEmailDT() 
{
//function to checklogin details from the login page and the edit details page
var testEmail  = /^[a-z0-9]([a-z0-9_\-\.]*)@([a-z0-9_\-\.]*)(\.[a-z]{2,3}(\.[a-z]{2}){0,2})$/i;
incorrectEntry = "";

email = document.formDT.email.value;

if (email.length == 0) 
	{
		incorrectEntry += "\n - Please enter your Email Address.";
	}

if (email.length != 0) 
	{
		if (testEmail.test(email) == false)
		{
			incorrectEntry += "\n - Please enter a valid Email Address.";
		}
	}

if (incorrectEntry != "") {
incorrectEntry ="_____________________________\n" +
"Please amend the following fields :-\n" +
incorrectEntry + "\n_____________________________" +
"\n  Please re-enter and submit again!";
alert(incorrectEntry);
return false;
}
else return true;
}



function validateEmailSO() 
{
//function to checklogin details from the login page and the edit details page
var testEmail  = /^[a-z0-9]([a-z0-9_\-\.]*)@([a-z0-9_\-\.]*)(\.[a-z]{2,3}(\.[a-z]{2}){0,2})$/i;
incorrectEntry = "";

email = document.formSO.email.value;

if (email.length == 0) 
	{
		incorrectEntry += "\n - Please enter your Email Address.";
	}

if (email.length != 0) 
	{
		if (testEmail.test(email) == false)
		{
			incorrectEntry += "\n - Please enter a valid Email Address.";
		}
	}

if (incorrectEntry != "") {
incorrectEntry ="_____________________________\n" +
"Please amend the following fields :-\n" +
incorrectEntry + "\n_____________________________" +
"\n  Please re-enter and submit again!";
alert(incorrectEntry);
return false;
}
else return true;
}
