function getDistrcitURL(obj)
{	
	if ((obj.city.value=="北京") || (obj.city.value=="大连") || (obj.city.value=="青岛") || 
	    (obj.city.value=="天津") || (obj.city.value=="济南") || (obj.city.value=="西安") ||
	    (obj.city.value=="石家庄") || (obj.city.value=="沈阳") || (obj.city.value=="潍坊") ||
	    (obj.city.value=="烟台") || (obj.city.value=="哈尔滨")
	    )
	    {
	    	obj.action = 'http://huabei.koofang.com:8001/' + obj.action;  	     	
	    	return true;	    	
	    }
	if ((obj.city.value=="厦门") || (obj.city.value=="广州") || (obj.city.value=="深圳") || 
	    (obj.city.value=="成都") || (obj.city.value=="福州") || (obj.city.value=="长沙") ||
	    (obj.city.value=="昆明") || (obj.city.value=="南宁") || (obj.city.value=="佛山") || 
	    (obj.city.value=="贵阳"))
	    {
	    	obj.action = 'http://huanan.koofang.com:8001/' + obj.action;	    	
	    	return true;	    		    	
	    }    
	if ((obj.city.value=="郑州") || (obj.city.value=="武汉") || (obj.city.value=="安阳"))
	    {
	    	obj.action = 'http://huazhong.koofang.com:8001/' + obj.action;	    	
	    	return true;	    	
	    }
	if ((obj.city.value=="温州") || (obj.city.value=="上海") || (obj.city.value=="宁波") || 
	    (obj.city.value=="杭州") || (obj.city.value=="苏州") || (obj.city.value=="南京") ||
	    (obj.city.value=="重庆") || (obj.city.value=="乌鲁木齐") || (obj.city.value=="合肥"))
	    {
	    	obj.action = 'http://huadong.koofang.com:8001/' + obj.action;		
	    	return true;	    	
	    }
}

function districtStruct(cityid, city, districtid, district)
{	
	this.cityid = cityid;
	this.city = city;
	this.districtid = districtid;
	this.district = district;
}

function optionStruct(optionValue, optionText)
{	
	this.optionValue = optionValue;
	this.optionText = optionText;	
}

var arrCity = new Array();
var nCityIndex = 0;
var arrCityDistrict = new Array();
var nIndex = 0;
var arrSalePrice = new Array();
var arrSalePriceBusi = new Array();
var arrSalePricePlaza = new Array();
var arrSalePerPrice = new Array();
var arrSalePerPriceBusi = new Array();
var arrSalePerPricePlaza = new Array();
var arrRentPrice = new Array();
var arrRentPriceBusi = new Array();
var arrRentPricePlaza = new Array();
var arrArea = new Array();
var arrSortType = new Array();

arrCity[nCityIndex++] = "北京";
arrCity[nCityIndex++] = "厦门";
arrCity[nCityIndex++] = "郑州";
arrCity[nCityIndex++] = "温州";
arrCity[nCityIndex++] = "上海";
arrCity[nCityIndex++] = "广州";
arrCity[nCityIndex++] = "深圳";
arrCity[nCityIndex++] = "大连";
arrCity[nCityIndex++] = "宁波";
arrCity[nCityIndex++] = "杭州";
arrCity[nCityIndex++] = "青岛";
arrCity[nCityIndex++] = "天津";
arrCity[nCityIndex++] = "成都";
arrCity[nCityIndex++] = "福州";
arrCity[nCityIndex++] = "武汉";
arrCity[nCityIndex++] = "苏州";
arrCity[nCityIndex++] = "南京";
arrCity[nCityIndex++] = "长沙";
arrCity[nCityIndex++] = "济南";
arrCity[nCityIndex++] = "西安";
arrCity[nCityIndex++] = "石家庄";
arrCity[nCityIndex++] = "昆明";
arrCity[nCityIndex++] = "沈阳";
arrCity[nCityIndex++] = "潍坊";
arrCity[nCityIndex++] = "烟台";
arrCity[nCityIndex++] = "哈尔滨";
arrCity[nCityIndex++] = "重庆";
arrCity[nCityIndex++] = "南宁";
arrCity[nCityIndex++] = "乌鲁木齐";
arrCity[nCityIndex++] = "合肥";
arrCity[nCityIndex++] = "佛山";
arrCity[nCityIndex++] = "安阳";
arrCity[nCityIndex++] = "贵阳";

