function nAjMiniBuscaInmuebles(){var xmlhttp=false;try {xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");} catch (e) {try {xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");} catch (E) {xmlhttp = false;}}if (!xmlhttp && typeof XMLHttpRequest!='undefined') {xmlhttp = new XMLHttpRequest();}return xmlhttp;}
function miniBuscaInmuebles(theForm, Campo) {
	var cadVars = '';
	var dd = new Date();
	ajMiniBuscaInmuebles=nAjMiniBuscaInmuebles();
	for (var i=0; i<theForm.length; i++) {
		cadVars += '&' + theForm[i].name + '=' + theForm[i].value;
		theForm[i].disabled = true;
//		if (theForm[i].type == 'select-one') theForm[i].disabled = true;
	}
	ajMiniBuscaInmuebles.open("GET", "/si/ajCMP_MiniBuscaInmuebles.php?idioma=" + miniBuscaInmueblesIdioma + cadVars + '&dd=' + dd, true);
	ajMiniBuscaInmuebles.onreadystatechange=function() {
		if (ajMiniBuscaInmuebles.readyState==4) {
			document.getElementById('miniBuscaInmuebles').innerHTML = ajMiniBuscaInmuebles.responseText;
		}
	}
	ajMiniBuscaInmuebles.send(null);
}