function vacio(q){  
	for ( i = 0; i < q.length; i++ ) {  
		if ( q.charAt(i) != " " ) {  
			return true;  
		}  
	}  
	return false; 
}
function consult1(form){
	var t1=form.nombre.value;
	if(vacio(t1) == false) {
		window.alert("Debe introducir su nombre.");
		form.nombre.focus(); form.nombre.select(); return false;
	}
	var t3=form.email.value;
	if(vacio(t3) == false) {
		window.alert("Debe introducir un e-mail de contacto.");
		form.email.focus(); form.email.select(); return false;
	}
	return true;
}
function consult2(form){
	var t1=form.nombre.value;
	if(vacio(t1) == false) {
		window.alert("Debe introducir su nombre.");
		form.nombre.focus(); form.nombre.select(); return false;
	}
	var t3=form.email.value;
	if(vacio(t3) == false) {
		window.alert("Debe introducir un e-mail de contacto.");
		form.email.focus(); form.email.select(); return false;
	}
	var t2=form.asunto.value;
	if(vacio(t2) == false) {
		window.alert("Debe introducir un asunto.");
		form.asunto.focus(); form.asunto.select(); return false;
	}
	var t4=form.mensaje.value;
	if(vacio(t4) == false) {
		window.alert("Debe introducir un mensaje.");
		form.mensaje.focus(); form.mensaje.select(); return false;
	}
	return true;
}