arrCityDistrict[nIndex++] = new districtStruct(1, "北京", 0, "朝阳区"); 
arrCityDistrict[nIndex++] = new districtStruct(1, "北京", 1, "东城区"); 
arrCityDistrict[nIndex++] = new districtStruct(1, "北京", 2, "西城区"); 
arrCityDistrict[nIndex++] = new districtStruct(1, "北京", 3, "海淀区"); 
arrCityDistrict[nIndex++] = new districtStruct(1, "北京", 4, "丰台区"); 
arrCityDistrict[nIndex++] = new districtStruct(1, "北京", 5, "石景山区"); 
arrCityDistrict[nIndex++] = new districtStruct(1, "北京", 6, "崇文区"); 
arrCityDistrict[nIndex++] = new districtStruct(1, "北京", 7, "宣武区"); 
arrCityDistrict[nIndex++] = new districtStruct(1, "北京", 8, "通州区"); 
arrCityDistrict[nIndex++] = new districtStruct(1, "北京", 9, "房山区"); 
arrCityDistrict[nIndex++] = new districtStruct(1, "北京", 10, "大兴区"); 
arrCityDistrict[nIndex++] = new districtStruct(1, "北京", 11, "门头沟区"); 
arrCityDistrict[nIndex++] = new districtStruct(1, "北京", 12, "延庆县"); 
arrCityDistrict[nIndex++] = new districtStruct(1, "北京", 13, "密云县"); 
arrCityDistrict[nIndex++] = new districtStruct(1, "北京", 14, "怀柔区"); 
arrCityDistrict[nIndex++] = new districtStruct(1, "北京", 15, "平谷区"); 
arrCityDistrict[nIndex++] = new districtStruct(1, "北京", 16, "顺义区"); 
arrCityDistrict[nIndex++] = new districtStruct(1, "北京", 17, "昌平区"); 
arrCityDistrict[nIndex++] = new districtStruct(1, "北京", 18, "其它地区"); 
arrCityDistrict[nIndex++] = new districtStruct(2, "厦门", 0, "厦门开元区"); 
arrCityDistrict[nIndex++] = new districtStruct(2, "厦门", 1, "厦门思明区"); 
arrCityDistrict[nIndex++] = new districtStruct(2, "厦门", 2, "厦门湖里区"); 
arrCityDistrict[nIndex++] = new districtStruct(2, "厦门", 3, "厦门鼓浪屿区"); 
arrCityDistrict[nIndex++] = new districtStruct(2, "厦门", 4, "厦门集美区"); 
arrCityDistrict[nIndex++] = new districtStruct(2, "厦门", 5, "厦门杏林区"); 
arrCityDistrict[nIndex++] = new districtStruct(2, "厦门", 6, "厦门同安区"); 
arrCityDistrict[nIndex++] = new districtStruct(2, "厦门", 7, "厦门海沧区"); 
arrCityDistrict[nIndex++] = new districtStruct(2, "厦门", 8, "泉州丰泽区"); 
arrCityDistrict[nIndex++] = new districtStruct(2, "厦门", 9, "泉州洛江区"); 
arrCityDistrict[nIndex++] = new districtStruct(2, "厦门", 10, "泉州鲤城区"); 
arrCityDistrict[nIndex++] = new districtStruct(2, "厦门", 11, "泉州泉港区"); 
arrCityDistrict[nIndex++] = new districtStruct(2, "厦门", 12, "厦门翔安区"); 
arrCityDistrict[nIndex++] = new districtStruct(2, "厦门", 13, "泉州石狮区"); 
arrCityDistrict[nIndex++] = new districtStruct(2, "厦门", 14, "泉州晋江区"); 
arrCityDistrict[nIndex++] = new districtStruct(3, "郑州", 0, "金水区"); 
arrCityDistrict[nIndex++] = new districtStruct(3, "郑州", 1, "中原区"); 
arrCityDistrict[nIndex++] = new districtStruct(3, "郑州", 2, "二七区"); 
arrCityDistrict[nIndex++] = new districtStruct(3, "郑州", 3, "管城区"); 
arrCityDistrict[nIndex++] = new districtStruct(3, "郑州", 4, "邙山区"); 
arrCityDistrict[nIndex++] = new districtStruct(3, "郑州", 5, "上街区"); 
arrCityDistrict[nIndex++] = new districtStruct(4, "温州", 0, "鹿城区"); 
arrCityDistrict[nIndex++] = new districtStruct(4, "温州", 1, "瓯海区"); 
arrCityDistrict[nIndex++] = new districtStruct(4, "温州", 2, "龙湾区"); 
arrCityDistrict[nIndex++] = new districtStruct(4, "温州", 3, "瑞安市"); 
arrCityDistrict[nIndex++] = new districtStruct(4, "温州", 4, "乐清市"); 
arrCityDistrict[nIndex++] = new districtStruct(4, "温州", 5, "苍南县"); 
arrCityDistrict[nIndex++] = new districtStruct(4, "温州", 6, "永嘉县"); 
arrCityDistrict[nIndex++] = new districtStruct(4, "温州", 7, "平阳县"); 
arrCityDistrict[nIndex++] = new districtStruct(4, "温州", 8, "洞头县"); 
arrCityDistrict[nIndex++] = new districtStruct(4, "温州", 9, "文成县"); 
arrCityDistrict[nIndex++] = new districtStruct(4, "温州", 10, "泰顺县"); 
arrCityDistrict[nIndex++] = new districtStruct(4, "温州", 11, "其他市县"); 
arrCityDistrict[nIndex++] = new districtStruct(5, "上海", 0, "浦东新区"); 
arrCityDistrict[nIndex++] = new districtStruct(5, "上海", 1, "徐汇区"); 
arrCityDistrict[nIndex++] = new districtStruct(5, "上海", 2, "长宁区"); 
arrCityDistrict[nIndex++] = new districtStruct(5, "上海", 3, "普陀区"); 
arrCityDistrict[nIndex++] = new districtStruct(5, "上海", 4, "闸北区"); 
arrCityDistrict[nIndex++] = new districtStruct(5, "上海", 5, "虹口区"); 
arrCityDistrict[nIndex++] = new districtStruct(5, "上海", 6, "杨浦区"); 
arrCityDistrict[nIndex++] = new districtStruct(5, "上海", 7, "黄浦区"); 
arrCityDistrict[nIndex++] = new districtStruct(5, "上海", 8, "卢湾区"); 
arrCityDistrict[nIndex++] = new districtStruct(5, "上海", 9, "静安区"); 
arrCityDistrict[nIndex++] = new districtStruct(5, "上海", 10, "宝山区"); 
arrCityDistrict[nIndex++] = new districtStruct(5, "上海", 11, "闵行区"); 
arrCityDistrict[nIndex++] = new districtStruct(5, "上海", 12, "嘉定区"); 
arrCityDistrict[nIndex++] = new districtStruct(5, "上海", 13, "金山区"); 
arrCityDistrict[nIndex++] = new districtStruct(5, "上海", 14, "松江区"); 
arrCityDistrict[nIndex++] = new districtStruct(5, "上海", 15, "青浦区"); 
arrCityDistrict[nIndex++] = new districtStruct(5, "上海", 16, "崇明县"); 
arrCityDistrict[nIndex++] = new districtStruct(5, "上海", 17, "奉贤区"); 
arrCityDistrict[nIndex++] = new districtStruct(5, "上海", 18, "南汇区"); 
arrCityDistrict[nIndex++] = new districtStruct(6, "广州", 0, "天河区"); 
arrCityDistrict[nIndex++] = new districtStruct(6, "广州", 1, "东山区"); 
arrCityDistrict[nIndex++] = new districtStruct(6, "广州", 2, "越秀区"); 
arrCityDistrict[nIndex++] = new districtStruct(6, "广州", 3, "荔湾区"); 
arrCityDistrict[nIndex++] = new districtStruct(6, "广州", 4, "海珠区"); 
arrCityDistrict[nIndex++] = new districtStruct(6, "广州", 5, "芳村区"); 
arrCityDistrict[nIndex++] = new districtStruct(6, "广州", 6, "白云区"); 
arrCityDistrict[nIndex++] = new districtStruct(6, "广州", 7, "黄埔区"); 
arrCityDistrict[nIndex++] = new districtStruct(6, "广州", 8, "番禺区"); 
arrCityDistrict[nIndex++] = new districtStruct(6, "广州", 9, "花都区"); 
arrCityDistrict[nIndex++] = new districtStruct(6, "广州", 10, "增城区"); 
arrCityDistrict[nIndex++] = new districtStruct(6, "广州", 11, "从化区"); 
arrCityDistrict[nIndex++] = new districtStruct(6, "广州", 12, "东莞区"); 
arrCityDistrict[nIndex++] = new districtStruct(6, "广州", 13, "莞城"); 
arrCityDistrict[nIndex++] = new districtStruct(6, "广州", 14, "常平"); 
arrCityDistrict[nIndex++] = new districtStruct(6, "广州", 15, "樟木头"); 
arrCityDistrict[nIndex++] = new districtStruct(6, "广州", 16, "黄江"); 
arrCityDistrict[nIndex++] = new districtStruct(6, "广州", 17, "虎门"); 
arrCityDistrict[nIndex++] = new districtStruct(6, "广州", 18, "大石"); 
arrCityDistrict[nIndex++] = new districtStruct(6, "广州", 19, "南村"); 
arrCityDistrict[nIndex++] = new districtStruct(6, "广州", 20, "沙湾"); 
arrCityDistrict[nIndex++] = new districtStruct(6, "广州", 21, "钟村"); 
arrCityDistrict[nIndex++] = new districtStruct(6, "广州", 22, "石基"); 
arrCityDistrict[nIndex++] = new districtStruct(7, "深圳", 0, "罗湖"); 
arrCityDistrict[nIndex++] = new districtStruct(7, "深圳", 1, "福田"); 
arrCityDistrict[nIndex++] = new districtStruct(7, "深圳", 2, "南山"); 
arrCityDistrict[nIndex++] = new districtStruct(7, "深圳", 3, "龙岗"); 
arrCityDistrict[nIndex++] = new districtStruct(7, "深圳", 4, "宝安"); 
arrCityDistrict[nIndex++] = new districtStruct(7, "深圳", 5, "盐田"); 
arrCityDistrict[nIndex++] = new districtStruct(8, "大连", 0, "中山区");
arrCityDistrict[nIndex++] = new districtStruct(8, "大连", 1, "西岗区");
arrCityDistrict[nIndex++] = new districtStruct(8, "大连", 2, "沙河口区");
arrCityDistrict[nIndex++] = new districtStruct(8, "大连", 3, "甘井子区");
arrCityDistrict[nIndex++] = new districtStruct(8, "大连", 4, "旅顺口区");
arrCityDistrict[nIndex++] = new districtStruct(8, "大连", 5, "开发区");
arrCityDistrict[nIndex++] = new districtStruct(8, "大连", 6, "金州区");
arrCityDistrict[nIndex++] = new districtStruct(9, "宁波", 0, "江东"); 
arrCityDistrict[nIndex++] = new districtStruct(9, "宁波", 1, "海曙"); 
arrCityDistrict[nIndex++] = new districtStruct(9, "宁波", 2, "江北"); 
arrCityDistrict[nIndex++] = new districtStruct(9, "宁波", 3, "鄞州区"); 
arrCityDistrict[nIndex++] = new districtStruct(9, "宁波", 4, "东部郊区"); 
arrCityDistrict[nIndex++] = new districtStruct(9, "宁波", 5, "南部郊区"); 
arrCityDistrict[nIndex++] = new districtStruct(9, "宁波", 6, "西部郊区"); 
arrCityDistrict[nIndex++] = new districtStruct(9, "宁波", 7, "北部郊区"); 
arrCityDistrict[nIndex++] = new districtStruct(9, "宁波", 8, "外部省市"); 
arrCityDistrict[nIndex++] = new districtStruct(9, "宁波", 9, "奉化市区"); 
arrCityDistrict[nIndex++] = new districtStruct(9, "宁波", 10, "奉化郊区"); 
arrCityDistrict[nIndex++] = new districtStruct(9, "宁波", 11, "镇海区"); 
arrCityDistrict[nIndex++] = new districtStruct(9, "宁波", 12, "北仑区"); 
arrCityDistrict[nIndex++] = new districtStruct(9, "宁波", 13, "慈溪市"); 
arrCityDistrict[nIndex++] = new districtStruct(9, "宁波", 14, "余姚市"); 
arrCityDistrict[nIndex++] = new districtStruct(9, "宁波", 15, "科技园区"); 
arrCityDistrict[nIndex++] = new districtStruct(10, "杭州", 0, "上城区"); 
arrCityDistrict[nIndex++] = new districtStruct(10, "杭州", 1, "下城区"); 
arrCityDistrict[nIndex++] = new districtStruct(10, "杭州", 2, "西湖区"); 
arrCityDistrict[nIndex++] = new districtStruct(10, "杭州", 3, "江干区"); 
arrCityDistrict[nIndex++] = new districtStruct(10, "杭州", 4, "拱墅区"); 
arrCityDistrict[nIndex++] = new districtStruct(10, "杭州", 5, "滨江区"); 
arrCityDistrict[nIndex++] = new districtStruct(10, "杭州", 6, "萧山区"); 
arrCityDistrict[nIndex++] = new districtStruct(10, "杭州", 7, "余杭区"); 
arrCityDistrict[nIndex++] = new districtStruct(10, "杭州", 8, "富阳区"); 
arrCityDistrict[nIndex++] = new districtStruct(10, "杭州", 9, "下沙区"); 
arrCityDistrict[nIndex++] = new districtStruct(10, "杭州", 10, "临安区"); 
arrCityDistrict[nIndex++] = new districtStruct(10, "杭州", 11, "其它"); 
arrCityDistrict[nIndex++] = new districtStruct(11, "青岛", 0, "市南区东部"); 
arrCityDistrict[nIndex++] = new districtStruct(11, "青岛", 1, "市南区西部"); 
arrCityDistrict[nIndex++] = new districtStruct(11, "青岛", 2, "市北区"); 
arrCityDistrict[nIndex++] = new districtStruct(11, "青岛", 3, "四方区"); 
arrCityDistrict[nIndex++] = new districtStruct(11, "青岛", 4, "李沧区"); 
arrCityDistrict[nIndex++] = new districtStruct(11, "青岛", 5, "城阳区"); 
arrCityDistrict[nIndex++] = new districtStruct(11, "青岛", 6, "黄岛开发区"); 
arrCityDistrict[nIndex++] = new districtStruct(11, "青岛", 7, "平度"); 
arrCityDistrict[nIndex++] = new districtStruct(11, "青岛", 8, "即墨"); 
arrCityDistrict[nIndex++] = new districtStruct(11, "青岛", 9, "胶州"); 
arrCityDistrict[nIndex++] = new districtStruct(11, "青岛", 10, "胶南"); 
arrCityDistrict[nIndex++] = new districtStruct(11, "青岛", 11, "莱西"); 
arrCityDistrict[nIndex++] = new districtStruct(11, "青岛", 12, "崂山区"); 
arrCityDistrict[nIndex++] = new districtStruct(12, "天津", 0, "和平区"); 
arrCityDistrict[nIndex++] = new districtStruct(12, "天津", 1, "河西区"); 
arrCityDistrict[nIndex++] = new districtStruct(12, "天津", 2, "南开区"); 
arrCityDistrict[nIndex++] = new districtStruct(12, "天津", 3, "河东区"); 
arrCityDistrict[nIndex++] = new districtStruct(12, "天津", 4, "河北区"); 
arrCityDistrict[nIndex++] = new districtStruct(12, "天津", 5, "红桥区"); 
arrCityDistrict[nIndex++] = new districtStruct(12, "天津", 6, "塘沽区"); 
arrCityDistrict[nIndex++] = new districtStruct(12, "天津", 7, "开发区"); 
arrCityDistrict[nIndex++] = new districtStruct(12, "天津", 8, "大港区"); 
arrCityDistrict[nIndex++] = new districtStruct(12, "天津", 9, "北辰区"); 
arrCityDistrict[nIndex++] = new districtStruct(12, "天津", 10, "东丽区"); 
arrCityDistrict[nIndex++] = new districtStruct(12, "天津", 11, "津南区"); 
arrCityDistrict[nIndex++] = new districtStruct(12, "天津", 12, "西青区"); 
arrCityDistrict[nIndex++] = new districtStruct(12, "天津", 13, "汉沽区"); 
arrCityDistrict[nIndex++] = new districtStruct(12, "天津", 14, "武清区"); 
arrCityDistrict[nIndex++] = new districtStruct(12, "天津", 15, "宝坻区"); 
arrCityDistrict[nIndex++] = new districtStruct(12, "天津", 16, "蓟县"); 
arrCityDistrict[nIndex++] = new districtStruct(12, "天津", 17, "静海区"); 
arrCityDistrict[nIndex++] = new districtStruct(12, "天津", 18, "宁河区"); 
arrCityDistrict[nIndex++] = new districtStruct(13, "成都", 0, "锦江区"); 
arrCityDistrict[nIndex++] = new districtStruct(13, "成都", 1, "青羊区"); 
arrCityDistrict[nIndex++] = new districtStruct(13, "成都", 2, "金牛区"); 
arrCityDistrict[nIndex++] = new districtStruct(13, "成都", 3, "武侯区"); 
arrCityDistrict[nIndex++] = new districtStruct(13, "成都", 4, "成华区"); 
arrCityDistrict[nIndex++] = new districtStruct(13, "成都", 5, "高新区"); 
arrCityDistrict[nIndex++] = new districtStruct(13, "成都", 6, "青白江区"); 
arrCityDistrict[nIndex++] = new districtStruct(13, "成都", 7, "龙泉驿区"); 
arrCityDistrict[nIndex++] = new districtStruct(13, "成都", 8, "温江"); 
arrCityDistrict[nIndex++] = new districtStruct(13, "成都", 9, "新都"); 
arrCityDistrict[nIndex++] = new districtStruct(13, "成都", 10, "双流"); 
arrCityDistrict[nIndex++] = new districtStruct(13, "成都", 11, "其它地区"); 
arrCityDistrict[nIndex++] = new districtStruct(14, "福州", 0, "鼓楼区"); 
arrCityDistrict[nIndex++] = new districtStruct(14, "福州", 1, "台江区"); 
arrCityDistrict[nIndex++] = new districtStruct(14, "福州", 2, "晋安区"); 
arrCityDistrict[nIndex++] = new districtStruct(14, "福州", 3, "仓山区"); 
arrCityDistrict[nIndex++] = new districtStruct(14, "福州", 4, "马尾区"); 
arrCityDistrict[nIndex++] = new districtStruct(14, "福州", 5, "闽候"); 
arrCityDistrict[nIndex++] = new districtStruct(14, "福州", 6, "金山"); 
arrCityDistrict[nIndex++] = new districtStruct(14, "福州", 7, "其他"); 
arrCityDistrict[nIndex++] = new districtStruct(15, "武汉", 0, "江汉区"); 
arrCityDistrict[nIndex++] = new districtStruct(15, "武汉", 1, "硚口区"); 
arrCityDistrict[nIndex++] = new districtStruct(15, "武汉", 2, "江岸区"); 
arrCityDistrict[nIndex++] = new districtStruct(15, "武汉", 3, "武昌区"); 
arrCityDistrict[nIndex++] = new districtStruct(15, "武汉", 4, "洪山区"); 
arrCityDistrict[nIndex++] = new districtStruct(15, "武汉", 5, "汉阳区"); 
arrCityDistrict[nIndex++] = new districtStruct(15, "武汉", 6, "青山区"); 
arrCityDistrict[nIndex++] = new districtStruct(15, "武汉", 7, "东湖开发区"); 
arrCityDistrict[nIndex++] = new districtStruct(15, "武汉", 8, "江夏区"); 
arrCityDistrict[nIndex++] = new districtStruct(15, "武汉", 9, "新洲区"); 
arrCityDistrict[nIndex++] = new districtStruct(15, "武汉", 10, "汉南区"); 
arrCityDistrict[nIndex++] = new districtStruct(15, "武汉", 11, "蔡甸区"); 
arrCityDistrict[nIndex++] = new districtStruct(15, "武汉", 12, "黄陂区"); 
arrCityDistrict[nIndex++] = new districtStruct(15, "武汉", 13, "东西湖区"); 
arrCityDistrict[nIndex++] = new districtStruct(15, "武汉", 14, "沌口开发区"); 
arrCityDistrict[nIndex++] = new districtStruct(16, "苏州", 0, "园区"); 
arrCityDistrict[nIndex++] = new districtStruct(16, "苏州", 1, "新区"); 
arrCityDistrict[nIndex++] = new districtStruct(16, "苏州", 2, "沧浪"); 
arrCityDistrict[nIndex++] = new districtStruct(16, "苏州", 3, "平江"); 
arrCityDistrict[nIndex++] = new districtStruct(16, "苏州", 4, "金阊"); 
arrCityDistrict[nIndex++] = new districtStruct(16, "苏州", 5, "相城"); 
arrCityDistrict[nIndex++] = new districtStruct(16, "苏州", 6, "吴中"); 
arrCityDistrict[nIndex++] = new districtStruct(17, "南京", 0, "鼓楼区"); 
arrCityDistrict[nIndex++] = new districtStruct(17, "南京", 1, "玄武区"); 
arrCityDistrict[nIndex++] = new districtStruct(17, "南京", 2, "下关区"); 
arrCityDistrict[nIndex++] = new districtStruct(17, "南京", 3, "白下区"); 
arrCityDistrict[nIndex++] = new districtStruct(17, "南京", 4, "秦淮区"); 
arrCityDistrict[nIndex++] = new districtStruct(17, "南京", 5, "栖霞区"); 
arrCityDistrict[nIndex++] = new districtStruct(17, "南京", 6, "雨花区"); 
arrCityDistrict[nIndex++] = new districtStruct(17, "南京", 7, "建邺区"); 
arrCityDistrict[nIndex++] = new districtStruct(17, "南京", 8, "六合区"); 
arrCityDistrict[nIndex++] = new districtStruct(17, "南京", 9, "浦口区"); 
arrCityDistrict[nIndex++] = new districtStruct(17, "南京", 10, "江宁区"); 
arrCityDistrict[nIndex++] = new districtStruct(17, "南京", 11, "溧水县"); 
arrCityDistrict[nIndex++] = new districtStruct(17, "南京", 12, "高淳县"); 
arrCityDistrict[nIndex++] = new districtStruct(18, "长沙", 0, "天心区"); 
arrCityDistrict[nIndex++] = new districtStruct(18, "长沙", 1, "开福区"); 
arrCityDistrict[nIndex++] = new districtStruct(18, "长沙", 2, "雨花区"); 
arrCityDistrict[nIndex++] = new districtStruct(18, "长沙", 3, "芙蓉区"); 
arrCityDistrict[nIndex++] = new districtStruct(18, "长沙", 4, "岳麓区"); 
arrCityDistrict[nIndex++] = new districtStruct(19, "济南", 0, "市中区"); 
arrCityDistrict[nIndex++] = new districtStruct(19, "济南", 1, "历下区"); 
arrCityDistrict[nIndex++] = new districtStruct(19, "济南", 2, "历城区"); 
arrCityDistrict[nIndex++] = new districtStruct(19, "济南", 3, "槐荫区"); 
arrCityDistrict[nIndex++] = new districtStruct(19, "济南", 4, "天桥区"); 
arrCityDistrict[nIndex++] = new districtStruct(19, "济南", 5, "长清区"); 
arrCityDistrict[nIndex++] = new districtStruct(19, "济南", 6, "济阳县"); 
arrCityDistrict[nIndex++] = new districtStruct(19, "济南", 7, "商河县"); 
arrCityDistrict[nIndex++] = new districtStruct(19, "济南", 8, "平阴县"); 
arrCityDistrict[nIndex++] = new districtStruct(19, "济南", 9, "章丘市"); 
arrCityDistrict[nIndex++] = new districtStruct(19, "济南", 10, "其他");
arrCityDistrict[nIndex++] = new districtStruct(20, "西安", 0, "新城"); 
arrCityDistrict[nIndex++] = new districtStruct(20, "西安", 1, "碑林"); 
arrCityDistrict[nIndex++] = new districtStruct(20, "西安", 2, "莲湖"); 
arrCityDistrict[nIndex++] = new districtStruct(20, "西安", 3, "雁塔"); 
arrCityDistrict[nIndex++] = new districtStruct(20, "西安", 4, "灞桥"); 
arrCityDistrict[nIndex++] = new districtStruct(20, "西安", 5, "未央"); 
arrCityDistrict[nIndex++] = new districtStruct(20, "西安", 6, "北经济开发"); 
arrCityDistrict[nIndex++] = new districtStruct(20, "西安", 7, "西高新开发"); 
arrCityDistrict[nIndex++] = new districtStruct(20, "西安", 8, "曲江新"); 
arrCityDistrict[nIndex++] = new districtStruct(20, "西安", 9, "长安"); 
arrCityDistrict[nIndex++] = new districtStruct(21, "石家庄", 0, "长安"); 
arrCityDistrict[nIndex++] = new districtStruct(21, "石家庄", 1, "新华"); 
arrCityDistrict[nIndex++] = new districtStruct(21, "石家庄", 2, "桥东"); 
arrCityDistrict[nIndex++] = new districtStruct(21, "石家庄", 3, "桥西"); 
arrCityDistrict[nIndex++] = new districtStruct(21, "石家庄", 4, "裕华"); 
arrCityDistrict[nIndex++] = new districtStruct(21, "石家庄", 5, "东开发"); 
arrCityDistrict[nIndex++] = new districtStruct(21, "石家庄", 6, "鹿泉"); 
arrCityDistrict[nIndex++] = new districtStruct(21, "石家庄", 7, "栾城"); 
arrCityDistrict[nIndex++] = new districtStruct(21, "石家庄", 8, "正定"); 
arrCityDistrict[nIndex++] = new districtStruct(21, "石家庄", 9, "平山"); 
arrCityDistrict[nIndex++] = new districtStruct(21, "石家庄", 10, "藁城");
arrCityDistrict[nIndex++] = new districtStruct(22, "昆明", 0, "盘龙区"); 
arrCityDistrict[nIndex++] = new districtStruct(22, "昆明", 1, "五华区"); 
arrCityDistrict[nIndex++] = new districtStruct(22, "昆明", 2, "官渡区"); 
arrCityDistrict[nIndex++] = new districtStruct(22, "昆明", 3, "西山区"); 
arrCityDistrict[nIndex++] = new districtStruct(22, "昆明", 4, "安宁市"); 
arrCityDistrict[nIndex++] = new districtStruct(22, "昆明", 5, "东川区"); 
arrCityDistrict[nIndex++] = new districtStruct(22, "昆明", 6, "呈贡县"); 
arrCityDistrict[nIndex++] = new districtStruct(22, "昆明", 7, "晋宁县"); 
arrCityDistrict[nIndex++] = new districtStruct(22, "昆明", 8, "富民县"); 
arrCityDistrict[nIndex++] = new districtStruct(22, "昆明", 9, "宜良县"); 
arrCityDistrict[nIndex++] = new districtStruct(22, "昆明", 10, "嵩明县"); 
arrCityDistrict[nIndex++] = new districtStruct(22, "昆明", 11, "石林县"); 
arrCityDistrict[nIndex++] = new districtStruct(22, "昆明", 12, "禄劝县"); 
arrCityDistrict[nIndex++] = new districtStruct(22, "昆明", 13, "寻甸县"); 
arrCityDistrict[nIndex++] = new districtStruct(23, "沈阳", 0, "和平区"); 
arrCityDistrict[nIndex++] = new districtStruct(23, "沈阳", 1, "沈河区"); 
arrCityDistrict[nIndex++] = new districtStruct(23, "沈阳", 2, "大东区"); 
arrCityDistrict[nIndex++] = new districtStruct(23, "沈阳", 3, "皇姑区"); 
arrCityDistrict[nIndex++] = new districtStruct(23, "沈阳", 4, "铁西区"); 
arrCityDistrict[nIndex++] = new districtStruct(23, "沈阳", 5, "东陵区"); 
arrCityDistrict[nIndex++] = new districtStruct(23, "沈阳", 6, "于洪区"); 
arrCityDistrict[nIndex++] = new districtStruct(23, "沈阳", 7, "浑南新区"); 
arrCityDistrict[nIndex++] = new districtStruct(23, "沈阳", 8, "苏家屯区"); 
arrCityDistrict[nIndex++] = new districtStruct(24, "潍坊", 0, "奎文区");
arrCityDistrict[nIndex++] = new districtStruct(24, "潍坊", 1, "潍城区");
arrCityDistrict[nIndex++] = new districtStruct(24, "潍坊", 2, "寒亭区");
arrCityDistrict[nIndex++] = new districtStruct(24, "潍坊", 3, "坊子区");
arrCityDistrict[nIndex++] = new districtStruct(24, "潍坊", 4, "高新技术产业开发区");
arrCityDistrict[nIndex++] = new districtStruct(24, "潍坊", 5, "潍坊经济开发区");
arrCityDistrict[nIndex++] = new districtStruct(24, "潍坊", 6, "潍坊滨海经济开发区");
arrCityDistrict[nIndex++] = new districtStruct(24, "潍坊", 7, "安丘市");
arrCityDistrict[nIndex++] = new districtStruct(24, "潍坊", 8, "高密市");
arrCityDistrict[nIndex++] = new districtStruct(24, "潍坊", 9, "昌邑市");
arrCityDistrict[nIndex++] = new districtStruct(24, "潍坊", 10, "诸城市");
arrCityDistrict[nIndex++] = new districtStruct(24, "潍坊", 11, "寿光市");
arrCityDistrict[nIndex++] = new districtStruct(24, "潍坊", 12, "青州市");
arrCityDistrict[nIndex++] = new districtStruct(24, "潍坊", 13, "临朐县");
arrCityDistrict[nIndex++] = new districtStruct(24, "潍坊", 14, "昌乐县");
arrCityDistrict[nIndex++] = new districtStruct(25, "烟台", 0, "芝罘区");
arrCityDistrict[nIndex++] = new districtStruct(25, "烟台", 1, "莱山区");
arrCityDistrict[nIndex++] = new districtStruct(25, "烟台", 2, "开发区");
arrCityDistrict[nIndex++] = new districtStruct(25, "烟台", 3, "福山区");
arrCityDistrict[nIndex++] = new districtStruct(25, "烟台", 4, "牟平区");
arrCityDistrict[nIndex++] = new districtStruct(25, "烟台", 5, "蓬莱市");
arrCityDistrict[nIndex++] = new districtStruct(25, "烟台", 6, "栖霞市");
arrCityDistrict[nIndex++] = new districtStruct(26, "哈尔滨", 0, "道里区");
arrCityDistrict[nIndex++] = new districtStruct(26, "哈尔滨", 1, "道外区");
arrCityDistrict[nIndex++] = new districtStruct(26, "哈尔滨", 2, "南岗区");
arrCityDistrict[nIndex++] = new districtStruct(26, "哈尔滨", 3, "香坊区");
arrCityDistrict[nIndex++] = new districtStruct(26, "哈尔滨", 4, "呼兰区");
arrCityDistrict[nIndex++] = new districtStruct(26, "哈尔滨", 5, "松北区");
arrCityDistrict[nIndex++] = new districtStruct(27, "重庆", 0, "渝中区");  
arrCityDistrict[nIndex++] = new districtStruct(27, "重庆", 1, "江北区");  
arrCityDistrict[nIndex++] = new districtStruct(27, "重庆", 2, "南岸区");  
arrCityDistrict[nIndex++] = new districtStruct(27, "重庆", 3, "九龙坡区");  
arrCityDistrict[nIndex++] = new districtStruct(27, "重庆", 4, "沙坪坝区");  
arrCityDistrict[nIndex++] = new districtStruct(27, "重庆", 5, "渝北区"); 
arrCityDistrict[nIndex++] = new districtStruct(27, "重庆", 6, "大渡口区");  
arrCityDistrict[nIndex++] = new districtStruct(27, "重庆", 7, "巴南区");
arrCityDistrict[nIndex++] = new districtStruct(27, "重庆", 8, "北碚区");
arrCityDistrict[nIndex++] = new districtStruct(28, "南宁", 0, "西乡塘区");
arrCityDistrict[nIndex++] = new districtStruct(28, "南宁", 1, "兴宁区");
arrCityDistrict[nIndex++] = new districtStruct(28, "南宁", 2, "青秀区");
arrCityDistrict[nIndex++] = new districtStruct(28, "南宁", 3, "江南区");
arrCityDistrict[nIndex++] = new districtStruct(28, "南宁", 4, "良庆区");
arrCityDistrict[nIndex++] = new districtStruct(28, "南宁", 5, "邕宁区"); 
arrCityDistrict[nIndex++] = new districtStruct(29, "乌鲁木齐", 0, "天山区");
arrCityDistrict[nIndex++] = new districtStruct(29, "乌鲁木齐", 1, "沙依巴克区");
arrCityDistrict[nIndex++] = new districtStruct(29, "乌鲁木齐", 2, "新市区");
arrCityDistrict[nIndex++] = new districtStruct(29, "乌鲁木齐", 3, "水磨沟区");
arrCityDistrict[nIndex++] = new districtStruct(29, "乌鲁木齐", 4, "头屯河区");
arrCityDistrict[nIndex++] = new districtStruct(29, "乌鲁木齐", 5, "米东区");
arrCityDistrict[nIndex++] = new districtStruct(29, "乌鲁木齐", 6, "达坂城区");
arrCityDistrict[nIndex++] = new districtStruct(29, "乌鲁木齐", 7, "乌鲁木齐县");
arrCityDistrict[nIndex++] = new districtStruct(29, "乌鲁木齐", 8, "经济开发区");
arrCityDistrict[nIndex++] = new districtStruct(29, "乌鲁木齐", 9, "高新开发区");
arrCityDistrict[nIndex++] = new districtStruct(30, "合肥", 0, "包河区");
arrCityDistrict[nIndex++] = new districtStruct(30, "合肥", 1, "瑶海区");
arrCityDistrict[nIndex++] = new districtStruct(30, "合肥", 2, "庐阳区");
arrCityDistrict[nIndex++] = new districtStruct(30, "合肥", 3, "蜀山区");
arrCityDistrict[nIndex++] = new districtStruct(30, "合肥", 4, "高新区");
arrCityDistrict[nIndex++] = new districtStruct(30, "合肥", 5, "经开区");
arrCityDistrict[nIndex++] = new districtStruct(30, "合肥", 6, "新站区");
arrCityDistrict[nIndex++] = new districtStruct(30, "合肥", 7, "政务区");
arrCityDistrict[nIndex++] = new districtStruct(30, "合肥", 8, "滨湖区");
arrCityDistrict[nIndex++] = new districtStruct(31, "佛山", 0, "禅城区");
arrCityDistrict[nIndex++] = new districtStruct(31, "佛山", 1, "南海区");
arrCityDistrict[nIndex++] = new districtStruct(31, "佛山", 2, "顺德区");
arrCityDistrict[nIndex++] = new districtStruct(31, "佛山", 3, "三水区");
arrCityDistrict[nIndex++] = new districtStruct(31, "佛山", 4, "高明区");
arrCityDistrict[nIndex++] = new districtStruct(32, "安阳", 0, "龙安区");
arrCityDistrict[nIndex++] = new districtStruct(32, "安阳", 1, "殷都区");
arrCityDistrict[nIndex++] = new districtStruct(32, "安阳", 2, "北关区");
arrCityDistrict[nIndex++] = new districtStruct(32, "安阳", 3, "文峰区");
arrCityDistrict[nIndex++] = new districtStruct(33, "贵阳", 0, "南明区");
arrCityDistrict[nIndex++] = new districtStruct(33, "贵阳", 1, "云岩区");
arrCityDistrict[nIndex++] = new districtStruct(33, "贵阳", 2, "小河区");
arrCityDistrict[nIndex++] = new districtStruct(33, "贵阳", 3, "乌当区");
arrCityDistrict[nIndex++] = new districtStruct(33, "贵阳", 4, "花溪区");
arrCityDistrict[nIndex++] = new districtStruct(33, "贵阳", 5, "金阳区");
arrCityDistrict[nIndex++] = new districtStruct(33, "贵阳", 6, "白云区");
arrCityDistrict[nIndex++] = new districtStruct(33, "贵阳", 7, "息烽地区");
arrCityDistrict[nIndex++] = new districtStruct(33, "贵阳", 8, "修文地区");
arrCityDistrict[nIndex++] = new districtStruct(33, "贵阳", 9, "开阳地区");
arrCityDistrict[nIndex++] = new districtStruct(33, "贵阳", 10, "清镇地区");
arrCityDistrict[nIndex++] = new districtStruct(33, "贵阳", 11, "其他地区");

