
						function select(){
						var box 
						var box2 
						check=true;
						box = document.getElementById('select_keywords')
						box2 = document.getElementById('selected_keywords')
							for (i = 0; i < box.options.length; i++){
								if (box.options[i].selected){
									check=true;
										for(x=0; x<box2.options.length; x++){
											if(box2.options[x].value==box.options[i].value){				
											check=false;
											}
										}
									if(check==true && box.options[i].value!=0){
										box2.length=box2.length+1;
										box2.options[box2.length-1].text = box.options[i].text;
										box2.options[box2.length-1].value = box.options[i].value;
									}
								}	
							}
						}
						
						function remove(){
						box = document.getElementById('selected_keywords')
							for (i = 0; i < box.options.length; i++){
								if (box.options[i].selected){ box.remove(i); }
							}
						}
						
						function setSelected(){
						box = document.getElementById('selected_keywords')
						
							for (i = 0; i < box.options.length; i++){	
									box.options[i].selected=true;	
							}	
						return true;	
						}
						
						function ListItemSort(ListID,Method) {
							if (Method == 'up') {
								ListItemUp(document.getElementById(ListID))
							}
							if (Method == 'down') {
								ListItemDown(document.getElementById(ListID))
							}
						}
						
						function ListItemUp(CList) { 
							if (CList.options.length < 2) return
							if (CList[0].selected) return
							
							for (var i = 0; i < CList.options.length; i++) {		
								if (CList[i].selected) {
									tmpIdAb	= new Option(CList[i-1].text,CList[i-1].value)
									tmpId 	= new Option(CList[i].text,CList[i].value)
									CList[i-1] = tmpId
									CList[i] = tmpIdAb
									CList[i-1].selected	= true
								}
							}
						}
						
						
						function ListItemDown(CList) {
							// Moves selected item one step down

							if (CList.options.length < 2) return //<- Should be more than one value in list
							if (CList[CList.options.length-1].selected) return //<- Selected item shouldn't be the last
							for (var i = CList.length-2; i >= 0; i--) {
								//if (CList[i].selected && CList[i].value != 0) {
								if (CList[i].selected) {
									tmpId = new Option(CList[i].text,CList[i].value)
									tmpIDNext	= new Option(CList[i+1].text,CList[i+1].value)
									
									CList[i+1] = tmpId //<- Changes between selected item and next item
									CList[i] = tmpIDNext //<- Changes between selected item and next item
									CList[i+1].selected	= true
								}
							}
						}
		
						
						
					function ListItemDel() {
					CList = document.getElementById('selected_keywords')
					
					
							for (var i = 0; i < CList.options.length; i++) {
								if (CList[i].selected) {
									CList[i] = null;
									if (CList.options.length != i) {
										CList[i].selected = true;
										return;
									}
									if (CList.options.length != 0 && CList.options.length == i) {
										CList[i-1].selected = true;
										return;
									}
								}
							}
						}


//Button-Handlers
function mouseeventButtonItem(butItem,EventName,StatusID,cssExtra) {
	if (EventName == 'over') {
		//Mouseover-event
		document.getElementById(butItem.id).className = 'formbutton_mouseover';
	}
	else {
		if (EventName == 'out') {
			//Mouseoout-event
			if (cssExtra == 'showbutton') {
				document.getElementById(butItem.id).className = 'formbutton_mouseout_showbutton';
			}
			else {
				document.getElementById(butItem.id).className = 'formbutton_mouseout';
			}
			document.getElementById(StatusID).style.display='none';
		}
		else {
			if (EventName == 'down') {
				//Mouseodown-event
				document.getElementById(butItem.id).className = 'formbutton_mousedown';
			}
			if (EventName == 'up') {
				//Mouseoup-event
				document.getElementById(butItem.id).className = 'formbutton_mouseover';
			}
		}
	}
	if (StatusID != null && EventName != 'out') {
		document.getElementById(StatusID).style.display='block';
	}
}
