// If U want to use this .js, u must give the var 'CheckBoxListID' the ClientID of
// the CheckBoxList that U want to check/uncheck

var CheckBoxListID;

function CheckOrUnCheckAll(val){
	var cbl =document.getElementById(CheckBoxListID);
	if(cbl != null){
		var li = cbl.all;
		if ( li != null )
			for ( i = 0; i < li.length; i++ )
				if (li.item(i).tagName == "INPUT") 
					li.item(i).checked  = val;
	}
}
function CheckAll(){
	CheckOrUnCheckAll(true);
}
function UnCheckAll(){
	CheckOrUnCheckAll(false);
}

function ToggleShow(id) {
    document.getElementById(id).style.display=document.getElementById(id).style.display == "none" ? "" : "none"; 
}


