/*
*  Displays the content of 'url' in 'div'.
*/
	function procAjax(url, div) {
		if (window.XMLHttpRequest) { // Non-IE browsers
		  req = new XMLHttpRequest();
		  req.onreadystatechange = function(){targetDiv(div);};
		  try {
			req.open("GET", url, true);
		  } catch (e) {
			alert(e);
		  }
		  req.send(null);
		} 
		else if (window.ActiveXObject) { // IE
		  req = new ActiveXObject("Microsoft.XMLHTTP");
		  if (req) {
			req.onreadystatechange = function(){targetDiv(div);};
			req.open("GET", url, true);
			req.send();
	
		  }
		}
	}

/*
*  Waits for the page to be completed and fills 'div' with the content
*  on an OK response from the server
*/
	function targetDiv(div) {
	
		if (req.readyState == 4) { // Complete
			  if (req.status == 200) { // OK response
				  document.getElementById(div).innerHTML = req.responseText; // The div you want the data to populate
			  } else {
				alert("Problem: " + req.statusText);
			  }
		}      
	}