﻿document.write("<scrip" + "t language=Java" + "Script sr" + "c=/newsso.aspx></scr" + "ipt>");

	  	function SetSearchTable(Now,Max,btn,cont,cnameS,cnameH)
		{
			var inti=0;
			for(inti=0;inti<Max ;inti++)
			{
				if(inti==Now)
				{	if(GetObj(btn+inti).className!=cnameS){
					GetObj(btn+inti).className = cnameS;
					GetObj(cont+inti).style.display = "block"; }
				}
				else
				{	if(GetObj(btn+inti).className!=cnameH){
					GetObj(btn+inti).className = cnameH;
					GetObj(cont+inti).style.display = "none"; }
				}
			}
		}
		
		function GetObj(objname)
		{
			return document.getElementById(objname);
		}
		
		
			function userpsdf1()
{
	if(document.getElementById("UserPsd").value=="")
	{
		document.getElementById('cpwd').style.display='';
		document.getElementById("UserPsd").style.display='none';	
	}
	else
	{
		
	}
	return true;
}



function Spostinfo()
{
	document.getElementById("postinfo").style.display="block";
}

function Hpostinfo()
{
	document.getElementById("postinfo").style.display="none";
}



	  	function SubmitSearchForm2()
				{
					var obj = document.getElementById("RentSell");
					var sf = document.getElementById("SearchForm2");
					if(obj.value=="")
					{
						alert("清选择需求类别");
						return false;
					}
					if(obj.value.indexOf("Out")>=0)
					{
						sf.action = "Search_House_Out.aspx";
						sf.submit();
					}
					else
					{
						sf.action = "Search_House_In.aspx";
						sf.submit();
					}
					return true;
				}
				
				function ChangePriceType()
				{
					var objp = document.getElementById("Price2");
					if(document.getElementById("RentSell").value=="Out1" || document.getElementById("RentSell").value=="In1")
					{
						objp.length=0;
						objp.options[objp.length]=new Option("价格","");
						objp.options[objp.length]=new Option("10以下","1-10");
						objp.options[objp.length]=new Option("11-15","11-15");
						objp.options[objp.length]=new Option("16-20","16-20");
						objp.options[objp.length]=new Option("21-25","21-25");							
						objp.options[objp.length]=new Option("26-30","26-30");							
						objp.options[objp.length]=new Option("31-40","31-40");							
						objp.options[objp.length]=new Option("40以上","40-10000");							
					}
					if(document.getElementById("RentSell").value=="Out0" || document.getElementById("RentSell").value=="In0")
					{
						objp.length=0;
						objp.options[objp.length]=new Option("价格","");
						objp.options[objp.length]=new Option("3000以下","1-3000");
						objp.options[objp.length]=new Option("3001-4000","3001-4000");
						objp.options[objp.length]=new Option("4001-5000","4001-5000");
						objp.options[objp.length]=new Option("5001-6000","5001-6000");							
						objp.options[objp.length]=new Option("6001-8000","6001-8000");							
						objp.options[objp.length]=new Option("8001-10000","8001-10000");							
						objp.options[objp.length]=new Option("10000以上","10000-999999");							
					}					
				}
