function checkCB(comp, cnt, limit, error,cbid) {
  actCnt=0;
  if (limit>0) {
    for (i=0; i<cnt; i++) {
  	  if (document.getElementById(comp+"_"+(i+1)).checked) actCnt++;
    }
    
    if (actCnt>limit) {
    	document.getElementById(comp+"_"+cbid).checked=false;
    	alert(error);
    }
  }
}

function cbTest() {
	alert("ok");
}