HI man, if new to PHP then I recommend you to extend your PHP knowledge whilst learning Yii. Yii wonders are within its guts and not knowing what that PHP does is narrowing the vision and creativity this wonderful framework provides. I have also seen a lot of weird attributes on your checkbox display, so I recommend you to navigate through the Yii API class reference too.
Now, having said that, lets provide you with a quick solution
Your code:
{code]
// what it is uncheckValue attribute? and submit? and params? those are weird options for HTML element tag
As you can see, the array sets the attributes of the HTML element, what you need to do is a hack to those attributes and include javascript function ‘onclick’ event is your answser:
<?php echo CHtml::checkBox($id, false,
array('id'=>$id, 'value' => 'Y',
'onclick'=>'js:$(this).is(':checked')? I call the function when checked here: I call the function when not checked here;');
?>