function validarDatos(obj){
	ok  = false;
	if(obj.nombre != null && obj.nombre.value == ""){
		alert("Debe ingresar su nombre");
		obj.nombre.focus();
	}else if(obj.apellidos != null && obj.apellidos.value == ""){
		alert("Debe ingresar sus apellidos");
		obj.apellidos.focus();
	}else if(obj.direccion != null && obj.direccion.value == ""){
		alert("Debe ingresar una direccion");
		obj.direccion.focus();
	}else if(obj.telefono != null && obj.telefono.value == ""){
		alert("Debe ingresar un numero telefonico ");
		obj.telefono.focus();
	}else if(obj.equipo_audiovisual != null && obj.equipo_audiovisual.value == ""){
		alert("Por favor ingrese el nombre de la Empresa con la que adquieren sus equipos audiovisuales ");
		obj.equipo_audiovisual.focus();
	}else if(obj.email != null && obj.email.value == ""){
		alert("Debe ingresar un e-mail");
		obj.email.focus();
	}else if(obj.email.value != ""){
		var ind1, ind2, ind3;
		ind1 = obj.email.value.indexOf('@');
		ind2 = obj.email.value.indexOf('.');
		ind3 = obj.email.value.lastIndexOf('@');
		if ((ind1<=0) || (ind2<=0) || (ind3 != ind1))	{
			alert("El correo electrónico ingresado no es válido");
			obj.email.focus();
		}else{
			ok = true;
		}
	}else{
		ok = true;
	}
	return ok;
}
