BDG Scenario 3

ActivityList.js

window.onload = window_onLoad;

function window_onLoad() {
   var xml = '../Scripts/viewData.asp?tableName=activity&fieldList=ActivityId,Description&sortBy=Description';
   var id = getParam('id');
   if (id != null) xml = '../Scripts/viewData.asp?procName=lw_getActivityList&groupId=' + id;
   xmldso.XMLDocument.ondataavailable = doLoad;
   xmldso.XMLDocument.load(xml);
}

function formatCell(row) {
   return '<SPAN STYLE="display:none">' + row.cells[0].innerText + '</SPAN>' +
          '<IMG border="0" width="24" height="24" src="../images/eval.gif" align="left" hspace="4">' +
          '<SPAN>' + row.cells[1].innerText + '</SPAN>';
}

function selectCell(elem) {
   var id = elem.firstChild.innerText;
   parent.frames("RIGHTPANE").window.load(id);
}