var selectedList;
var availableList;

function moveOption(fromid, toid){
	availableList = document.getElementById(fromid);
	selectedList = document.getElementById(toid);
	addAttribute();
}

function delAttribute(){
	var selIndex = selectedList.selectedIndex;
	if(selIndex < 0)
		return;
	availableList.appendChild(
	selectedList.options.item(selIndex))
	selectNone(selectedList,availableList);
	setSize(availableList,selectedList);
}

function addAttribute(){
	var addIndex = availableList.selectedIndex;
	if(addIndex < 0)
		return;
	selectedList.appendChild( 
	availableList.options.item(addIndex));
	selectNone(selectedList,availableList);
	setSize(selectedList,availableList);
}

function showPage(currentPage, what){
	div = document.getElementById("page_"+currentPage);
	div.style.display = "none";
	div = document.getElementById("page_"+what);
	div.style.display = "inline";
}