
//以XML求取ddl_JobTypeSub的数据
	function XmlPost_JobTypeSub(obj)
    {
		var svalue = obj.value;
		var webFileUrl = "?jobtypeid=" + svalue;
		var result = "";
		var xmlHttp = new ActiveXObject("MSXML2.XMLHTTP");
		xmlHttp.open("POST", webFileUrl, false);
		xmlHttp.send("");
		result = xmlHttp.responseText;		　　
		if(result != "")
		{
			document.all("ddl_JobTypeSub").length=0;
			var piArray = result.split(",");
			for(var i=0;i<piArray.length;i++)
			{
				var ary = piArray[i].toString().split("|");
				document.all("ddl_JobTypeSub").options.add(new Option(ary[1].toString(),ary[0].toString()));
			}
			document.all("hid_JobTypeSub").value = document.all("ddl_JobTypeSub").options[document.all("ddl_JobTypeSub").selectedIndex].value;
		}
		else
		{
			alert(result);
		}
	}
	
	//以XML求取ddl_WorkPlaceCity的数据
	function XmlPost_WorkPlaceCity(obj)
    {
		var svalue = obj.value;
		var webFileUrl = "?provinceid=" + svalue;
		var result = "";
		var xmlHttp = new ActiveXObject("MSXML2.XMLHTTP");
		xmlHttp.open("POST", webFileUrl, false);
		xmlHttp.send("");
		result = xmlHttp.responseText;
				　　
		if(result != "")
		{
			document.all("ddl_WorkPlaceCity").length=0;
			var piArray = result.split(",");
			for(var i=0;i<piArray.length;i++)
			{
				var ary = piArray[i].toString().split("|");
				document.all("ddl_WorkPlaceCity").options.add(new Option(ary[1].toString(),ary[0].toString()));
			}
			document.all("hid_WorkPlaceCity").value = document.all("ddl_WorkPlaceCity").options[document.all("ddl_WorkPlaceCity").selectedIndex].value;
		}
		else
		{
			alert(result);
		}
	}
	

//职位搜索
function Search_Job()
{
	var Url;
	var JobType,Trade,WorkPlace,PublishDate,Key;
	
	JobType		= document.all.hid_JobTypeSub.value;
	WorkPlace	= document.all.hid_WorkPlaceCity.value;
	Trade		= document.all.ddl_Trade.value;
	PublishDate	= document.all.ddl_PublishDate.value;
	Key			= document.all.txt_Key.value;
	
	if(Key == "请输入关键字")
	{
		alert("请输入搜索关键字");
		return;
	}
	
	Url = "JobSearch_Result.aspx?JobType="+ JobType +"&Trade="+ Trade +"&WorkPlace="+ WorkPlace +"&PublishDate="+ PublishDate +"&Key="+ Key;
	
	window.open(Url);
}

//学子搜索
function Search_Student()
{
	var Url;
	var JobType,Degree,WorkPlace,PublishDate,Key;
	
	JobType		= document.all.hid_JobTypeSub.value;
	WorkPlace	= document.all.hid_WorkPlaceCity.value;
	Degree		= document.all.ddl_Degree.value;
	PublishDate	= document.all.ddl_PublishDate.value;
	Key			= document.all.txt_Key.value;
	
	if(Key == "请输入关键字")
	{
		alert("请输入搜索关键字");
		return;
	}
	
	Url = "Student_Search.aspx?JobType="+ JobType +"&Degree="+ Degree +"&WorkPlace="+ WorkPlace +"&PublishDate="+ PublishDate +"&Key="+ Key;
	
	window.open(Url);
}

//活动搜索
function Search_Info()
{
	var Url;
	var PublishDate,Key;
	
	PublishDate	= document.all.ddl_PublishDate.value;
	Key			= document.all.txt_Key.value;
	
	if(Key == "请输入关键字"){Key = "";}
	
	Url = "Info_Search.aspx?PublishDate="+ PublishDate +"&Key="+ Key;
	
	window.open(Url);
}

//学校搜索
function Search_School()
{
	var Url;
	var Property,Key;
	
	Property	= document.all.ddl_Property.value;
	Key			= document.all.txt_SchoolKey.value;
	
	if(Key == "请输入关键字"){Key = "";}
	
	Url = "School_Search.aspx?Property="+ Property +"&Key="+ Key;
	
	window.open(Url);
}

