context: 	changeSorting: function(objectId, direction) {		var objectName = this.prependFormFieldNames+this.parseFormElementName('parts', objectId, 3, 2);		var objectPrefix = this.parseFormElementName('full', objectId, 0, 1);		var formObj = document.getElementsByName(objectName);				if (formObj.length) {				// the uid of the calling object (last part in objectId)			var callingUid = this.parseFormElementName('none', objectId, 1);			var records = formObj[0].value.split(',');			var current = records.indexOf(callingUid);			var changed = false;							// move up			if (direction > 0 && current > 0) {				records[current] = records[current-1];				records[current-1] = callingUid;				changed = true;								// move down			} else if (direction < 0 && current < records.length-1) {				records[current] = records[current+1];				records[current+1] = callingUid;				changed = true;			}						if (changed) {				formObj[0].value = records.join(',');				var cAdj = direction > 0 ? 1 : 0; // adjustment				$(objectId+'_div').parentNode.insertBefore(					$(objectPrefix+'['+records[current-cAdj]+']_div'),					$(objectPrefix+'['+records[current+1-cAdj]+']_div')				);				this.redrawSortingButtons(objectPrefix, records);			}		}				return false;	},
meta: 9100	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9100/e66275acdf79f04c346d13ed2af3e69335402d79/jsfunc.inline.js/buggy/t3lib/jsfunc.inline.js