/***
* selectdeselect all check box in table
***/
function	selectAll(id){
	var	checked = $("#sel_all").attr('checked');

	if (checked!=true){
			checked = "";
		}

	$(".ids").each(function(){
		if($(this).val()!=id){
			$(this).attr('checked',checked);
		}else{
			$(this).attr('checked','checked');
			}
	})
}

/***
* set's action and submittes form
***/
function	submitdel(id){
	if (!confirm('Remove?')){
		return	false;
	}

	if (id!=0){
		$("#ids").val(id);
	}

	$("#cart_mod").val('del');
	$("#cart").submit();
	return true;
}