function changemenu()
{
var kh1 = document.getElementById("txt_headsearch");
var temp1=document.getElementsByName("radio");
for(var i=0;i<temp1.length;i++)
{
if(temp1[0].checked)
{kh1.value='请输入位置、楼盘小区关键字查找二手房';}
if(temp1[1].checked)
{kh1.value='请输入位置、楼盘小区关键字查找租房';}
}

}


function changesearch()
{
var kh = document.getElementById("txt_headsearch");
var esf_zf=document.getElementById("esf_zf");
var ddd=kh.value;
var kkk=esf_zf.value;
if(ddd==""||ddd=="请输入位置、楼盘小区关键字查找二手房")
{
	if(esf_zf.value=="二手房")
	{
		  window.open("2sf/index.php");
	}
	else if(esf_zf.value=="租房")
	{
		  window.open("zf/index.php");
	}
}
else
{
	if(kkk=="二手房")
	{
		  window.open("2sf/index.php?action=get&address="+ddd);
	}
	else if(kkk=="租房")
	{
		  window.open("zf/index.php?action=get&address="+ddd);
	}
}
}



////
	var GO = function(elemId)
	{
		return document.getElementById(elemId);
	}
	function Tab_1(idx)
	{


			GO("tab_aa_"+idx).style.display = "block";
                        GO("tab_bb_"+idx).style.display = "block";
                        GO("map"+idx).style.display = "block";
		for(var i=0;i<2;i++)
		{
			if(i != idx)
			{

				  GO("tab_aa_"+i).style.display = "none";
                                  GO("tab_bb_"+i).style.display = "none";
                                  GO("map"+i).style.display = "none";
			}
		}

	}
//////////

