

$(document).ready(function(){

		

		make_radio_button_unclickable(".type_id_option");
		
		function make_radio_button_unclickable(selector) {

			//create a namespace to save the type ids to
			$.lasttypeid = {};
			
			$(selector).click(function(event){
				var thisval = $(this).val();
				var thisname = $(this).attr('name');

				//test this value against the last time a click was recorded for this type			
				if (thisval == $.lasttypeid[thisname]) {
					$(this).attr('checked', false);
					thisval = 0;
				}

				//save this click to memory
				$.lasttypeid[thisname] = thisval;
			});
		} 

		 
		
	});
