

//cambio precios ALEMAN


function cambiaPrecios()
{
	var lista=document.busca.tipo_inmueble;
	var valorLista=lista.options[lista.selectedIndex].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("Weniger als 150.000 Euros","35",true,true);
					document.busca.precio.options[1]= new Option("Zwischen 150.000 und 250.000 Euros","33",false,false);
					document.busca.precio.options[2]= new Option("Mehr als 250.000 Euros","34",false,false);
				}
	else if (valorLista=="13")
				{
					document.busca.precio.options[0]= new Option("Weniger als 100.000 Euros","31",true,true);
					document.busca.precio.options[1]= new Option("Zwischen 100.000 und 150.000 Euros","32",false,false);
					document.busca.precio.options[2]= new Option("Zwischen 150.000 und 250.000 Euros","33",false,false);					
					document.busca.precio.options[3]= new Option("Mehr als 250.000 Euros","34",false,false);				
				}	
	/*else if (valorLista=="11")
{
		document.busca.precio.options[0]= new Option("Weniger als 80.000 Euros","27",true,true);
		document.busca.precio.options[1]= new Option("Mehr als 80.000 Euros","28",false,false);
	}*/	
	else
	{
		document.busca.precio.options[0]= new Option("Alle","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=6006;
				break;
			case "32":
				document.busca.logo.value=6007;
				break;
			case "33":
				document.busca.logo.value=6008;
				break;
			case "34":
				document.busca.logo.value=6009;
				break;
			}
		break;
	case "6":
			switch(precio){
			case "35":
				document.busca.logo.value=6010;
				break;
			case "33":
				document.busca.logo.value=6011;
				break;
			case "34":
				document.busca.logo.value=6012;
				break;
			}
		break;
	case "9":
		document.busca.logo.value=6013;
		break;
	case "11":
		document.busca.logo.value=6014;
		break;
	case "10":
		document.busca.logo.value=6015;
		break;
	case "12":
		document.busca.logo.value=6016;
		break;
	}
	return true;
}

