function selectMany(row) {
	if ($(row).hasClassName('selRow')) {
		$(row).removeClassName('selRow');
		unCheckIt(row);
	}else{
		$(row).addClassName("selRow");
		checkIt(row);
	}
}


function bulkSel(ckBox){
	if(ckBox.checked == true){
		deSelectAllCheckBox(ckBox)
	}else{
		selectAllCheckBox(ckBox)
	}
}

function selectAllCheckBox(ckBox){
	var tbl;
	$(ckBox).ancestors().each(function(s) {
		if(s.tagName == "table"){
			tbl = s;
			throw $break;
		}
	});
	
	cells = $(tbl).select('td.rich-table-checkbox-column');
	cells.each(function(x){
		checkAndHighlight(x);
	});	
	
//	checkBoxes = $(tbl).select('input.check-box-data-table');
//	checkBoxes.each(function(x){
//		x.checked = true ;
//	});
	
}

function deSelectAllCheckBox(ckBox){
	var tbl;
	$(ckBox).ancestors().each(function(s) {
		if(s.tagName == "table"){
			tbl = s;
			throw $break;
		}
	});
	
	cells = $(tbl).select('td.rich-table-checkbox-column');
	cells.each(function(x){
		unCheckAndDeHighlight(x);
	});	
	
//	checkBoxes = $(tbl).select('input.check-box-data-table');
//	checkBoxes.each(function(x){
//		x.checked = true ;
//	});
	
}
