var request=null;
try {
  request=new XMLHttpRequest();
} catch(trymicrosoft) {
  try {
    request=new ActiveXObject("Msxml2.XMLHTTP");
  } catch(othermicrosoft) {
    try {
      request=new ActiveXObject("Microsoft.XMLHTTP");
    } catch(failed) {
      request=null;
    }
  }
}
function setSessionRows(rows) {
  if(request!=null) {
    request.open("get", "setRows.jsp?rows="+encodeURIComponent(rows), true);
    request.onreadystatechange=updateSessionRows;
    request.send(rows);
  } else {
    if(isNull(frmSubmit)) frmSubmit=$("submitForm");
    if(notNull(frmSubmit)) frmSubmit.rows.value=rows;
  }
}
function updateSessionRows() {
  if(request.readyState==4) {
    if(request.status==200) {
      rowsPerPage=request.responseText;
      if(isNull(frmSubmit)) frmSubmit=$("submitForm");
      if(notNull(frmSubmit)) frmSubmit.rows.value=rowsPerPage;
      var fRows=$("fRows");
      if(notNull(fRows)) fRows.innerHTML=rowsPerPage;
    }
  }
}
