// IE Check bool
var xmlhttp = false;

// Check for IE
try {
  // Javascript > 5
  xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
  // Older version of IE
  try {
    xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  } catch (e) {
  // Not using IE
  xmlhttp = false;
  }
}

// Instantiate xmlhttp object if not IE
if(!xmlhttp && typeof (XMLHttpRequest != 'undefined')) {
  xmlhttp = new XMLHttpRequest();
}

function getData(phpFile, objID) {
  var obj = document.getElementById(objID);
  xmlhttp.open("GET", phpFile);
  xmlhttp.onreadystatechange = function() {
    if(xmlhttp.readyState == 4 && xmlhttp.status == 200) {
      obj.innerHTML = '';
      obj.innerHTML = "&pound;" + xmlhttp.responseText;
    }
  }  
  xmlhttp.send(null);  
}
