//defino una serie de varibles Array para cada dato
var precios_1=new Array(2);
precios_1[0] = new Array ("Seleccione precio","Hasta 100 (U$S)","Entre 100 y 200 (U$S)","Entre 200 y 300 (U$S)","Entre 300 y 500 (U$S)","Entre 500 y 1.000 (U$S)","Entre 1.000 y 3.000 (U$S)","Entre 3.000 y 5.000 (U$S)","Entre 5.000 y 10.000 (U$S)","Más de 10.000 (U$S)");
precios_1[1] = new Array ("Select Price","Up to 100 (U$S)","Among 100 and 200 (U$S)","Among 200 and 300 (U$S)","Among 300 and 500 (U$S)","Among 500 and 1.000 (U$S)","Among 1.000 and 3.000 (U$S)","Among 3.000 and 5.000 (U$S)","Among 5.000 and 10.000 (U$S)","More than 10.000 (U$S)");

var preciosVal_1=new Array("0","a100","a200","a300","a500","a1000","a3000","a5000","a10000","a10001")

var precios_2=new Array(2);
precios_2[0] = new Array ( "Seleccione precio","Hasta 10.000 (U$S)","Entre 10.000 y 20.000 (U$S)","Entre 20.000 y 30.000 (U$S)","Entre 30.000 y 50.000 (U$S)","Entre 50.000 y 100.000 (U$S)","Entre 100.000 y 300.000 (U$S)","Entre 300.000 y 500.000 (U$S)","Entre 500.000 y 1.000.000 (U$S)","Más de 1.000.000 (U$S)");
precios_2[1] = new Array ( "Select Price","Up to 10000 (U$S)","Among 10.000 and 20.000 (U$S)","Among 20.000 and 30.000 (U$S)","Among 30.000 and 50.000 (U$S)","Among 50.000 and 100.000 (U$S)","Among 100.000 and 300.000 (U$S)","Among 300.000 and 500.000 (U$S)","Among 500.000 and 1.000.000 (U$S)","More than 1.000.000 (U$S)");

var preciosVal_2=new Array("0","v10000","v20000","v30000","v50000","v100000","v300000","v500000","v1000000","v1000001")
//función que cambia los precios segun el pOp que se haya escogido.
function cambia_precio(lenguaje){
	var pOp
	pOp = document.frmBusqueda.tipo_operacion[document.frmBusqueda.tipo_operacion.selectedIndex].value

	var lan = ( lenguaje == 'es' ) ? 0 : 1;

	if (pOp != 0) {
		mis_precios=eval("precios_" + pOp)
		mis_precios_val=eval("preciosVal_" + pOp)


		var _mis_precios = mis_precios[lan];


		num_precios = _mis_precios.length
		document.frmBusqueda.precio.length = num_precios
		for(i=0;i<num_precios;i++){
			document.frmBusqueda.precio.options[i].value=mis_precios_val[i]
			document.frmBusqueda.precio.options[i].text=_mis_precios[i]
		}
	}else{
		document.frmBusqueda.precio.length = 1
		document.frmBusqueda.precio.options[0].value = "0"
		document.frmBusqueda.precio.options[0].text = "Elija precios (U$S)"
	}
	document.frmBusqueda.precio.options[0].selected = true
}
