function abrir1()
{	document.indice1.login.focus();
}

var flag = false;
function see()
{	if (checkbae(document.indice1.login))
	{	if (document.indice1.password.value == "")
			{	alert('You must to indicate a valid password.');
				document.indice1.password.focus();
			}
		else
			{	document.indice1.pass.value = hex_md5(document.indice1.password.value);
				document.indice1.password.value = "";
				flag = true;
			}
	}
}

var testresults
function checkemail(val){
var str=val.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("You must to indicate a valid e-mail address.");
val.focus();
testresults=false;
}
return (testresults)
}

function checkbae(val){
if (document.layers||document.getElementById||document.all)
return checkemail(val);
else
return true;
}