nIndex = 0;
arrSalePerPrice[nIndex++] = new optionStruct("0-2000", "2000以下");
arrSalePerPrice[nIndex++] = new optionStruct("2000-3000", "2000-3000");
arrSalePerPrice[nIndex++] = new optionStruct("3000-5000", "3000-5000");
arrSalePerPrice[nIndex++] = new optionStruct("5000-8000", "5000-8000");
arrSalePerPrice[nIndex++] = new optionStruct("8000-*", "8000以上");

nIndex = 0;
arrSalePerPriceBusi[nIndex++] = new optionStruct("0-8000", "8000以下");
arrSalePerPriceBusi[nIndex++] = new optionStruct("8000-10000", "8000-10000");
arrSalePerPriceBusi[nIndex++] = new optionStruct("10000-15000", "10000-15000");
arrSalePerPriceBusi[nIndex++] = new optionStruct("15000-20000", "15000-20000");
arrSalePerPriceBusi[nIndex++] = new optionStruct("20000-*", "20000以上");

nIndex = 0;
arrSalePerPricePlaza[nIndex++] = new optionStruct("0-8000", "8000以下");
arrSalePerPricePlaza[nIndex++] = new optionStruct("8000-10000", "8000-10000");
arrSalePerPricePlaza[nIndex++] = new optionStruct("10000-15000", "10000-15000");
arrSalePerPricePlaza[nIndex++] = new optionStruct("15000-20000", "15000-20000");
arrSalePerPricePlaza[nIndex++] = new optionStruct("20000-*", "20000以上");

