
	//全選
	function _CB_ALL(Parent_ID, Children_Name){
		 $('#' + Parent_ID).click(
								function(){
									$('input[name="'+Children_Name+'"]').attr('checked', $(this).attr('checked'));
									});
   
	   $('input[name="'+Children_Name+'"]').click(
								function(){
									var Len   = _CB_Val(Children_Name).length;
									var Total = $('input[name="CB"]').length;
									var Sta   = (Len == Total) ? true : false;
										$('#' + Parent_ID).attr('checked', Sta);
									});
								}
		
	//取值 
	function _CB_Val(Children_Name){
		var Value = new Array();
		var i     = 0;
		$('input[name="'+Children_Name+'"]').each(
				function(){																										
					if($(this).attr("checked")){
						Value[i] = $(this).val();
						i++;
						}
					});
		return Value;
		}
