<!--
   function replaceUrl(id) {
   	  document.getElementById('bron_url').innerHTML = '<a href="javascript: void 0;" onclick="window.open(\'popup.php?bron=' + id + '\',\'1\',\'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=600,height=500\');">Lees verder...</A>';
   }
   function replaceTUrl(id) {
   	  document.getElementById('bron_turl').innerHTML = '<BR /><BR /><a href="javascript: void 0;" onclick="window.open(\'popup.php?bron=' + id + '\',\'1\',\'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=600,height=500\');">Lees verder...</A>';
   }
   
 	function moveOptionUp(obj)
     {
     	if(obj!=null && obj.options!=null)
     	{
     	    for(i=0;i<obj.options.length;i++)
     		{
     			if(obj.options[i].selected)
     			{
     				if(i != 0 && !obj.options[i-1].selected)
     				{
     				swapOptions(obj,i,i-1);
     				obj.options[i-1].selected = true;
     				}
     			}
     		}
     	}
     }
     
     function moveOptionDown(obj)
     {
     	if(obj!=null && obj.options!=null)
     	{
     		for(i=obj.options.length-1;i>=0;i--)
     		{
     			if(obj.options[i].selected)
     			{
     				if(i !=(obj.options.length-1) && ! obj.options[i+1].selected)
     				{
     					swapOptions(obj,i,i+1);
     					obj.options[i+1].selected = true;
     				}
     			}
     		}
     	}
     }
     
     function swapOptions(obj,i,j)
     {
     	var o = obj.options;
     	var i_selected = o[i].selected;
     	var j_selected = o[j].selected;
     	
     	var temp = new Option(o[i].text, o[i].value, o[i].defaultSelected, o[i].selected);
     	if (temp.value.substr(0,4) == "theo") 
     	{
	     	temp.style.backgroundImage = "url('content/themes/default/images/icons/theorie.gif')";
     	}
     	else
     	{
     		temp.style.backgroundImage = "url('content/themes/default/images/icons/opdracht.gif')";
     	}
     	temp.style.backgroundRepeat = "no-repeat";
     	temp.style.padding = "2px";
     	temp.style.paddingLeft = "55px";
     	
     	var temp2= new Option(o[j].text, o[j].value, o[j].defaultSelected, o[j].selected);
     	if (temp2.value.substr(0,4) == "theo") 
     	{
	     	temp2.style.backgroundImage = "url('content/themes/default/images/icons/theorie.gif')";
     	}
     	else
     	{
     		temp2.style.backgroundImage = "url('content/themes/default/images/icons/opdracht.gif')";
     	}
     	temp2.style.backgroundRepeat = "no-repeat";
     	temp2.style.padding = "2px";
     	temp2.style.paddingLeft = "55px";
     	
     	o[i] = temp2;o[j] = temp;o[i].selected = j_selected;o[j].selected = i_selected;
     }
     
     function optionJump(option)
     {
  	    i = 0;
  	    if (option == "opdr")
  	    {
  	 	   while (i < document.forms['mainForm'].opdr_bundel.options.length)
  	       {
  	 	      if (document.forms['mainForm'].opdr_bundel.options[i].selected)
  	 	      {
  	 	         newtext = document.forms['mainForm'].opdr_bundel.options[i].text;
  	 	         newvalue = document.forms['mainForm'].opdr_bundel.options[i].value;
  	 	         var temp = document.forms['mainForm'].bundel.options[document.forms['mainForm'].bundel.options.length] = new Option(newtext, newvalue);
  	 	         temp.style.backgroundImage = "url('content/themes/default/images/icons/opdracht.gif')";
		     	 temp.style.backgroundRepeat = "no-repeat";
		     	 temp.style.padding = "2px";
		     	 temp.style.paddingLeft = "55px";
		     	 i++;
  	 	      }
  	 	      else 
  	 	      {
  	 	         i++;
  	 	      }
  	       }
  	    }
  	    else if (option == "theorie")
  	    {
  	 	   while (i < document.forms['mainForm'].theorie_bundel.options.length)
  	       {
  	 	      if (document.forms['mainForm'].theorie_bundel.options[i].selected)
  	 	      {
  	 	         newtext = document.forms['mainForm'].theorie_bundel.options[i].text;
  	 	         newvalue = document.forms['mainForm'].theorie_bundel.options[i].value;
  	 	         var temp = document.forms['mainForm'].bundel.options[document.forms['mainForm'].bundel.options.length] = new Option(newtext, newvalue);
  	 	         temp.style.backgroundImage = "url('content/themes/default/images/icons/theorie.gif')";
		     	 temp.style.backgroundRepeat = "no-repeat";
		     	 temp.style.padding = "2px";
		     	 temp.style.paddingLeft = "55px";
		     	 i++;
  	 	      }
  	 	      else 
  	 	      {
  	 	         i++;
  	 	      }
  	       }
  	    }
  	    
  	    
  	    else if (option == "return")
  	    {
  	 	   while (i < document.forms['mainForm'].bundel.options.length)
  	       {
  	 	      if (document.forms['mainForm'].bundel.options[i].selected)
  	 	      {
  	 	      	document.forms['mainForm'].bundel.options[i] = null;
  	 	      }
  	 	      else
  	 	      {
  	 	         i++;
  	 	      }
  	       }
  	    }
     }
     
     function allSelect()
     {
        list = document.forms['mainForm'].bundel;
        if (list){ for (i=0;i<list.length;i++){ list.options[i].selected = true; } }
       
     }
// -->
