
//会员注册
function UserReg()
{
	var Url;
	
	if(document.all.rbn_User[0].checked)
	{
		window.open("Resume/Register.aspx");
	}
	else if(document.all.rbn_User[1].checked)
	{
		window.open("Company/Register.aspx");
	}
	else
	{
		alert("Please edit your user group!");
		return;
	}
}

//首页搜索职位
function Search_Index()
{
	var Url;
	var JobType,WorkPlace,PublishDate,Key;
	
	JobType = document.all.ddl_JobType.value;
	WorkPlace = document.all.hid_WorkPlaceCity.value;
	PublishDate = document.all.ddl_PublishDate.value;
	Key = document.all.jobname.value;
	
	if(Key == "Please enter keyword")
	{ Key = ""; }
	
	Url = "Person/Per_Search_Index.aspx?JobType="+ JobType +"&WorkPlace="+ WorkPlace +"&PublishDate="+ PublishDate +"&Key="+ Key;
	
	window.open(Url);
}


function asecBoard(n) 
{ 
    for(i=1;i<3;i++) 
    { 
        eval("document.getElementById('al0"+i+"').className='a102'"); 
        eval("abx0"+i+".style.display='none'"); 
    } 
    eval("document.getElementById('al0"+n+"').className='a101'"); 
    eval("abx0"+n+".style.display='block'"); 
} 


//以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);
		}
	}	


