
function update_comments(){
 if (http.readyState == 4) { 
   page_text = http.responseText;
   document.getElementById('comments_content').innerHTML = page_text;
 } 
}
function get_comments(oeuvrenum,next_or_previous) {
    
  http.open("GET", "/wck_get_comments.php?db_table="+db_table+"&item="+item+"&page="+page, true); 
  http.onreadystatechange = update_comments; 
  http.send(null);

}


function getHTTPObject() {
  var xmlhttp;
  /*@cc_on
  @if (@_jscript_version >= 5)
    try {
      xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
      try {
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (E) {
        xmlhttp = false;
      }
    }
  @else
  xmlhttp = false;
  @end @*/
  if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
    try {
      xmlhttp = new XMLHttpRequest();
    } catch (e) {
      xmlhttp = false;
    }
  }
  return xmlhttp;
}

var http = getHTTPObject();