 writeREXMedialist(id);  
function moveREXMedialist(id,direction){	// move top	// move bottom	// move up	// move down			var mediaselect = 'REX_MEDIALIST_SELECT_'+id;	var source = document.getElementById(mediaselect);	var sourcelength = source.options.length;		var elements = new Array();	var was_selected = new Array();	for (ii = 0; ii < sourcelength; ii++) {		elements[ii] = new Array();		elements[ii]['value'] = source.options[ii].value; 		elements[ii]['title'] = source.options[ii].text; 		was_selected[ii] = false;	}		var inserted = 0;	var was_moved = new Array();	was_moved[-1] = true;	was_moved[sourcelength] = true;		if (direction == 'top') {		for (ii = 0; ii < sourcelength; ii++) {			if (source.options[ii].selected) {				elements = moveItem(elements, ii, inserted);				was_selected[inserted] = true;				inserted++;			}		}	}		if (direction == 'up') {		for (ii = 0; ii < sourcelength; ii++) {			was_moved[ii] = false;			if (source.options[ii].selected) {				to = ii-1;				if (was_moved[to]) {					to = ii;				}				elements = moveItem(elements, ii, to);				was_selected[to] = true;				was_moved[to] = true;			}		}	}		if (direction == 'down') {		for (ii = sourcelength-1; ii >= 0; ii--) {			was_moved[ii] = false;			if (source.options[ii].selected) {				to = ii+1;				if (was_moved[to]) {					to = ii;				}				elements = moveItem(elements, ii, to);				was_selected[to] = true;				was_moved[to] = true;			}		}	}		if (direction == 'bottom') {		inserted = 0;		for (ii = sourcelength-1; ii >= 0; ii--) {			if (source.options[ii].selected) {				to = sourcelength - inserted-1;				if (to > sourcelength) {					to = sourcelength;				}				elements = moveItem(elements, ii, to);				was_selected[to] = true;				inserted++;			}		}	}		for (ii = 0; ii < sourcelength; ii++) {		source.options[ii] = new Option(elements[ii]['title'], elements[ii]['value']);		source.options[ii].selected = was_selected[ii];	}	writeREXMedialist(id);}
7270	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/7270/a1ef2df2a6d76109b90d7c214911112c58a50eb4/standard.js/clean/redaxo3_0/redaxo/js/standard.js