
//会员注册
function UserReg()
{
	var Url;
	
	if(document.all.rbn_User[0].checked)
	{
		window.open("c_Resume/Register.aspx");
	}
	else if(document.all.rbn_User[1].checked)
	{
		window.open("c_Company/Register.aspx");
	}
	else
	{
		alert("请选择您注册的会员类型！");
		return;
	}
}


//首页搜索职位
function Search_Index()
{
	var Url;
	var JobType,WorkPlace,PublishDate,Key;
	
	JobType = document.all.ddl_JobType.value;
	WorkPlace = document.all.ddl_WorkPlace.value;
	PublishDate = document.all.ddl_PublishDate.value;
	Key = document.all.jobname.value;
	
	if(Key == "请输入关键字")
	{
		alert("请输入搜索关键字");
		return;
	}
	
	Url = "c_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'"); 
} 

function Search_qx()
{
var Url;
var ddl_ComOrPer;
	
var Key = document.all.kw.value;
ddl_ComOrPer=document.all.ddl_ComOrPer.value;
	if(ddl_ComOrPer == "请选择搜索类型")
	{
		alert("请选择搜索类型");
		return;
	}
	if(ddl_ComOrPer=="找工作"){
    Url = "c_Person/JobSearch.aspx?key="+ Key;
    window.open(Url);
    return;
    }
   if(ddl_ComOrPer=="找人才"){
    Url = "c_Company/kmsearch.aspx?key="+ Key;
    window.open(Url);
    return;
    }
}

function showDiv(obj){
	if($(obj).attr("class")=="current1"){
		$(obj).removeClass();
	}
	else{
		$(obj).addClass("current1");
		$(obj).find(".shade").height($(obj).find(".area").height()+80)
	}
}
function showDiv1(obj){
	if($(obj).attr("class")=="current1"){
		$(obj).removeClass();
	}
	else{
		$(obj).addClass("current1");
		$(obj).find(".shade").height($(obj).find(".area").height()+60)
	}
}
function showDiv2(obj){
	if($(obj).attr("class")=="current1"){
		$(obj).removeClass();
	}
	else{
		$(obj).addClass("current1");

	}
}

	


