function CountCheckBoxValue(formObject, checkBoxArrayName, checkedValue) {
	var totalChecked = 0;

	var checkBoxObject = this.document.forms[formObject.name].elements;
	for (var i=0; i<checkBoxObject.length; i++) {
		if(checkBoxObject[i].name == checkBoxArrayName){
			if (checkedValue == true) {
				if (checkBoxObject[i].checked == true) {
					totalChecked++;
				}
			} else {
				if (checkBoxObject[i].checked == false) {
					totalChecked++;
				}
			}
		}
	}
	return totalChecked;
}

function ToggleCheckBox(formObject, checkBoxArrayName, checkedValue) {
	var checkBoxObject = this.document.forms[formObject.name].elements;
	for (var i=0; i<checkBoxObject.length; i++) {
		if(checkBoxObject[i].name == checkBoxArrayName){
			if (checkedValue == true) {
				if (checkBoxObject[i].disabled == false) {
					checkBoxObject[i].checked = true;
				}
			} else {
				checkBoxObject[i].checked = false;
			}
		}
	}
}

function MessageBoxConfirm(message) {
    var isOkButtonClick = confirm(message);
    if (isOkButtonClick)
        return true ;
    else {
        return false ;
    }
}