<!-- 

function checkcontacto(f){

    var msg="";

	var checkError="";

	if(f.nombre.value==""){
		checkError += "\n\n-Debe ingresar su nombre!";
	}

	if ((f.correo.value == "@") || (f.correo.value == "") || (f.correo.value.indexOf('@', 0) == -1)){
		checkError += "\n\n-La dirección de Correo no es Valida!";
	}
	

	if(f.asunto.value==""){
		checkError += "\n\n-Ingrese el asunto o título del tema a tratar!";
	}

	if(f.obs.value==""){

		checkError += "\n\n-Escriba el detalle del tema a tratar!";

	}

//alert(checkerror);

    // Display a message with encountered errors

    if (!checkError) return true;

    msg  = "______________________________________________________\n\n"

    msg += " El formulario contiene errores en algunos campos.\n";

    msg += " Ingrese la información faltante.\n";

    msg += "______________________________________________________"

    
    msg += checkError;

    alert(msg);

    return false;

}

/*******************/
//------------------------------------------------------------

// Check for empty or incorrect values

//-----------------------------------------------------------


/***********************/
function verify(f){

    var msg="";

	var checkError="";



	if ((f.email.value == "") || (f.email.value.indexOf('@', 0) == -1)){

		checkError += "\n\n-La dirección de Correo no es Valida!";

	}

	if(f.login.value==""){

		checkError += "\n\n-You must supply a login!";

	}

	if(f.firstname.value==""){

		checkError += "\n\n-You must supply a firstname!";

	}

	if(f.surname.value==""){

		checkError += "\n\n-You must supply a surname!";

	}



//alert(checkerror);

    // Display a message with encountered errors

    if (!checkError) return true;

    msg  = "______________________________________________________\n\n"

    msg += "The form wasn't processed since it contained some errors. \n";

    msg += "         Please correct the following errors and try again.\n";

    msg += "______________________________________________________"

    

    msg += checkError;

    alert(msg);

    return false;

}


/**************************/
function checkuser(fm){

		if (fm.loginuser.value == "") {

			alert("\n\n Debes ingresar un valor en el campo Login!");
			return false;
			} else {
			return true;
		}

}

/***********************/

	function checkmail(fm){

		if ((fm.email.value == "@") || (fm.email.value == "") || (fm.email.value.indexOf('@', 0) == -1)){

			alert("\n\n-La dirección de Correo no es Valida!");

			return false;

		}

		else{

			return true;

		}

	}

/*************************/
function getOld(email){

	window.location="forgot_login.php?email=" + email + "&forgot=send";

}



function newAccount(login,email,firstname,surname){

	window.location="create_login.php?login=" + login + "&email=" + email + "&firstname=" + firstname + "&surname=" + surname + "&newuser=1";

}

	//-->

