function MM_openBrWindow(theURL,winName,features) { //v2.0
  var w=window.open(theURL,winName,features);
  w.focus();
}
function cambioRapido() {
	var f=document.FiltroRapido;
	var obj;
	var txt=""

  for (var e=0;e<f.elements.length;e++) {
		obj=f.elements[e]
		txt+= "&" + obj.name + "=";
		if (obj.tagName=="SELECT") {
			txt+= ValorCombo(obj);
		} else {
			txt+=obj.value;
		}
	}
	var fich="../bolsainmuebles/FiltroI.asp?x=x" + txt
	BloquearTodosRapido();
  callServer(fich);
}

function ValorCombo(elmto) {
	if (-1==elmto.selectedIndex) return 0

	if (elmto.item(elmto.selectedIndex))
		return elmto.item(elmto.selectedIndex).value;

	return 0
}

function BloquearTodosRapido() {
	document.body.style.cursor="wait"
	Habilitar("FiltroRapido", "dbProvincia", true);
	Habilitar("FiltroRapido", "dbPoblacion", true);
}

function LiberarTodosRapido() {
	document.body.style.cursor=""
	Habilitar("FiltroRapido", "dbProvincia", false);
	Habilitar("FiltroRapido", "dbPoblacion", false);
}

function Habilitar(frm, elmto, bloqueado) {
	var obj=document.forms[frm].elements[elmto];
	if (obj) {
		obj.disabled=bloqueado;
		obj.style.cursor=(bloqueado ? "wait" : "");
	}
}
