

//cambioPrecios ENGLISH


function cambiaPrecios()
{
	var lista=document.busca.tipo_inmueble;
	/*if (tipo==0)
		var valorLista=lista.options[lista.selectedIndex].value;
	else*/
	var valorLista=lista.value;

		
	var nuevo=document.createElement("OPTION");

	var i=0;
	var x=document.busca.precio.length;

	for (i;i<x;i++) document.busca.precio.options[0]=null;


	if (valorLista=="6")
				{
					document.busca.precio.options[0]= new Option("Less than 150.000 Euros","35",true,true);
					document.busca.precio.options[1]= new Option("Between 150.000 & 250.000 Euros","33",false,false);
					document.busca.precio.options[2]= new Option("More than 250.000 Euros","34",false,false);
				}
	else if (valorLista=="13")
				{
					document.busca.precio.options[0]= new Option("Less than 100.000 Euros","31",true,true);
					document.busca.precio.options[1]= new Option("Between 100.000 & 150.000 Euros","32",false,false);
					document.busca.precio.options[2]= new Option("Between 150.000 & 250.000 Euros","33",false,false);					
					document.busca.precio.options[3]= new Option("More than 250.000 Euros","34",false,false);				
				}	
	/*else if (valorLista=="11")
	{
		document.busca.precio.options[0]= new Option("Less than 80.000 Euros","27",true,true);
		document.busca.precio.options[1]= new Option("More than  80.000 Euros","28",false,false);
	}*/	
	else
	{
		document.busca.precio.options[0]= new Option("Any","9",true,true);
	}
	document.busca.precio.options[0].selected=true;
}

function setLogo()
{
	tipo=document.busca.tipo_inmueble.value;
	precio=document.busca.precio.value;
	switch (tipo){
	case "13":
		switch(precio){
			case "31":
				document.busca.logo.value=1006;
				break;
			case "32":
				document.busca.logo.value=1007;
				break;
			case "33":
				document.busca.logo.value=1008;
				break;
			case "34":
				document.busca.logo.value=1009;
				break;
			}
		break;
	case "6":
			switch(precio){
			case "35":
				document.busca.logo.value=1010;
				break;
			case "33":
				document.busca.logo.value=1011;
				break;
			case "34":
				document.busca.logo.value=1012;
				break;
			}
		break;
	case "9":
		document.busca.logo.value=1013;
		break;
	case "11":
		document.busca.logo.value=1014;
		break;
	case "10":
		document.busca.logo.value=1015;
		break;
	case "12":
		document.busca.logo.value=1016;
		break;
	}
	return true;
}