nIndex = 0;
arrSalePrice[nIndex++] = new optionStruct("0-15", "15万以下");
arrSalePrice[nIndex++] = new optionStruct("15-20", "15-20万");
arrSalePrice[nIndex++] = new optionStruct("20-25", "20-25万");
arrSalePrice[nIndex++] = new optionStruct("25-30", "25-30万");
arrSalePrice[nIndex++] = new optionStruct("30-40", "30-40万");
arrSalePrice[nIndex++] = new optionStruct("40-60", "40-60万");
arrSalePrice[nIndex++] = new optionStruct("60-80", "60-80万");
arrSalePrice[nIndex++] = new optionStruct("80-120", "80-120万");
arrSalePrice[nIndex++] = new optionStruct("120-*", "120万以上");

nIndex = 0;
arrSalePriceBusi[nIndex++] = new optionStruct("0-100", "100万以下");
arrSalePriceBusi[nIndex++] = new optionStruct("100-150", "100-150万");
arrSalePriceBusi[nIndex++] = new optionStruct("1150-200", "150-200万");
arrSalePriceBusi[nIndex++] = new optionStruct("200-250", "200-250万");
arrSalePriceBusi[nIndex++] = new optionStruct("250-300", "250-300万");
arrSalePriceBusi[nIndex++] = new optionStruct("300-*", "300万以上");

