rem:  /* create the heading */  var title = document.getElementById("walletpreview"); title.setAttribute("title", bundle.GetStringFromName("title")); var heading = document.getElementById("heading"); heading.setAttribute("value", bundle.GetStringFromName("heading")); var fieldHeading = document.getElementById("fieldHeading"); fieldHeading.setAttribute("value", bundle.GetStringFromName("fieldHeading")); var valueHeading = document.getElementById("valueHeading"); valueHeading.setAttribute("value", bundle.GetStringFromName("valueHeading")); 
context: function Startup() {  /* fetch the input */  var list = walletpreview.GetPrefillValue();  var BREAK = list[0];  prefillList = list.split(BREAK);  /* create the heading */  var title = document.getElementById("walletpreview");  title.setAttribute("title", bundle.GetStringFromName("title"));  var heading = document.getElementById("heading");  heading.setAttribute("value", bundle.GetStringFromName("heading"));  var fieldHeading = document.getElementById("fieldHeading");  fieldHeading.setAttribute("value", bundle.GetStringFromName("fieldHeading"));  var valueHeading = document.getElementById("valueHeading");  valueHeading.setAttribute("value", bundle.GetStringFromName("valueHeading"));  var menuPopup;  var count;  /* create the fill-in entries */  for (var i=1; i<prefillList.length-2; i+=3) {    if(prefillList[i] != 0) {      count = prefillList[i];      menuPopup = document.createElement("menupopup");//      menuList.setAttribute("size", Number(count)+1);    }    count--;    var menuItem = document.createElement("menuitem");    if (count == (prefillList[i]-1)) {      menuItem.setAttribute("selected", "true");    }    menuItem.setAttribute("data", prefillList[i+1]);    menuItem.setAttribute("value", prefillList[i+2]);    menuPopup.appendChild(menuItem);    if(count == 0) {      var lastMenuItem = document.createElement("menuitem");      lastMenuItem.setAttribute("data", prefillList[i+1]);      lastMenuItem.setAttribute("value", "<"+doNotPrefill+">");      menuPopup.appendChild(lastMenuItem);      var menuList = document.createElement("menulist");      menuList.setAttribute("id", "x"+(++fieldCount));      menuList.setAttribute("allowevents", "true");      menuList.appendChild(menuPopup);      var textBox = document.createElement("textbox");      textBox.setAttribute("value", prefillList[i+1]);      textBox.setAttribute("readonly", "true");      var row = document.createElement("row");      row.appendChild(textBox);      row.appendChild(menuList);      var rows = document.getElementById("rows");      rows.appendChild(row);    }  }  /* create checkbox label */  var checkBox = document.getElementById("checkbox");  checkBox.setAttribute("value", bypass);  /* initialization OK and Cancel buttons */  doSetOKCancel(Save, Cancel);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/e6fc6df95986f2ecdc1e1d3a0b7d81557a729552/WalletPreview.js/clean/extensions/wallet/walletpreview/WalletPreview.js