/* CRIR - Checkbox & Radio Input Replacement Author: Chris Erwin (me[at]chriserwin.com) www.chriserwin.com/scripts/crir/ Update August 13th, 2007 Major re-wrote by zbobet2012 to make script truly cross browser compatible including Internet Explorer, Firefox, and Safari. Selection event now added to label instead of checkbox. Updated July 27, 2006. Jesse Gavin added the AddEvent function to initialize the script. He also converted the script to JSON format. Updated July 30, 2006. Added the ability to tab to elements and use the spacebar to check the input element. This bit of functionality was based on a tip from Adam Burmister. */ crir = { init: function() { headerSection = document.getElementById("tarski-headers"); //alert("headerSection length: " + headerSection.length); arrLabels = headerSection.getElementsByTagName('label'); //alert("arrLabel length: " + arrLabels.length); searchLabels: for (var i=0; i