nIndex = 0;
arrSalePricePlaza[nIndex++] = new optionStruct("0-100", "100万以下");
arrSalePricePlaza[nIndex++] = new optionStruct("100-150", "100-150万");
arrSalePricePlaza[nIndex++] = new optionStruct("1150-200", "150-200万");
arrSalePricePlaza[nIndex++] = new optionStruct("200-250", "200-250万");
arrSalePricePlaza[nIndex++] = new optionStruct("250-300", "250-300万");
arrSalePricePlaza[nIndex++] = new optionStruct("300-*", "300万以上");

nIndex = 0;
arrRentPrice[nIndex++] = new optionStruct("0-600", "600元/月以下");
arrRentPrice[nIndex++] = new optionStruct("601-1000", "600-1000元/月");
arrRentPrice[nIndex++] = new optionStruct("1001-1500", "1000-1500元/月");
arrRentPrice[nIndex++] = new optionStruct("1501-2000", "1500-2000元/月");
arrRentPrice[nIndex++] = new optionStruct("2001-3000", "2000-3000元/月");
arrRentPrice[nIndex++] = new optionStruct("3001-5000", "3000-5000元/月");
arrRentPrice[nIndex++] = new optionStruct("5001-*", "5000元/月以上");

nIndex = 0;
arrRentPriceBusi[nIndex++] = new optionStruct("0-5000", "5000元/月以下");
arrRentPriceBusi[nIndex++] = new optionStruct("5000-10000", "5000-10000元/月");
arrRentPriceBusi[nIndex++] = new optionStruct("10000-15000", "10000-15000元/月");
arrRentPriceBusi[nIndex++] = new optionStruct("15000-20000", "15000-20000元/月");
arrRentPriceBusi[nIndex++] = new optionStruct("20000-30000", "20000-30000元/月");
arrRentPriceBusi[nIndex++] = new optionStruct("30000-50000", "30000-50000元/月");
arrRentPriceBusi[nIndex++] = new optionStruct("50000-*", "50000元/月以上");

