function onblur_keyword(){
	curkey_val=document.getElementById("keyword").value;
	if(curkey_val=="")
      {document.getElementById("keyword").value=document.getElementById("current_id").value;}
}
function onfocus_keyword(){
	document.getElementById("keyword").value="";
}

$(function(){
  //news action
  $(".sub-news li").each(function(index){
		$(this).mouseover(function(){
			$(".sub-news .on-set").addClass("off-set");
			$(".sub-news .on-set").removeClass("on-set");
			$(this).removeClass("off-set");
			$(this).addClass("on-set");
			$("#sub-tabs > div").css("display","none");
			$("#sub-tabs > div:eq("+index+")").css("display","block");
		});
	});
//menu action
	$("#web-menu li").each(function(){
	$(this).mouseover(function(){
	$(this).removeClass("MSoff");
	$(this).addClass("MSon");	
	}).mouseout(function(){
	$(this).removeClass("MSon");
	$(this).addClass("MSoff");	
	});});
	
	//button
	$("button").each(function(){
		var buttonclass=$(this).attr("class");
		$(this).mouseover(function(){		
			$(this).addClass(buttonclass + "-hover");									  
		}).mouseout(function(){			
			$(this).removeClass(buttonclass + "-hover");									  
		});								
	});
	//search
	$(".search-job-see01").click(function(){
		$(this).addClass("search-job-see01-on");
		$(".search-job-bewrite").css("display","none");	
		$(".search-job-see02").removeClass("search-job-see02-on");	
	});
	$(".search-job-see02").click(function(){
		$(this).addClass("search-job-see02-on");
		$(".search-job-bewrite").css("display","block");	
		$(".search-job-see01").removeClass("search-job-see01-on");	
	});
		//person left menu
	$("#personLmenu .PLM").click(function(){		
		var dk = $(this).next("ul");
		dk.slideToggle("slow"); 
	});
	//person base resume
	$(".base-resume a").each(function(index){
		$(this).click(function(){
			$(".base-resume .Rclick").removeClass("Rclick");				   
			$(".base-resume li:eq("+index+")").addClass("Rclick");				   
		});
	});
});
function newscommend(tage,id,tbnum,tabls)
{
   for(i=1;i<tbnum+1;i++){
	   document.getElementById(tage+"-"+i).className="off-set";	 
	   document.getElementById(tabls+"-"+i).style.display="none";	
   }
   document.getElementById(tage+"-"+id).className="on-set";
   document.getElementById(tabls+"-"+id).style.display="";

}