
	function twodec(val){
		val = ""+Math.round(val*100)/100;
		if(val.indexOf(".")!=-1){
			val = val.split(".");
			if(val[1].length==1) val[1]=val[1]+"0";
			return val[0]+","+val[1];
		}else return val+",-";
	}

	function xmlhttp_instance(){
		var xmlhttp=false;
		/*@cc_on @*/
		/*@if (@_jscript_version >= 5)
		// JScript gives us Conditional compilation, we can cope with old IE versions.
		// and security blocked creation of the objects.
		 try {
		  xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
		 } catch (e) {
		  try {
		   xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		  } catch (E) {
		   xmlhttp = false;
		  }
		 }
		@end @*/
		if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
		  xmlhttp = new XMLHttpRequest();
		}

		return xmlhttp;
	}

	function toonfoto(bestand){
		document.getElementById('foto').src = 'bin/'+bestand;
	}

