function checkChecked(chkbox)
{
    var chkboxes = getChkBoxes(chkbox.form);
    var foundChecked = false;
    for(var i=0; i<chkboxes.length; i++)
    {
          if(chkboxes[i].checked && chkboxes[i] != chkbox)
          {
                foundChecked = true;
                break;
          }
    }
    return foundChecked;
}

function getChkBoxes(ancestor)
{
    var rval = new Array();
    var inputs = ancestor.getElementsByTagName('input');
    for(var i=0; i<inputs.length; i++)
    {
        if(inputs[i].type != null && inputs[i].type.match(/checkbox/i))
        rval.push(inputs[i]);
    }
    return rval;
}
