$(document).ready(function(){
 $(".cpxg").each(
   function(index){
	   $(this).click(function(){
		$(".cpbox").eq(index).show();
		$(".cpname").eq(index).hide();
		$(".cpedit").eq(index).hide();
		$(".cpedit1").eq(index).show();
		return false;
	})
  }
 );
  $(".cancel").each(
   function(index){
	   $(this).click(function(){
		$(".cpbox").eq(index).hide();
		$(".cpname").eq(index).show();
		$(".cpedit").eq(index).show();
		$(".cpedit1").eq(index).hide();
		return false;
	})
  }
 );
  $(".niandu").each(
   function(index){
	   $(this).click(function(){
		$(".jyqk").hide();
		$(".jyqk").eq(index).show();
		return false;
	})
  }
 );
  $(".fuwushenqing").eq(0).show();
  $(".guihua").eq(0).show();
  $(".tab").each(
   function(index){
	   $(this).click(function(){
		$(".fuwushenqing").hide();
		$(".fuwushenqing").eq(index).show();
		$(".tab").removeClass("choose");
		$(this).addClass("choose");
		return false;
	})
  }
 );
  $(".edit_sq").each(
   function(index){
	   $(this).click(function(){
		$(".apply").eq(index).hide();
		$(".apply_edit").eq(index).show();
		return false;
	})
  }
 );
  $(".qxsq").each(
   function(index){
	   $(this).click(function(){
		$(".apply").eq(index).show();
		$(".apply_edit").eq(index).hide();
		return false;
	})
  }
 );
    $(".year").each(
   function(index){
	   $(this).click(function(){
		$(".guihua").hide();
		$(".guihua").eq(index).show();
		$(".year").removeClass("choose");
		$(this).addClass("choose");
		return false;
	})
  }
 );
	$(".zhan").each(
   function(index){
	   $(this).click(function(){
		$(".fankui").hide();
		$(".fankui").eq(index).show();
		return false;
	})
  }
 );
	$(".shou").each(
   function(index){
	   $(this).click(function(){
		$(".fankui").hide();
		return false;
	})
  }
 );
	$(".qxgh").each(
   function(index){
	   $(this).click(function(){
		$(".gh_edit").hide();
		$(".gh").show();
		return false;
	})
  }
 );
	$(".ghxg").each(
   function(index){
	   $(this).click(function(){
		$(".gh_edit").show();
		$(".gh").hide();
		return false;
	})
  }
 );
})
