try { // prevents image flickering
  document.execCommand("BackgroundImageCache", false, true);
} catch(err) {}


function ajax_get(url, divid) { 
  var xmlHttp=null; // Defines that xmlHttp is a new variable.
    try { // Firefox, Opera 8.0+, Safari, IE7+
      xmlHttp = new XMLHttpRequest(); // xmlHttp is now a XMLHttpRequest.
    } catch (e) { // Internet Explorer
      try {
	xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
      } catch (e) {
	xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    }
  xmlHttp.onreadystatechange = function() {
    if (xmlHttp.readyState == 4)
      try {
	if (xmlHttp.status == 200) {
	  document.getElementById(divid).innerHTML = xmlHttp.responseText;
	}
      } catch (e) {
	document.getElementById(divid).innerHTML = "Error on Ajax return call : " + e.description;
      }
    }
  xmlHttp.open("get",url); // .open(RequestType, Source);
  xmlHttp.send(null); // Since there is no supplied form, null takes its place as a new form.
}

