add: var inputboxes = document.getElementById(cell_name).getElementsByTagName('input'); for(k = 0; k < inputboxes.length; k++) { inputboxes[k].checked = tempcheckboxes[iname]; } 
context: function AssetManager_SortRows(table,column) {	sort_object = table;	if (!sort_object.dosort) { return; }	if (sort_column == column) { reverse=1-reverse; }	else { reverse=0; }	sort_column = column;	// Save all form column contents into a temporary object	// This is a nasty hack to keep the current values of form elements intact	if (table.tablecontainsforms) {		var iname="1";		var tempcolumns = new Object();		for (var i=0; i<table.Lines.length; i++) {			for (var j=0; j<table.Columns.length; j++) {				if(table.Columns[j].type == "form") {					var cell_name = "d"+table.name+"-"+i+"-"+j;					tempcolumns[iname] = document.getElementById(cell_name).innerHTML;					table.Lines[i][j].text = iname;					iname++;					}				}			}		}		if (table.Columns[column].type == "numeric") {		// Sort by Float		table.Lines.sort(	function by_name(a,b) {									if (parseFloat(a[column].data) < parseFloat(b[column].data) ) { return -1; }									if (parseFloat(a[column].data) > parseFloat(b[column].data) ) { return 1; }									return 0;									}								);		}	else if (table.Columns[column].type == "money") {		// Sort by Money		table.Lines.sort(	function by_name(a,b) {									if (parseFloat(a[column].data.substring(1)) < parseFloat(b[column].data.substring(1)) ) { return -1; }									if (parseFloat(a[column].data.substring(1)) > parseFloat(b[column].data.substring(1)) ) { return 1; }									return 0;									}								);		}	else if (table.Columns[column].type == "date") {		// Sort by Date		table.Lines.sort(	function by_name(a,b) {									if (Date.parse(a[column].data) < Date.parse(b[column].data) ) { return -1; }									if (Date.parse(a[column].data) > Date.parse(b[column].data) ) { return 1; }									return 0;									}								);		}	else {		// Sort by alphanumeric		table.Lines.sort(	function by_name(a,b) {									if (a[column].data+"" < b[column].data+"") { return -1; }									if (a[column].data+"" > b[column].data+"") { return 1; }									return 0;									}								);		}	if (reverse) { table.Lines.reverse(); }	for (var i=0; i<table.Lines.length; i++) {		for (var j=0; j<table.Columns.length; j++) {			var cell_name = "d"+table.name+"-"+i+"-"+j;					if(table.Columns[j].type == "form") {					var iname = table.Lines[i][j].text;					document.getElementById(cell_name).innerHTML = tempcolumns[iname];					}				else {					document.getElementById(cell_name).innerHTML = table.Lines[i][j].text;					}				}		}	}
meta: 5314	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5314/7299c5469be49b8866f4b2d8c0f1d824350dc65a/assetManager.js/clean/www/extras/assetManager/assetManager.js