I have the following function:
function getCCtype(radiogroup) {
var cctype = '';
var x = radiogroup.length;
for (var i = 0; x > i; i ++) {
if (radiogroup[i].)checked {
// "Expected Identifier" error here
return radiogroup[i].value;
}
}
return '';
}

It is called like this:
cctype = getCCType(obj.elements.paymenttype);

But I keep getting the error shown
above on the line noted.
Anybody have any clues?