var xmlHttp = false;
try {
  xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
  try {
    xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
  } catch (e2) {
    xmlHttp = false;
  }
}

if (!xmlHttp && typeof XMLHttpRequest != 'undefined') {
  xmlHttp = new XMLHttpRequest();
}

function applay_testimonials()
{
	if(xmlHttp.readyState == 4 && xmlHttp.status == 200)
	{
		var content_to_insert = xmlHttp.responseText;
//		alert(content_to_insert);
		document.getElementById("testimonials").innerHTML = "";
		document.getElementById("testimonials").innerHTML = content_to_insert;
	}
//	alert("!!!");
}

function php_request() 
{
	var url = "http://"+window.location.hostname+"/inc/view.php";
//	prompt("",url);
	xmlHttp.open("GET", url, true);
	xmlHttp.onreadystatechange = applay_testimonials;
	xmlHttp.send(null);
}
