// JavaScript Document
<!--
var url = "getMail.php?id="; // The server-side script
	   function handleHttpResponse() {	
		if (http.readyState == 4) {
			  if(http.status==200) {
			  	var results=http.responseText;
			  document.getElementById('divmail').innerHTML = results;
			  }
  			}
		else
			{
			document.getElementById('divmail').innerHTML = '<img src=../Images/indicator.gif>';
			}
		}
		
	    function requestEmailInfo() {      
            var sId = document.getElementById("refISBN").value;
			http.open("GET", url + escape(sId), true);
			http.onreadystatechange = handleHttpResponse;
			http.send(null);
        }
function getHTTPObject() {
  var xmlhttp;
 
  if(window.XMLHttpRequest){
    xmlhttp = new XMLHttpRequest();
  }
  else if (window.ActiveXObject){
    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
    if (!xmlhttp){
        xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
    
}
  return xmlhttp;
}
var http = getHTTPObject(); // We create the HTTP Object

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
-->