nIndex = 0;
arrRentPricePlaza[nIndex++] = new optionStruct("0-3", "3以下");
arrRentPricePlaza[nIndex++] = new optionStruct("3-10", "3-10");
arrRentPricePlaza[nIndex++] = new optionStruct("10-100", "10-100");
arrRentPricePlaza[nIndex++] = new optionStruct("100-*", "100以上");     

nIndex = 0;
arrArea[nIndex++] = new optionStruct("0-50", "50平米以下");
arrArea[nIndex++] = new optionStruct("50-70", "50-70平米");
arrArea[nIndex++] = new optionStruct("70-90", "70-90平米");
arrArea[nIndex++] = new optionStruct("90-120", "90-120平米");
arrArea[nIndex++] = new optionStruct("120-160", "120-160平米");
arrArea[nIndex++] = new optionStruct("160-*", "160平米以上");

nIndex = 0;
arrSortType[nIndex++] = new optionStruct("0", "发布时间");
arrSortType[nIndex++] = new optionStruct("1", "总价");
arrSortType[nIndex++] = new optionStruct("2", "单价");

function setObjOptions(obj, arrOptions)
{
	var length = obj.length;
	for(var i = 0; i < length; i++)
	{
		obj.options[length-i]=null;
	}
	for(var i = 0; i < arrOptions.length; i++)
	{
		var newObj = document.createElement("OPTION");
	  newObj.text = arrOptions[i].optionText;
		newObj.value = arrOptions[i].optionValue;
		try{
			obj.options.add(newObj);
		}catch(e){
    }
	}
}

