function abrir()
{	document.indice.c_first_name.focus();
}

var flag = false;
function see()
{	if (document.indice.c_first_name.value == "")
		{	alert('You must to indicate a valid first name.');
			document.indice.c_first_name.focus();
		}
	else
		if (document.indice.c_last_name.value == "")
			{	alert('You must to indicate a valid last name.');
				document.indice.c_last_name.focus();
			}
		else
			if (checkbae(document.indice.c_mail))
			{	if (document.indice.c_tel1.value == "")
					{	alert('You must to indicate a valid telephone.');
						document.indice.c_tel1.focus();
					}
				else
					if (document.indice.c_address.value == "")
						{	alert('You must to indicate a valid address.');
							document.indice.c_address.focus();
						}
					else
						if (document.indice.c_day.value == "dd")
							{	alert('You must to indicate a valid day.');
								document.indice.c_day.focus();
							}
						else
							if (document.indice.c_month.value == "mm")
								{	alert('You must to indicate a valid month.');
									document.indice.c_month.focus();
								}
							else
								if (document.indice.c_year.value == "yyyy")
									{	alert('You must to indicate a valid year.');
										document.indice.c_year.focus();
									}
								else
									if (document.indice.c_password.value == "")
										{	alert('You must to indicate a valid password.');
											document.indice.c_password.focus();
										}
									else
										{	document.indice.c_pass.value = hex_md5(document.indice.c_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 indiceress.");
val.focus();
testresults=false;
}
return (testresults)
}

function checkbae(val){
if (document.layers||document.getElementById||document.all)
return checkemail(val);
else
return true;
}