
// <![CDATA[

function createRequestObject() {
    var ro;
    if (navigator.appName == "Microsoft Internet Explorer") {
        ro = new ActiveXObject("Microsoft.XMLHTTP");
    } else {
        ro = new XMLHttpRequest();
    }
    return ro;
}
var http = createRequestObject();

// Function that calls the PHP script:
function sendRequest(qc) {
// alert(qc);
    http.open('get', 'liveinkAjaxTESpub.php?' + qc ); 
    http.onreadystatechange = handleResponse; 
    http.send(null);
}

// Function handles the response from the PHP script.
function handleResponse() {
  if(http.readyState == 4){
        var arra = http.responseText;
    if((arra != '')&&(arra != 'undefined')){    
//alert(arra);
      var ie = '0';
      if (navigator.appName == "Microsoft Internet Explorer") { ie = '1'; }
        
        var arr = arra.split("||");


      if ((arr[1] != '')&&(arr[1] != 'undefined')) { 
        var arrh = arr[1].split("(|)");
        if (ie == '0'){ document.getElementById('b01').innerHTML = arrh[0]; }
        document.getElementById('a01').innerHTML = arrh[1];  }



    }
  }
}

// ]]>

