var ajaxtestimonials;

function testimonialsSwitch(uri)      
{
ajaxtestimonials=null;
if (window.XMLHttpRequest)
  {// code for Firefox, Opera, IE7, etc.
  ajaxtestimonials=new XMLHttpRequest();
  }
else if (window.ActiveXObject)
  {// code for IE6, IE5
  ajaxtestimonials=new ActiveXObject("Microsoft.XMLHTTP");
  }
if (ajaxtestimonials!=null)
  {
  ajaxtestimonials.onreadystatechange=state_Change_test;
  ajaxtestimonials.open("GET",uri,true);
  ajaxtestimonials.send(null);
  }
else
  {
  alert("Your browser does not support XMLHTTP.");
  }
}

function state_Change_test()
{
if (ajaxtestimonials.readyState==4)
  {// 4 = "loaded"
  if (ajaxtestimonials.status==200)
    {// 200 = "OK"
    document.getElementById('testimonialscontainer').innerHTML=ajaxtestimonials.responseText;
    }
  else
    {
    alert("Error: " + ajaxtestimonials.statusText + "?");
    }
  }
}
