//Rollovers
function Hilite(el){
   if (document.getElementById(el).className == 'punt_actief'){  
	    document.getElementById(el).className = 'punt';
   }else{
	    document.getElementById(el).className = 'punt_actief';   
   }
}
function HiliteAlbum(el){
   if (document.getElementById(el).className == 'album_actief'){  
	    document.getElementById(el).className = 'album';
   }else{
	    document.getElementById(el).className = 'album_actief';   
   }
}
function HiliteBlog(el){
   if (document.getElementById(el).className == 'blog_actief'){  
	    document.getElementById(el).className = 'blog';
   }else{
	    document.getElementById(el).className = 'blog_actief';   
   }
}

//Field clear
function doClear(theText) {
   if (theText.value == theText.defaultValue) {
       theText.value = ""
   }
}

//Agenda zoek filter
function agenda_onClick(tempurl,paging) {
   genre = document.mainForm.agenda_categorie.value;
   dag = document.mainForm.agenda_dag.value;
   aantal = document.mainForm.agenda_aantal.value;
   zoekopdracht = document.mainForm.agenda_zoekopdracht.value;

   templink =  tempurl+"/agenda/";

   if (genre != ''){
      templink = templink + genre + "/";
   }
   if (dag != ''){
      templink = templink + dag + "/";
   }
   if (zoekopdracht != '' && zoekopdracht != 'Wat zoek je?'){
      templink = templink + "$k_" + zoekopdracht + "/";
   }
   if (aantal != '' && aantal != paging){
      templink = templink + "$ip_" + aantal + "/";
   }

   document.mainForm.action = templink;
   document.mainForm.submit();  
}

// Zoekfunc selectie
function keyword_onClick(tempurl) {
    keyword = document.zoekform.zoekopdracht.value;

    templink =  tempurl+"/Zoekresultaten/";

    if (keyword != '' && keyword != 'Wat zoek je?'){
       templink = templink +"$k_"+ keyword + "/";
       document.zoekform.action = templink;
       document.zoekform.submit();
    }
}