
					}
					else {
						// Handle things when it is a type = "hidden"
						update_sizes(checkbox, all.checked);
					}
				}
			}

			// If ROA, and checkbox is cleared, then also clear the sort order
			if("" != ""){
				if(all.checked == false){
					document.getElementById('de_'+attachments[1]+'_sort').value = '';
				}
			}
		}

		function update_sizes(checkbox, all_checked_value){
			var total_size_counter = document.getElementById('total_size_counter');
			var total_page_counter = document.getEleme