    $(document).ready(function(){
	    $("#LoginRed_01").click(function(){
		    $("#LoginRed_03").css("display","");
			$("#LoginRed_01").css("display","none");
		    $("#LoginRed_02").slideDown("fast");
			//$("#LoginRed_02").animate({
              //  top:117, opacity: 'show'
                //  }, { duration: 1000 });
		});

		$("#LoginRed_03").click(function(){
			     $("#LoginRed_02").slideUp("fast",function(){
					  $("#LoginRed_03").css("display","none");
					  $("#LoginRed_01").css("display","");
				  });
			 });
	});
	 function login_click(formObj) {
	 		var url = $("#context_ctx").val() + "/member.do?method=" + $("#postmethod").val();
	 		//try{
	 		//var remote=homeurl+"/home/user/login.jsp?username="+$("#input1").val()+"&password="+$("#password").val()+"&type="+$("#usertype").val()+"&d="+new Date();
	 		//document.getElementById("remoteLogin").src=remote;
	 		//}catch(e){}   
	 		var datas = {"username":$("#input1").val(),
	 			"password":$("#password").val(),"rememberMe":$("#rememberMe").val(),"usertype":$("#usertype").val(),"time":new Date()};
	 		jQuery.post(url,datas, loginCallback); 
		    return false;
		 }
		 function loginCallback(msg) {
		 	//alert(msg);
		 	if(msg.indexOf("error_nologin")>-1) {
		 		alert("登陆失败，账号名或者密码错误!");
		 		$("#input1").focus();
		 		$("#password").val("");
		 	} else {
		 	    //$("#loginBox").hide();
		 	    loginWindowClose();
			    $("#beforlogin").hide();
			    try{
			    afterLogin();
			    }catch(e){}
			    try{
			    toLinkLoginafter();
			    }catch(e){}
			    try{
			    	window.login_callback();
			    }catch(e){} 
			    try{
			    	ajaxiserTop();
			    }catch(e){}
		 	}
		 }


//����JqueryUITabs

  //��� CSS ���IE6bug
  $(document).ready(function(){
      $(".pane").css({
	      "color":"#fff",
		  "text-align":"left",
		  "font-size":"12px"
	  });
	   $(".pane li").css({
	      "padding-left":"20px"
	  });

  });


   //����ı����ʼֵ��
	$(document).ready(function(){
	   var inputText=true;
	    $("#input1").click(function(){
		    var txt = document.getElementById("input1");
			if(inputText==true){
			   txt.value="";
			   inputText=false;
			   $("#input1").css("color","#3f3e3e");
			}
		});
	});

	    $(document).ready(function(){
	    $("#firtabs1").click(function(){
		    $("#firtabs1").css({"background-position":"-1px top"});
			$("#firtabs2").css({"background-position":"right top"});
			$("#firtabs3").css({"background-position":"right top"});
			$("#utab1").css("display","block");
			$("#utab2").css("display","none");
			$("#utab3").css("display","none");

		});
		$("#firtabs2").click(function(){
		    $("#firtabs1").css({"background-position":"right bottom"});
			$("#firtabs2").css({"background-position":"-1px bottom"});
			$("#firtabs3").css({"background-position":"right top"});
			$("#utab1").css("display","none");
			$("#utab2").css("display","block");
			$("#utab3").css("display","none");
		});
		$("#firtabs3").click(function(){
		    $("#firtabs1").css({"background-position":"right bottom"});
			$("#firtabs2").css({"background-position":"right top"});
			$("#firtabs3").css({"background-position":"left top"});
			$("#utab1").css("display","none");
			$("#utab2").css("display","none");
			$("#utab3").css("display","block");
		});
		$("firtabs11").click(function(){
		    $("#firtabs1").css({"background-position":"-1px top"});
		    $("#firtabs2").css({"background-position":"right top"});
		    $("utab11").css("display","");
		    $("utab11").html("<iframe name='genius_composition' id='genius_composition' frameborder='1' width='700' height='600' src='${ctx}/user/geniusShow.do?method=uploadGenius'></iframe>");
		    $("utab12").css("display","none");

		});
		$("firtabs12").click(function(){
		    $("#firtabs1").css({"background-position":"right bottom"});
		    $("#firtabs2").css({"background-position":"-1px bottom"});
		    $("utab11").css("display","none");
		    $("utab12").css("display","");
		    $("utab12").html("<iframe name='genius_composition' id='genius_composition' frameborder='1' width='700' height='600' src='${ctx}/user/geniusShow.do?method=uploadGenius'></iframe>");
		});




	});
	function changExamQuestionIndex(){
		var currentIndex = parent.document.getElementById("currentIndex");
		var indexAndtotle = currentIndex.value.split('/');
		//alert(indexAndtotle);
		var index =parseInt(indexAndtotle[0]);
		//alert(index);
		if(index<parseInt(indexAndtotle[1]))
			index += 1;
		//alert(index);
		currentIndex.value=index+"/"+indexAndtotle[1];
		//alert(currentIndex.value);
		parent.document.getElementById("currentIndexSpan").innerHTML ="第"+index+"题";
	}
	function changExamQuestionReduceIndex(){
		var currentIndex = parent.document.getElementById("currentIndex");
		var indexAndtotle = currentIndex.value.split('/');
		//alert(indexAndtotle);
		var index =parseInt(indexAndtotle[0]);
		//alert(index);
		if(index>1)
			index -= 1;
		//alert(index);
		currentIndex.value=index+"/"+indexAndtotle[1];
		//alert(currentIndex.value);
		parent.document.getElementById("currentIndexSpan").innerHTML ="第"+index+"题";
	}
	function clearIndex(){
  		var currentIndex = parent.document.getElementById("currentIndex");
		var indexAndtotle = currentIndex.value.split('/');

		currentIndex.value=1+"/"+indexAndtotle[1];
		//alert(currentIndex.value);
		parent.document.getElementById("currentIndexSpan").innerHTML ="第"+1+"题";
  	}
  	function SaveUserInfo(obj){
  		var info = "选择此项后，下次将自动登录（本机两周内有效）。为了您的信息安全，请不要在网吧或公用电脑上使用。";
  		if(obj.checked){
	  		if(confirm(info)){
	  			$(obj).attr("checked","checked");
	  			//保存用户信息方法
	  		}else{
	  			$(obj).attr('checked',"");
	  		}
  		}
  	}

