function MTMDisplayItem(item, last) {  var i, img, more;  var MTMfrm = "parent.frames['code']";  var MTMref = '.menu.items[' + MTMIndices[0] + ']';    if(item.submenu) {    var MTMouseOverText;    var MTMClickCmd;    var MTMDblClickCmd = false;    if(MTMLevel > 0) {      for(i = 1; i <= MTMLevel; i++) {        MTMref += ".submenu.items[" + MTMIndices[i] + "]";      }    }    if(!MTMEmulateWE && !item.expanded && (item.url != "")) {      MTMClickCmd = "return " + MTMfrm + ".MTMSubAction(" + MTMfrm + MTMref + ",true);";    } else {      MTMClickCmd = "return " + MTMfrm + ".MTMSubAction(" + MTMfrm + MTMref + ",false);";    }    if(item.url == "") {      MTMouseOverText = (item.text.indexOf("'") != -1) ? MTMEscapeQuotes(item.text) : item.text;    } else {      MTMouseOverText = "Expand/Collapse";    }  }  MTMOutputString = '<tr valign="top"><td nowrap>';  if(MTMLevel > 0) {    for (i = 0; i < MTMLevel; i++) {      MTMOutputString += (MTMBar[i]) ? MTMakeImage("menu_bar.gif") : MTMakeImage("menu_pixel.gif");	}  }  more = false;  if(item.submenu) {    if(MTMSubsGetPlus || MTMEmulateWE) {      more = true;    } else {      for (i = 0; i < item.submenu.items.length; i++) {        if (item.submenu.items[i].submenu) {          more = true;        }      }    }  }  if(!more) {    img = (last) ? "menu_corner.gif" : "menu_tee.gif";  } else {    if(item.expanded) {      img = (last) ? "menu_corner_minus.gif" : "menu_tee_minus.gif";    } else {      img = (last) ? "menu_corner_plus.gif" : "menu_tee_plus.gif";    }    if(item.url == "" || item.expanded || MTMEmulateWE) {      MTMOutputString += MTMakeVoid(item, MTMClickCmd, MTMouseOverText);    } else {      MTMOutputString += MTMakeLink(item, true)  + ' onclick="' + MTMClickCmd + '">';    }  }  MTMOutputString += MTMakeImage(img);/////////////////////////////////////////var MTMCheckRef = '.menu.items[' + MTMIndices[0] + ']';  if(MTMLevel > 0) {  for(i = 1; i <= MTMLevel; i++) {    MTMCheckRef += ".submenu.items[" + MTMIndices[i] + "]";   }  } MTMOutputString += MTMakeVoid(item, "return " + MTMfrm + ".ToggleSelected(" + MTMfrm + MTMCheckRef + ",false);", "Checked Status") ;var checkedImage = item.selected ? "checked.gif" : "uchecked.gif";if (!item.selected){     checkedImage = item.childSelected ? "gchecked.gif" : "uchecked.gif";}MTMOutputString += MTMakeImage(checkedImage);MTMOutputString += '</a>';/////////////////////////////////////////////////  if(item.submenu) {    if(MTMEmulateWE && item.url != "") 	{      MTMOutputString += '</a>' + MTMakeLink(item, false) + '>';	}    img = (item.expanded) ? "menu_folder_open.gif" : "menu_folder_closed.gif";    if(!more) {      if(item.url == "" || item.expanded) {        MTMOutputString += MTMakeVoid(item, MTMClickCmd, MTMouseOverText);      } else {        MTMOutputString += MTMakeLink(item, true) + ' onclick="' + MTMClickCmd + '">';      }    }    MTMOutputString += MTMakeImage(img);  } else {    MTMOutputString += MTMakeLink(item, true) + '>';    img = (item.icon != "") ? item.icon : MTMFetchIcon(item.url);    MTMOutputString += MTMakeImage(img);  }  if(item.submenu && (item.url != "") && (item.expanded && !MTMEmulateWE)) {    MTMOutputString += '</a>' + MTMakeLink(item, false) + '>';  }  if(MTMNN3 && !MTMLinkedSS) {    var stringColor;    if(item.submenu && (item.url == "") && (item.number == MTMClickedItem)) {      stringColor = (item.expanded) ? MTMSubExpandColor : MTMSubClosedColor;    } else if(MTMTrackedItem && MTMTrackedItem == item.number) {      stringColor = MTMTrackColor;    } else {      stringColor = MTMLinkColor;    }    MTMOutputString += '<font color="' + stringColor + '" size="' + MTMenuFontSize + '" face="' + MTMenuFont + '">';  }  MTMOutputString += '&nbsp;' + item.text + ((MTMNN3 && !MTMLinkedSS) ? '</font>' : '') + '</a>' ;  MTMDoc.writeln(MTMOutputString + '</td></tr>');}
5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5872/3703c3c05f398a63e55992f7687ef65273b26d6a/regress-111557.js/clean/js/tests/js1_5/Regress/regress-111557.js