function newWin(url,name,w,h,scroll,resize,menubar,location,toolbar,status)
{
	if (w == '0')
	{
		w = screen.availWidth-100;
	}

	if (h == '0')
	{
		h = screen.availHeight-100;
	}

  var popup = null;
  l = (screen.availWidth-10 - w) / 2;
  t = (screen.availHeight-20 - h) / 2;

  features = "width="+w+",height="+h+",left="+l+",top="+t;
  features += ",screenX="+l+",screenY="+t;
  features += ",scrollbars="+scroll+",resizable="+resize+",location="+location+"";
  features += ",menubar="+menubar+",toolbar="+toolbar+",status="+status+"";

 	popup =  window.open(url+'?Url='+document.referrer, name, features);
}

function zoeken(f_SearchKey) {
	if(f_SearchKey == '') {
		alert('Vul minimaal 1 zoekwoord in...');
	} else {
		location.href = '/zoeken/'+f_SearchKey+'.html';
	}
}

function createHttpRequest() {
/*
	if (window.XMLHttpRequest) {
		var httpRequest = new XMLHttpRequest()
  }
  else if (window.ActiveXObject) {
	  var httpRequest = new ActiveXObject("Microsoft.XMLHTTP");
  }    
	return httpRequest;
*/
  var xmlHttp = null;

  try
  {
    // Firefox, Opera 8.0+, Safari
    xmlHttp=new XMLHttpRequest();
  }
  catch (e)
  {
    // Internet Explorer 6+
    try
    {
      xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
    catch (e)
    {
      //For IE 5.5 Users
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }	
  return xmlHttp;
}

function getTimeString() {
	//var dte = new Date();
	//return dte.toLocaleTimeString();
	var rand_no = Math.random() * 10000000000000;
	return Math.round(rand_no)+'';
}	 
