$(function(){ 
	   $("#home_jobsSearch li").click(function(){
	       clearClass();	//还原样式
	  	  $(this).addClass("nonce");
	  	  $("#keywordType").val($(this).attr("id"));
	  });
		//还原样式
	   function clearClass(){
	   	  $("#home_jobsSearch li").removeClass("nonce");
		  $("#home_jobsSearch li").addClass("");
	   }
   });
   
   function toTab(){
		if(event.keyCode==13)
		event.keyCode=9;
   }
   
   function submitSearchForm2(){
	if($("#jobLocation1_address").val()==0 && $.trim($("#keyword").val())=="关键字搜索..." ){
		$("#jobLocation1_address").focus();
		alert("请选择搜索地区!");
		return ;
	}
	
	if($.trim($("#keyword").val())=="" && $("#jobLocation1_address").val()==0){	
		alert("请输入正确的关键字!");
		$("#keyword").select();
		return ;
	}
	
	if($.trim($("#keyword").val())=="关键字搜索..."){
		$("#keyword").val("");
	}
	
	$("#searchForm_Center").attr("action","/personal/util/my_searchresult.do")
					.attr("target","_blank")
					.attr("method","post")
					.submit();
}
//个人推荐首页查看简历脚本
function viewSingleResume(id) {
		showMeIndexForm.resId.value=id;
		showMeIndexForm.action="/showme/viewResume.do";
		showMeIndexForm.target="_blank";
		showMeIndexForm.submit();
	}
//地区职位图层显示
/*document.onkeydown = function(){
		if(event.keyCode==13){ //如果按下enter键
			if(document.getElementById("new_address")){
				if(document.getElementById("new_address").style.display=="block"){
				 	close_box(); //关闭div
				}
			}
			if(document.getElementById("_post_mian_div")) {
				if(document.getElementById("_post_mian_div").style.display=="block"){
				 	closePostDialog();//关闭div
				}
			}
			return false;
		}
	}
	
 */	
 /*document.onkeydown = function(){
		if(event.keyCode==13){ //如果按下enter键
			if(document.getElementById("new_address")){
				if(document.getElementById("new_address").style.display=="block"){
				 	close_box(); //关闭div
				}
			}
			if(document.getElementById("_post_mian_div")) {
				if(document.getElementById("_post_mian_div").style.display=="block"){
				 	closePostDialog();//关闭div
				}
			}
			return false;
		}
	}*/
