			function chkSelectAll_OnClick(checkBox)
			{
				re = new RegExp('sel$')
				for(i = 0; i < document.forms[0].elements.length; i++) 
				{
					elm = document.forms[0].elements[i]
					if (elm.type == 'checkbox') 
					{
						if (re.test(elm.id)) 
						{
							elm.checked = checkBox.checked;
							var tableId = elm.parentNode.parentNode.id;
							var rowIndex = tableId.substring(tableId.length - 1, tableId.length);
							chkSelect_OnClick(document.getElementById(tableId), elm, rowIndex);
						}
					}
				}	
			}
		
		function chkSelect_OnClick(tableRow, checkBox, rowIndex)
			{
				var bgColor;
				if(rowIndex%2 == 0)
					bgColor = "#ffffff";
				else
					bgColor = "#f5f5f5";
				if(checkBox.checked == true)
					tableRow.style.backgroundColor = "#b0c4de";
				else
					tableRow.style.backgroundColor = bgColor;
			}