	gvalue = '';
	gwhat = '';
	gwhere = '';

	function handleHttpResponse() {
		if (http.readyState == 4) {
			if (gwhere != '') {
				if ((http.responseText).length >= 3) {
					theSel = document.getElementById(gwhere);
					theSel.style.display = '';
					aryPosition = ObjectPosition(document.getElementById('search_str'));
					//theSel.style.width = 300;
					//theSel.style.height = 250;
					theSel.style.border = "1px solid";
					theSel.style.left = aryPosition[0];
					theSel.style.top = aryPosition[1]+20;

					//namen = (http.responseText).split("|");
					strnamen = "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" bgcolor=\"#F3F3F3\">";
					strnamen += "<tr height=\"15\"><td><h1>Resultaten (<a href=\"#\" class=\"nieuws\" onclick=\"document.getElementById('"+gwhere+"').style.display='none';\">Sluiten</a>)</h1></td></tr>";
					//for (i = 0; i < namen.length - 1; i++) {
					//	strnamen += "<tr height=\"15\"><td><a href=\"\" class=\"nieuws\">&#8250 "+namen[i]+"</a></td></tr>";
					//}
					strnamen += http.responseText;
					strnamen += "</table>";
					theSel.innerHTML = strnamen;
				} else {
					theSel.style.display = 'none';
				}
			}
		}
	}
	function getHTTPObject() {
		var xmlhttp;
		/*@cc_on
		@if (@_jscript_version >= 5)
			try {
				xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
			} catch (e) {
				try {
					xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
				} catch (E) {
					xmlhttp = false;
				}
			}
		@else
		xmlhttp = false;
		@end @*/
		if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
			try {
				xmlhttp = new XMLHttpRequest();
			} catch (e) {
				xmlhttp = false;
			}
		}
		return xmlhttp;
	}
	var http = getHTTPObject(); // We create the HTTP Object

	function doSearch(value, what, where, site)
	{
		gvalue = value;
		gwhat = what;
                gwhere = where;
		http.open("GET", "script_page.php?content=" + escape(value) + "&what=" + what + "&site=" + site, true);
		http.onreadystatechange = handleHttpResponse;
		http.send(null);
	}

	function doSearch2(value, what, where, site)
	{
		gvalue = value;
		gwhat = what;
                gwhere = where;
		http.open("GET", "../script_page2.php?content=" + escape(value) + "&what=" + what + "&site=" + site, true);
		http.onreadystatechange = handleHttpResponse;
		http.send(null);
	}

	function ObjectPosition(obj) {
    var curleft = 0;
      var curtop = 0;
      if (obj.offsetParent) {
            do {
                  curleft += obj.offsetLeft;
                  curtop += obj.offsetTop;
            } while (obj = obj.offsetParent);
      }
      return [curleft,curtop];
    }
