This solution uses jQuery. If you don't use jQuery, I suggest you include it.
function fnchkFlow(this){
var listbox = $(this);
if(listbox && listbox.length)
{
var optionFlow = $(listbox).find("input[type='checkbox'][value='1']);
var optionStat = $(listbox).find("input[type='checkbox'][value='2']);
if(optionFlow && optionFlow.length && optionStat && optionStat.length)
{
if($(optionFlow).is(":checked"))
{
$(optionStat).prop('disabled',false);
}
else
{
$(optionStat).prop('checked',false);
$(optionStat).prop('disabled',true);
}
}
}
}