function pop2() {
	var style2 = document.getElementById("txtHint").style;
	style2.display = "none";
	//document.getElementById("txtHint").style.visibility = "hidden";
	
	if (document.getElementById) { // DOM3 = IE5, NS6
		var style2 = document.getElementById("txtHint").style;
		style2.display = "none";
	} else {
	if (document.layers) { // Netscape 4
	document.getElementById("txtHint").display = "none";
	} else { // IE 4
	document.all.getElementById("txtHint").style.display = "none";
	}
	}

}


function pop(url){
 toggleLayer("txtHint"); //window.open(url,title,'width='+width+',height='+height+',scrollbars=yes,resizable=yes,menubar=no,toolbar=no');
  
  xmlhttp=GetXmlHttpObject();
if (xmlhttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  }
var url2="http://www.viltkontaktgroep.nl/calendar/calender/html/evenementen_veel.asp";
url2=url2+"?q="+url;
//url=url+"&sid="+Math.random();
xmlhttp.onreadystatechange=stateChanged;
xmlhttp.open("GET",url2,true);
xmlhttp.send(null);
}

/* http://www.netlobo.com/div_hiding.html */
function toggleLayer(whichLayer)
{
	document.getElementById(whichLayer).style.width = "500px";
	/*document.getElementById(whichLayer).style.height = "250px";*/

if (document.getElementById)
{
// this is the way the standards work
var style2 = document.getElementById(whichLayer).style;
style2.display = style2.display? "":"block";
}
else if (document.all)
{
// this is the way old msie versions work
var style2 = document.all[whichLayer].style;
style2.display = style2.display? "":"block";
}
else if (document.layers)
{
// this is the way nn4 works
var style2 = document.layers[whichLayer].style;
style2.display = style2.display? "":"block";
}
}


function stateChanged()
{
if (xmlhttp.readyState==4)
  {
  document.getElementById("txtHint").innerHTML=xmlhttp.responseText;
  }
}

function GetXmlHttpObject()
{
if (window.XMLHttpRequest)
  {
  // code for IE7+, Firefox, Chrome, Opera, Safari
  return new XMLHttpRequest();
  }
if (window.ActiveXObject)
  {
  // code for IE6, IE5
  return new ActiveXObject("Microsoft.XMLHTTP");
  }
return null;
}

function ajaxtest(url){

xmlhttp=GetXmlHttpObject();
if (xmlhttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  }
var url2="http://www.viltkontaktgroep.nl/index-kalender.asp?date=" + url;
alert(url2);
//url=url+"&sid="+Math.random();
//xmlhttp.onreadystatechange=stateChanged;
xmlhttp.open("GET",url2,true);
xmlhttp.send(null);
}
