var EnEjec = false;

function EjecutaFiltro() {
	var frmBusq = document.frm;
	var frmFilt = document.frmFiltros;

	if (frmBusq && frmFilt && !EnEjec) {
		frmBusq.Prov.value = frmFilt.selProvincia.value;
		frmBusq.submit();
		EnEjec = true;
	}
}


function pupQ(sUrl, wNme, pWidth, pHeight){
	if (!pWidth) {pWidth = 750;}
	if (!pHeight) {pHeight = 330;}

	if (typeof wAux != 'undefined') {
		if (!wAux.closed) wAux.close();
	}

	var dizq = 0;

	if (screen.availWidth > (pWidth + 8)){
		dizq = screen.availWidth - (pWidth + 8);
	} else {
		dizq = 0;
	}
	
	var featu = "channelmode=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=0,scrollbars=0,status=0,titlebar=1,toolbar=0,maxbutton=0";
	featu += ",left=" + dizq + ",top=0,width=" + pWidth + ",height=" + pHeight
	
	// var featu = "location = no,left="+ dizq +",resize=no,top=0,width=" + pWidth + ",height=" + pHeight + ",titlebar = no,status = no,toolbar = no,scrollbars = no";

	wAux = window.open(sUrl, "", featu);
}
