function umple_select(c)
{
      //resetare option list nr camere
   for(i=0;i<document.cucu.nr_camere.length;i++)
   document.cucu.nr_camere.options[i]=null;
   
  
if(document.cucu.tip.value=="Apartament")
 {
   document.cucu.nr_camere.options[0]= new Option("1", "1");
   document.cucu.nr_camere.options[1]= new Option("2", "2");
   document.cucu.nr_camere.options[2]= new Option("3", "3");
   document.cucu.nr_camere.options[3]= new Option("4", "4");
   document.cucu.nr_camere.options[4]= new Option("5", "5");
   document.cucu.nr_camere.options[5]= new Option("6", "6");
   
    document.cucu.pret.options[0]= new Option("2000 euro", "2000");
	document.cucu.pret.options[1]= new Option("3000 euro", "3000");
	document.cucu.pret.options[2]= new Option("4000 euro", "4000");
	document.cucu.pret.options[3]= new Option("5000 euro", "5000");
	document.cucu.pret.options[4]= new Option("6000 euro", "6000");
	document.cucu.pret.options[5]= new Option("7000 euro", "7000");
	document.cucu.pret.options[6]= new Option("8000 euro", "8000");
	document.cucu.pret.options[7]= new Option("9000 euro", "9000");
	document.cucu.pret.options[8]= new Option("10000 euro", "10000");
	document.cucu.pret.options[9]= new Option("12000 euro", "12000");
	document.cucu.pret.options[10]= new Option("14000 euro", "14000");
	document.cucu.pret.options[11]= new Option("16000 euro", "16000");
	document.cucu.pret.options[12]= new Option("18000 euro", "18000");
	document.cucu.pret.options[13]= new Option("20000 euro", "20000");
	document.cucu.pret.options[14]= new Option("25000 euro", "25000");
	document.cucu.pret.options[15]= new Option("30000 euro", "30000");
	document.cucu.pret.options[16]= new Option("35000 euro", "35000");
	document.cucu.pret.options[17]= new Option("40000 euro", "40000");
	document.cucu.pret.options[18]= new Option("45000 euro", "45000");
	document.cucu.pret.options[19]= new Option("50000 euro", "50000");
	document.cucu.pret.options[20]= new Option("75000 euro", "75000");
	document.cucu.pret.options[21]= new Option("100000 euro", "100000");
	document.cucu.pret.options[22]= new Option("peste 100000 euro", "100000000");
}
else if(document.cucu.tip.value=="Garsoniera")
{
    document.cucu.pret.options[0]= new Option("2000 euro", "2000");
	document.cucu.pret.options[1]= new Option("3000 euro", "3000");
	document.cucu.pret.options[2]= new Option("4000 euro", "4000");
	document.cucu.pret.options[3]= new Option("5000 euro", "5000");
	document.cucu.pret.options[4]= new Option("6000 euro", "6000");
	document.cucu.pret.options[5]= new Option("7000 euro", "7000");
	document.cucu.pret.options[6]= new Option("8000 euro", "8000");
	document.cucu.pret.options[7]= new Option("9000 euro", "9000");
	document.cucu.pret.options[8]= new Option("10000 euro", "10000");
	document.cucu.pret.options[9]= new Option("12000 euro", "12000");
	document.cucu.pret.options[10]= new Option("14000 euro", "14000");
	document.cucu.pret.options[11]= new Option("16000 euro", "16000");
	document.cucu.pret.options[12]= new Option("18000 euro", "18000");
	document.cucu.pret.options[13]= new Option("20000 euro", "20000");
	document.cucu.pret.options[14]= new Option("25000 euro", "25000");
	document.cucu.pret.options[15]= new Option("30000 euro", "30000");
	document.cucu.pret.options[16]= new Option("35000 euro", "35000");
	document.cucu.pret.options[17]= new Option("40000 euro", "40000");
	document.cucu.pret.options[18]= new Option("45000 euro", "45000");
	document.cucu.pret.options[19]= new Option("50000 euro", "50000");
	document.cucu.pret.options[20]= new Option("75000 euro", "75000");
	document.cucu.pret.options[21]= new Option("100000 euro", "100000");
	document.cucu.pret.options[22]= new Option("peste 100000 euro", "100000000");
}
else if(document.cucu.tip.value=="Casa")
{
	
	document.cucu.nr_camere.options[0]=new Option("2", "2");
	 document.cucu.nr_camere.options[1]=new Option("3", "3");
	 document.cucu.nr_camere.options[2]=new Option("4", "4");
	 document.cucu.nr_camere.options[3]=new Option("5", "5");
	 document.cucu.nr_camere.options[4]=new Option("6", "6");
	 document.cucu.nr_camere.options[5]=new Option("7", "7");
	 document.cucu.nr_camere.options[6]=new Option("8", "8");
	 document.cucu.nr_camere.options[7]=new Option("9", "9");
	 document.cucu.nr_camere.options[8]=new Option("10", "10");
	 
	document.cucu.pret.options[0]= new Option("2000 euro", "2000");
	document.cucu.pret.options[1]= new Option("3000 euro", "3000");
	document.cucu.pret.options[2]= new Option("4000 euro", "4000");
	document.cucu.pret.options[3]= new Option("5000 euro", "5000");
	document.cucu.pret.options[4]= new Option("6000 euro", "6000");
	document.cucu.pret.options[5]= new Option("7000 euro", "7000");
	document.cucu.pret.options[6]= new Option("8000 euro", "8000");
	document.cucu.pret.options[7]= new Option("9000 euro", "9000");
	document.cucu.pret.options[8]= new Option("10000 euro", "10000");
	document.cucu.pret.options[9]= new Option("12000 euro", "12000");
	document.cucu.pret.options[10]= new Option("14000 euro", "14000");
	document.cucu.pret.options[11]= new Option("16000 euro", "16000");
	document.cucu.pret.options[12]= new Option("18000 euro", "18000");
	document.cucu.pret.options[13]= new Option("20000 euro", "20000");
	document.cucu.pret.options[14]= new Option("25000 euro", "25000");
	document.cucu.pret.options[15]= new Option("30000 euro", "30000");
	document.cucu.pret.options[16]= new Option("35000 euro", "35000");
	document.cucu.pret.options[17]= new Option("40000 euro", "40000");
	document.cucu.pret.options[18]= new Option("45000 euro", "45000");
	document.cucu.pret.options[19]= new Option("50000 euro", "50000");
	document.cucu.pret.options[20]= new Option("75000 euro", "75000");
	document.cucu.pret.options[21]= new Option("100000 euro", "100000");
	document.cucu.pret.options[22]= new Option("peste 100000 euro", "100000000");
}
else if(document.cucu.tip.value=="Teren")
{
	for(i=0;i<document.cucu.pret.options.length;i++)
	document.cucu.pret.options[i]=null;
	
	document.cucu.pret.options[0]= new Option("1 euro/mp", "1");
	document.cucu.pret.options[1]= new Option("2 euro/mp", "2");
	document.cucu.pret.options[2]= new Option("3 euro/mp", "3");
	document.cucu.pret.options[3]= new Option("4 euro/mp", "4");
	document.cucu.pret.options[4]= new Option("5 euro/mp", "5");
	document.cucu.pret.options[5]= new Option("6 euro/mp", "6");
	document.cucu.pret.options[6]= new Option("7 euro/mp", "7");
	document.cucu.pret.options[7]= new Option("8 euro/mp", "8");
	document.cucu.pret.options[8]= new Option("9 euro/mp", "9");
	document.cucu.pret.options[9]= new Option("10 euro/mp", "10");
	document.cucu.pret.options[10]= new Option("peste 10 euro/mp", "100000");	
}
}
//----------------------------------------------------------------------------------------------
function AscundeArata()
{
if(document.cucu.tip.value=="")
	{
	alert("Alegeti un tip de imobil din lista");
	document.cucu.tip.focus()
	return false;
	}
else if(document.cucu.tip.value=="Garsoniera")
	{
	document.cucu.specificatii_teren.style.visibility='hidden';
	document.cucu.nr_camere.style.visibility='hidden';
	}
else if(document.cucu.tip.value=='Apartament')
	{
	document.cucu.specificatii_teren.style.visibility='hidden';
	document.cucu.nr_camere.style.visibility='visible';
	}
else if(document.cucu.tip.value=='Casa')
	{
	document.cucu.specificatii_teren.style.visibility='hidden';
	document.cucu.nr_camere.style.visibility='visible';
	}
else if(document.cucu.tip.value=='Teren')
	{
	document.cucu.specificatii_teren.style.visibility='visible';
	document.cucu.nr_camere.style.visibility='hidden';
	}
else document.cucu.nr_camere.style.visibility='visible';
return true;
}
