anchor.diff:  	//TimeOut End test.
   	$('#endtestbtn').on('click', function (e) {
   		curTest -= 1;
  -		showTest();
  +		ToggleTestApperance();
   		window.location.replace("${pageContext.request.contextPath}/index");
   	});
   	
  
positive.code: 		}
  	});	
  	//En/Disable all text inputs.
  	function ToggleTextInputs(){
  		
  	}
  	//Display tests.
  	function showTest(){
  		if(curTest > -1 && curTest < total){
  			$('#testrootpanel #qh').children().last().remove();
  			$('#testrootpanel #quescol').html('');
  			$('#testrootpanel #optcol').html('');
  			$('#testrootpanel #ansrow #anscol #answell').html('');
  			$('#testrootpanel #ansbtn').html('Show Answer');
  			$('#chekmark').prop('checked',false);
  			if(p.tests[curTest].hasOwnProperty('marked')
  				&& typeof p.tests[curTest].marked != 'undefined'){
  				$('#chekmark').prop('checked',p.tests[curTest].marked);
  
negative.code: 						window.localStorage.setItem('tests',JSON.stringify(p));						
  				});
  			}
  		}
  	}
  	
  	showTest4View();
  });
  </script>
  <title>MMTC</title>
  