var BODY_KEY_PRESSED = false;
function focusQuicksearch() {
	
	if (!BODY_KEY_PRESSED) {
		var form = document.forms["quicksearch"];
		
		//falls ein Anchor - Tag ausgewählt ist, dann nicht springen. 
		//Es nervt naemlich nur, falls die Seite anfaengt rumzuscrollen:
		
		var s = new String(window.location);
		
		if (s.indexOf("#") >= 0) return;
		
		if (form != null) {
			if (form.quicksearch != null) 
				form.quicksearch.focus();
		}	
		
	}
}

function bodyMouseDown() {
	BODY_KEY_PRESSED = true;
}

function bodyKeyPress() {
	BODY_KEY_PRESSED = true;
}

function Move_ListIndex(inListFrom, inListTo) {

	if (inListFrom.selectedIndex > -1 )	{
		
		if (inListFrom.options[inListFrom.selectedIndex].value != "") {
	
			//neue Option anlegen mit Text der alten Option
			var z = new Option(inListFrom.options[inListFrom.options.selectedIndex].text);
			z.value = inListFrom.options[inListFrom.options.selectedIndex].value;
	
			//neue Option der Zielliste zuweisen:
			inListTo.options[inListTo.options.length] = z;
			
			//alte Option löschen:
			inListFrom.options[inListFrom.selectedIndex] = null;
			
			//im Netscape wird ein Standardelement eingeblendet, weil nachträglich nicht die Breite des Steuerelements
			//eingestellt weden kann; diese Platzhalter sollen immer gelöscht werden, falls vorhanden:
			var i;
			for (i = 0; i < inListFrom.options.length; i++) {	
				if (inListFrom.options[i].value == "") {
					inListFrom.options[i] = null;
					i--;
				}
			}
			for (i = 0; i < inListTo.options.length; i++) {	
				if (inListTo.options[i].value == "") {
					inListTo.options[i] = null;
					i--;
				}
			}
		
		}
	}

}

/**********************************
The copy-select-into-hidden routine
**********************************/
function Bookshelf_OnSubmit(inListBooks, inHiddenField)	{

	var i;
	inHiddenField.value = "";
	
	for ( i = 0; i < inListBooks.options.length; i++)	{
		
		if (inListBooks.options[i].value != "") {
		
			inHiddenField.value = inHiddenField.value + inListBooks.options[i].value;
			
			if (i < inListBooks.options.length - 1) {
				inHiddenField.value = inHiddenField.value + ",";
			}
		}	  
	}
	
	return true;
	
}

//Für Submit von Interessengebiete
function Interessen_OnSubmit(inListBooks, inHiddenField)	{


	
}


