﻿$(document).ready(function(){
	
	$('#action').click(function(){
		//$("#criteria").hide(1000,my_alert);
		var actiontext = $('#action').html();
		//alert (actiontext);
		if (actiontext=='Hide'){
			$('#criteria').hide();
			$('#action').html ('Show');
		}	
		if (actiontext=='Show'){
			$('#criteria').show();
			$('#action').html ('Hide');
		}	
	});
	
	$('#action2').click(function(){
		//$("#instructions").hide(1000,my_alert);
		var actiontext = $('#action2').html();
		//alert (actiontext);
		if (actiontext=='Hide'){
			$('#instructions').hide();
			$('#action2').html ('Show');
		}	
		if (actiontext=='Show'){
			$('#instructions').show();
			$('#action2').html ('Hide');
		}	
	});
	
	$('#action3').click(function(){
		//$("#instructions").hide(1000,my_alert);
		var actiontext = $('#action2').html();
		//alert (actiontext);
		if (actiontext=='Hide'){
			$('#instructions').hide();
			$('#action2').html ('Show');
		}	
		if (actiontext=='Show'){
			$('#instructions').show();
			$('#action2').html ('Hide');
		}	
	});
	
});
