/*
function cbo_localidad(idioma,formulario){
	if (formulario==undefined){
			formulario='formu';
	}
vProvincia = eval('document.'+formulario+'.LOCALIDAD.selectedIndex');
vProvincia = eval('document.'+formulario+'.LOCALIDAD.options[vProvincia].value');
combo = eval('document.'+formulario+'.zona_INT');

vTotal = rel_zonas.length;
total_poblaciones = combo.options.length;

//Borramos los valores
for(i = 0; i < total_poblaciones; i++){
	combo.options[0] = null;
}

var vCadena = '';
var i = 1;

if (idioma=='1'){
	combo.options[0] = new Option('Indiferente', 0);	
}else{
	combo.options[0] = new Option('Indifferent', 0);	
}

//Cargamos los valores
for(cont = 0; cont < vTotal; cont++){
	if(rel_zonas[cont] == vProvincia){
		vValor = zonas[cont];
		
		//if (vValor.length > 20){
			//vValor = vValor.substring(0,25) + "...";
		//}
		combo.options[i] = new Option(vValor, cont+1);
		vCadena += "'" +  vValor + "'";
		i++;
	}
}
}
*/

function cbo_tipoInmueble(idioma,formulario){
	if (formulario==undefined){
			formulario='formu';
	}
vProvincia = eval('document.'+formulario+'.cbo_tipoinmueble.selectedIndex');
vProvincia = eval('document.'+formulario+'.cbo_tipoinmueble.options[vProvincia].value');
combo = eval('document.'+formulario+'.cbo_subtipoinmueble');


vTotal = rel_subtipos.length;
total_poblaciones = combo.options.length;

//Borramos los valores
for(i = 0; i < total_poblaciones; i++){
	combo.options[0] = null;
}

var vCadena = '';
var i = 1;

switch(parseInt(idioma)){
	case 1:
		combo.options[0] = new Option('Seleccione tipo de piso, casa...', 0);	
		break;
	case 2:
		combo.options[0] = new Option('Seleccioni tipus de pis, casa...', 0);	
		break;	
	default:
		combo.options[0] = new Option('Select detailed type...', 0);	
}


//Cargamos los valores
for(cont = 0; cont < vTotal; cont++){
	if(rel_subtipos[cont] == vProvincia){
		vValor = subtipos[cont];
		/*
		if (vValor.length > 20){
			vValor = vValor.substring(0,25) + "...";
		}
		*/
	
		combo.options[i] = new Option(vValor, cont+1);
		vCadena += "'" +  vValor + "'";
		i++;
	}
}
}


