function limpiaInput(obInput, ref){

	if(obInput.value == ref)obInput.value = "";
}

function validaFormulario(){

	submit = true;

	if(document.getElementById("nombre").value == "" || document.getElementById("nombre").value == "Nombre")submit = false;

	imail = document.getElementById("email").value;
	arroba = String.fromCharCode(64);

	if(imail.indexOf(String.fromCharCode(64)) < 2 || imail.indexOf(".") < 4)submit = false;

	if(!document.getElementById("lopd").checked)submit = false;

	if(!submit){

		alert("Todos los campos del formulario son obligatorios y el campo Email debe ser una direccion de email valida");
	}

	return submit;
}

