<!--
    	function validar() {
    	var doc = document.user;
			if (doc.username.value == ""){
				 doc.username.focus();
				 alert("Username is an obrigatory field.")
				return(false);}
			else if (doc.password.value == ""){
				 doc.password.focus();
				 alert("Password is an obrigatory field.")
				return(false);}
			else if (doc.repassword.value == ""){
				 doc.repassword.focus();
				 alert("Retype password.")
				return(false);}
			else if (doc.password.value != doc.repassword.value){
				 doc.password.select();
				 alert("Invalid confirmation of password.")
				return(false);}
			else if (doc.name.value == ""){
				 doc.name.focus();
				 alert("Name is an obrigatory field.")
				return(false);}
			else if (doc.address.value == ""){
				 doc.address.focus();
				 alert("Address is an obrigatory field.")
				return(false);}
			else if (doc.country.value == ""){
				 doc.country.focus();
				 alert("Select a country.")
				return(false);}
			else if (doc.Country.selectedIndex == 224 && doc.state.selectedIndex == 0) {
				doc.state.focus();
				alert("Select a state.")
				return(false);}
			else if (doc.email.value == ""){
				 doc.email.focus();
				 alert("Email is an obrigatory field.")
				return(false);}
			else if (doc.email.value.search("@") == -1){
				doc.email.select();
				alert("Email is not correct.")
				return(false);}

			else
				return(true);
		}



	// -->

