rem: } 
add: } else { var ahref = document.createElementNS("http: 
context: function BX_registerButton(tag,gif,width,height,title,tagoptions,tagoptions2){    if (!tagoptions)    {        tagoptions = 0;    }    if (!tagoptions2)    {        tagoptions2 = new Array();    }    /* if options is inactive, print the inactive button (ending with _p) */    if (tagoptions & optInactive)    {        if (tagoptions & optCallback)        {            BX_printButton(gif+"_p",width,height,false, title);        }    }    /* if options is nonclickable, print the inactive button (ending with _p)    but add it to the buttons-system as well;    */    else if (tagoptions & optNonclickable)    {        BX_buttonbar.appendChild(BX_printButton(gif+"_p",width,height,gif,title));        BX_buttons[tag] = new Array();        BX_buttons[tag]["gif"] = gif;        BX_buttons[tag]["options"] = tagoptions;    }    else if (tagoptions & optCallback)    {        var ahref = document.createElement("a");        ahref.setAttribute("href","javascript:"+tagoptions2);        ahref.appendChild(BX_printButton(gif+"_n",width,height,gif,title));        if (optElementSensitive & tagoptions)        {            BX_buttons[tag] = new Array();            BX_buttons[tag]["gif"] = gif;            BX_buttons[tag]["options"] = tagoptions;        }        BX_buttonbar.appendChild(ahref);    }    /* otherwise it's the default behaviour */    else    {        /* if we want a normal javascript popup, we use a special function... */        if (tagoptions2["popUp"] == true)        {            var ahref = document.createElement("a");            ahref.setAttribute("href","javascript:BX_surroundTagWithPopup('"+tagoptions2["popUpBefore"]+"','"+tagoptions2["popUpAfter"]+"')");        }        else        {            var ahref = document.createElement("a");            if (tagoptions & optSplitNode)            {                ahref.setAttribute("href","javascript:BX_add_tag('"+tag+"',false,true);");            }            else            {                ahref.setAttribute("href","javascript:BX_add_tag('"+tag+"');");            }        }        ahref.appendChild(BX_printButton(gif+"_n",width,height,gif,title));        BX_buttonbar.appendChild(ahref);        //document.write("</a>");        BX_buttons[tag] = new Array();        BX_buttons[tag]["gif"] = gif;        BX_buttons[tag]["options"] = tagoptions;    }}
meta: 791	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js