function getCity(obj)
{ 	
	var length = obj.length;
	for(var i = 0; i < length; i++)
	{
		obj.options[length-i]=null;
	}
	for(var i = 0; i < arrCity.length; i++)
	{
		var newObj = document.createElement("OPTION");
	  newObj.text = arrCity[i];
		newObj.value = arrCity[i];
		try{
			obj.options.add(newObj);
		}catch(e){
    }
	}	
}

function getArea(obj)
{
	setObjOptions(obj, arrArea);	
}

function getSortType(obj, saletype)
{ 	
	var length = obj.length;
	var nCount = arrSortType.length;
	if (saletype == "r")
	{
		nCount = nCount - 1;				
	}
	for(var i = 0; i <= length; i++)
	{
		obj.options[length-i]=null;
	}
	for(var i = 0; i < nCount; i++)
	{
		var newObj = document.createElement("OPTION");
	  newObj.text = arrSortType[i].optionText;
		newObj.value = arrSortType[i].optionValue;
		try{
			obj.options.add(newObj);
		}catch(e){
    }
	}	
}

function getDistrcit(city, obj)
{ 	
	if( city != "")
	{		
		var length = obj.length;
		for(var i = 0; i < length; i++)
		{
			obj.options[length-i]=null;
		}
		for(var i = 0; i < arrCityDistrict.length; i++)
		{
			if(arrCityDistrict[i].city == city)
			{
						  var newObj = document.createElement("OPTION");
						  newObj.text = arrCityDistrict[i].district;
						  newObj.value = arrCityDistrict[i].districtid;
						  try{
						    obj.options.add(newObj);
						  }catch(e){
              }              
			}
		}
	}
}

