//显示和隐藏年份
$(function(){
	$("#table1 tr:gt(10)").hide();
	$("#show_btn1").toggle(
		function () {
			$(this).addClass("show_on");
			$(this).html("隐藏部分年份");
			$("#table1 tr:gt(10)").fadeIn(300);
		},
		function () {
			$(this).removeClass("show_on");
			$(this).html("显示所有年份");
			$("#table1 tr:gt(10)").fadeOut(500);
		}
	); 
	$("#table2 tr:gt(10)").hide();
	$("#show_btn2").toggle(
		function () {
			$(this).addClass("show_on");
			$(this).html("隐藏部分年份");
			$("#table2 tr:gt(10)").fadeIn(300);
		},
		function () {
			$(this).removeClass("show_on");
			$(this).html("显示所有年份");
			$("#table2 tr:gt(10)").fadeOut(500);
		}
	); 
	
 }); 
//公积金贷款计算器计算结果
$(function(){
	$("#dejh").hide();
	$("#debj").hide();
	$("#zyhk").show();
	$("#hkfs").change(function(){
		var selected= this.value;
		$("#aa").html(selected);
			if( selected == 1){
				$("#dejh").fadeIn(300);
				$("#debj").hide();
				$("#zyhk").hide();
			}
			else if( selected==2){
				$("#dejh").hide();
				$("#debj").fadeIn(300);
				$("#zyhk").hide();
			}
			else if( selected==3){
				$("#dejh").hide();
				$("#debj").hide();
				$("#zyhk").fadeIn(300);
			}
	});
});





