function validate(){			
		
  var result = ",";   
  var DisciplineLength = (document.forms['zoekvacatures'].discipline ? document.forms['zoekvacatures'].discipline.length : 0);
  var LocValue = (document.forms['zoekvacatures'].loc ? document.forms['zoekvacatures'].loc.value : 0)
  for (var i = 0; i < DisciplineLength; i++) { 
      if (document.forms['zoekvacatures'].discipline.options[i].selected) { 
          result += document.forms['zoekvacatures'].discipline.options[i].value + ","; 
      } 
  } 
  //if (result==",") { document.forms['zoekvacatures'].discipline.className += ' LV_invalid_field' ;return false;}
	
  var bDef = 0;  
 	var tmp = "";
 	var splitje = "";
 	for (x in Loc)
 	{		
 		bDef = 1;
 		if (!Loc[x]=="" && !Loc[x]=="0"){ 
 			tmp = tmp + splitje + Loc[x];	
 			splitje = ",";
		}
  }   
	if (bDef) 
	{		
	 	if (tmp=="") {
	  	LocValue = "1,2,3";}
		else {LocValue = tmp;}
	}
	else {
	 	if (LocValue=="") {
	  		LocValue = "1,2,3";
	  }		  	
	}	
	//alert('Maak een keuze');	
	return true;
}

function changeChkbox(bool,cbname){			
	for(x=0; x<document.forms.length; x++){
		for(i=0; i<document.forms[x].elements.length; i++){			
		if (document.forms[x].elements[i].type=="checkbox" && (document.forms[x].elements[i].name==cbname || !cbname) ){			
			if (bool) {												
				if (document.forms[x].elements[i].value!="All"){
				document.forms[x].elements[i].checked = 0;
				}
				else {	document.forms[x].elements[i].checked = 1;}
			}
			if (!bool) {				
				if (document.forms[x].elements[i].value=="All"){				
				//alert("not bool");
				document.forms[x].elements[i].checked = 0;}
			}				
  }
}
	}


}

function RefreshImage(valImageId) {
	var objImage = document.images[valImageId];
	if (objImage == undefined) {
		return;
	}
	var now = new Date();	
	objImage.src = objImage.src.split('?')[0] + '?x=' + now.toUTCString();
	
}


