jQuery also takes care of a lot of cross-browser compatability issues for us. So instead of having to add conditional statements to Samigo, we can depend on jQuery to do it for us.
84 function checkRadio()
86 for (i=0; i<document.forms.elements.length; i++)
88 if (document.forms.elements[i].type == "radio")
90 if (document.forms.elements[i].defaultChecked == true)
Here is the equivalent code with jQuery: