function createFieldUI(node){ 
function createFieldUI(node, elementIndex){ 
function createFieldUI(node){    //     var uid = Math.round(Math.random() * 100000000000);    dump("creating field ui\n");    var root = document.createElement("groupbox");    root.setAttribute("flex", 0);        var caption = document.createElement("caption");        if (node.name){        caption.setAttribute("label", node.name);    }    else if(node.id){        caption.setAttribute("label", node.id);    }        var hbox = document.createElement("hbox");    dump("creating field ui...\n");    var checkbox = document.createElement("checkbox");    checkbox.className = "nolabel";        var menulist = document.createElement("menulist");    menulist.setAttribute("editable", true);    dump("creating field ui.......\n");    var menupopup = document.createElement("menupopup");        var firstMenuItem = document.createElement("menuitem");    if (node.value && node.value.length){        firstMenuItem.setAttribute("label", node.value);    }    else {        firstMenuItem.setAttribute("label",            "Change this to the value you want tested");    }    menupopup.appendChild(firstMenuItem);        dump("creating field ui............................\n");    var attackStringContainer = getAttackStringContainer();    var attacks = attackStringContainer.getStrings();    for (var i = 0; i < attacks.length; i++){        var aMenuItem = document.createElement("menuitem");        aMenuItem.setAttribute('label', attacks[i].string);        aMenuItem.setAttribute('width', '100');        aMenuItem.setAttribute('crop', 'end');        menupopup.appendChild(aMenuItem);        dump("menupopup childnodes length: " + menupopup.childNodes.length+"\n");    }        menulist.appendChild(menupopup);        hbox.appendChild(checkbox);    hbox.appendChild(menulist);        root.appendChild(caption);    root.appendChild(hbox);    dump("creating field ui................................................\n");    return root;}
8270	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/8270/881c4adaedddaa6cb8123274dab1bed4c8c6af16/sqlime_sidebar.js/clean/content/sqlime_sidebar.js