function toggle_submenu (postid) { 

   var whichpost = document.getElementById(postid); 
   
   if (whichpost.className=="show") { 
	  whichpost.className="hide"; 
   } 
   else { 
	  whichpost.className="show"; 
   } 
} 

oldvalue = "";
function passText(passedvalue) {
  if (passedvalue != "") {
    var totalvalue = passedvalue+"\n"+oldvalue;
    document.displayform.informatie_over_product.value = totalvalue;
    oldvalue = document.displayform.informatie_over_product.value;
  }
}






	function MoveOption (objSourceElement, objTargetElement) {
			var aryTempSourceOptions = new Array();
			var x = 0;
			for (var i = 0; i < objSourceElement.length; i++) {
					if (objSourceElement.options[i].selected) {
							var intTargetLen = objTargetElement.length++;
							objTargetElement.options[intTargetLen].text = objSourceElement.options[i].text;
							objTargetElement.options[intTargetLen].value = objSourceElement.options[i].value;
					}
					else {
							var objTempValues = new Object();
							objTempValues.text = objSourceElement.options[i].text;
							objTempValues.value = objSourceElement.options[i].value;
							aryTempSourceOptions[x] = objTempValues;
							x++;
					}
			}
			objSourceElement.length = aryTempSourceOptions.length;
			for (var i = 0; i < aryTempSourceOptions.length; i++) {
					objSourceElement.options[i].text = aryTempSourceOptions[i].text;
					objSourceElement.options[i].value = aryTempSourceOptions[i].value;
					objSourceElement.options[i].selected = false;
			}
	}
	function SelectAllOptions (objSelect) {
		for (var i = 0; i < objSelect.length; i++) {
			objSelect.options[i].selected = true;
		}
	}
	function DeselectAllOptions (objSelect) {
		for (var i = 0; i < objSelect.length; i++) {
			objSelect.options[i].selected = false;
		}
	}



	function SubmitForm() {
		DeselectAllOptions (document.getElementById('producten'));
		SelectAllOptions (document.getElementById('resultaat'));
		document.getElementById('aanvraag').submit();
	}