function getSalePerPrice(HouseType, obj)
{
	var p;	
	
	switch (HouseType)
	{
		case "normal":
		  p = arrSalePerPrice;
		  break;
		case "busi":
		  p = arrSalePerPriceBusi;
		  break;
		case "plaza":
		  p = arrSalePerPricePlaza;
		  break;
	}
		
	setObjOptions(obj, p);
}

function getPrice(SaleType, HouseType, obj)
{
	var p;	
	
	switch (HouseType)
	{
		case "normal":
		  if (SaleType == "rent")
		  {
		  	p = arrRentPrice;
		  }
		  else
		  {
		  	p = arrSalePrice;
		  }
		  break;
		case "busi":
		  if (SaleType == "rent")
		  {
		  	p = arrRentPriceBusi;
		  }
		  else
		  {
		  	p = arrSalePriceBusi;
		  }
		  break;
		case "plaza":
		  if (SaleType == "rent")
		  {
		  	p = arrRentPricePlaza;
		  }
		  else
		  {
		  	p = arrSalePricePlaza;
		  }
		  break;
	}
		
	setObjOptions(obj, p);
}

////////////////////////////////////////////////////////

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_swapImage() { //v3.0
	
	var i,j=0,x,a=MM_swapImage.arguments; 
	document.MM_sr=new Array; 
	for(i=0;i<(a.length-2);i+=3)
	if ((x=MM_findObj(a[i]))!=null){
		document.MM_sr[j++]=x; 
		if(!x.oSrc) x.oSrc=x.src; 
		x.src=a[i+2];
	}
}