function( a, // elements b, // elements length c // each dom element and then its value ) { // check if element is an array of elements a=a.type ? [a] : a; for(b=a.length;b--&&!c;) { // save reference to the element c=a[b] // get the value of the form element c=/di|b/.test(c.type) ? c.checked : !!c.value } // switch the bool value return!!c }