///---------------------------------------------------------------------------------
var testresults
function checkpass(t)
{
	if (t.value == "" )
	{
		alert("Please enter the Password");
		t.focus();
		testresults=false;
		return (testresults)
	}
	// Length of password should not be less then 6 characters. and first character should be an alpha.
	if (t.value.length<6 || t.value.length>15)
	{
		alert("This is an invalid password. It should be minimum of 6 characters and Maximum of 15 characters.");
		t.focus();
		testresults=false;
		return (testresults)
	}
		testresults=true;
		return (testresults);
}


function checkemail(t)
{
	if (t.value == "")
	{
		alert("Please enter the Account ID");
		//t.focus();		
		testresults=false;
		return (testresults)
	}

var str=t.value
var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
if (filter.test(str))
	testresults=true
else
{
	alert("This is an Invalid E-mail Address. Please enter a valid email address!")
	testresults=false
}
if (testresults==false)
{
t.focus();
}
return (testresults)
}

function checkem(t)
{
if (document.layers||document.getElementById||document.all)
return checkemail(t)
else
return true
}
