function cargarPoblacion(){
	var provincia,contenedor;
	provincia = document.getElementById('provincia');
	contenedor = document.getElementById('poblaciones');
	ajax=nuevoAjax();
	ajax.open("GET", "http://www.latiendadetiendas.com/paginas/inicio/inputPoblaciones.php?prov="+provincia.options[provincia.selectedIndex].value,true);
	ajax.onreadystatechange=function() {
		if (ajax.readyState==4) {
		   	contenedor.innerHTML = ajax.responseText
		}
	}
	ajax.send(null);
}
//---
	var nav4 = window.Event ? true : false;
	function acceptNum(evt){
		// NOTE: Backspace = 8, Enter = 13, '0' = 48, '9' = 57
		var key = nav4 ? evt.which : evt.keyCode;
		//alert(key);		
		return (key <= 13 || (key >= 48 && key <= 57));
	}
	function acceptNumFloat(evt){
		// NOTE: Backspace = 8, Enter = 13, '0' = 48, '9' = 57
		var key = nav4 ? evt.which : evt.keyCode;
		//alert(key);		
		//return (key <= 13 || key == 44 || key == 46 || (key >= 48 && key <= 57));
		return (key <= 13 || key == 46 || (key >= 48 && key <= 57));
	}	
	
	function clearTextField(idText){ 
		document.getElementById(idText).value = ""; 
	}
	
	function validaAlta(){
		var f1 = document.forms[0];
		var wm = "Los siguientes campos són obligatorios :\n\r\n";
		var noerror = 1;
		var t1 = f1.email;
		if (t1.value == "" || t1.value == " ") {
			wm += "- E-mail.\r\n";
			noerror = 0;
		}
		var t1 = f1.clave;
		if (t1.value == "" || t1.value == " ") {
			wm += "- Clave.\r\n";
			noerror = 0;
		}
		if (noerror == 0) {
			alert(wm);
			return false;
		}
		else return true;		
	}