var dragsort = ToolMan.dragsort();
var junkdrawer = ToolMan.junkdrawer();
window.onload = function() { dragsort.makeListSortable(document.getElementById("sortables"), function() {void(0);}); }
function saveOrderAndClose() {
	var list = document.getElementById("sortables");
	var ids = junkdrawer.serializeList(list).split('|').join(',');
	var date = new Date();
	ids = ids + ',' + appendIds ;
	date.setTime(date.getTime() + 365 * 24 * 60 * 60 * 1000);
	document.cookie = 'BIDS=' + ids + '; domain=.suche.ch; path=/; expires=' + date.toGMTString();
	document.cookie = 'BIDSM=1; domain=.suche.ch; path=/; expires=' + date.toGMTString();
	//window.parent.hideMoreBoxes();
	window.parent.setTimeout("window.location.href = window.location.href;", 50);
}
