$(document).ready(function(){
	
	
	///////
	
	$("input[@name='electronic']").click(function() {
	
	switch ($(this).val()) {

	case 'yes':
		$("#emailWrap").show();
	break;
	default:
		$("#emailWrap").hide();
	}
	});
	
	$("input[@name='becontacted']").click(function() {
	
	switch ($(this).val()) {

	case 'yes':
		$("#phoneWrap").show();
	break;
	default:
		$("#phoneWrap").hide();
	}
	});
	
	$("input[@name='anonymous']").click(function() {
	
	switch ($(this).val()) {

	case 'yes':
		$("#turnoverWrap").show();
	break;
	default:
		$("#turnoverWrap").hide();
	}
	});
	
	
	$('#sendDiagnostic').click(function() {
	    return confirm('Are you sure you have finished the diagnostic?');
	});
	
	$("#frm_sector").change(function () {

			switch ($(this).val()) {	

			case 'Other':
				$("#sectorOtherWrap").show();
			break;
			default:
				$("#sectorOtherWrap").hide();
			}

		});
		
	$("#print").click(function(e) {
		e.preventDefault()
		window.print();
	});
	
});