// JavaScript Document
var xmlhttp;

function readShareInfo(){

xmlhttp=null;
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
}
else
{// code for IE5, IE6
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=onResponse;
xmlhttp.open("GET","/includes/share_info.php?s=XPH.L",true);
xmlhttp.send(null);
}

function onResponse() {
  if (xmlhttp.readyState == 4) {  // Makes sure the document is ready to parse.
        //alert("1");
    if (xmlhttp.status == 200) {  // Makes sure it's found the file.
        var allText = xmlhttp.responseText; 
        //lines = txtFile.responseText.split("\n"); // Will separate each line into an array
	    document.getElementById("share_update").innerHTML=allText;
    }
  }
}
