function Send_form() {
	var control="", error="";
	
	control = trim(document.getElementById("usuario").value);
	if (control == "") error += "Por favor, introduzca su <b>usuario</b>.<br />";
	document.getElementById("usuario").value = control;
	
	control = trim(document.getElementById("password").value);
	if (control == "") error += "Por favor, introduzca su <b>contraseña</b>.<br />";
	document.getElementById("password").value = control;
	
	control = trim(document.getElementById("nombre").value);
	if (control == "") error += "Por favor, introduzca su/s <b>nombre/s</b>.<br />";
	document.getElementById("nombre").value = control;
	
	control = trim(document.getElementById("apellido").value);
	if (control == "") error += "Por favor, introduzca su/s <b>apellido/s</b>.<br />";
	document.getElementById("apellido").value = control;
	
	control = trim(document.getElementById("email").value);
	if (!esEmail(control)) error += "Por favor, introduzca un <b>e-mail</b> válido.<br />";
	document.getElementById("email").value = control;
	/*
	control = trim(document.getElementById("prefijo_tel").value);
	if (!esEnteroPos(control)) error += "El <b>prefijo telefónico</b> es un campo requerido y sólo acepta valores numéricos.<br />";
	document.getElementById("prefijo_tel").value = control;
	
	control = trim(document.getElementById("num_tel").value);
	if (!esEnteroPos(control)) error += "El <b>número telefónico</b> es un campo requerido y sólo acepta valores numéricos.<br />";
	document.getElementById("num_tel").value = control;
	*/
	if (error == ""){
		document.getElementById("registrate_form").submit();
	}
	else {
		document.getElementById("error_msg").innerHTML = "<p>"+error+"</p>";
		tb_show("Errores", "?TB_inline=true&inlineId=error_msg&height=150&width=300", null);
	}
}

function TB_special(pi_href){
	// get caption: either title or name attribute
	var caption = this.title || this.name || "";
		
	// get rel attribute for image groups
	var group = this.rel || false;
		
	// display the box for the elements href
	tb_show(caption, pi_href, group);
}