rem: gType.selectedItem = gType.mRadioChildren[0]; gChannelIsNick.selectedItem = gChannelIsNick.mRadioChildren[0]; 
add: gType.selectedIndex = 0; gChannelIsNick.selectedIndex = 0; 
context: function Init(){    doSetOKCancel(onOK);        gType = document.getElementById("czURLType");    gServer = document.getElementById("czServer");    gServerNeedPass = document.getElementById("czServerNeedPass");    gServerAlso = document.getElementById("czServerAlso");    gChannel = document.getElementById("czChannel");    gChannelIsNick = document.getElementById("czChannelIsNick");    gChannelNeedKey = document.getElementById("czChannelNeedKey");        if ("arguments" in window && window.arguments[0])        gData = window.arguments[0];        if (! gData)        gData = new Object();    if (!("url" in gData) || !gData.url)        gData.url = "irc:///";        if (gData.url == "irc:" || gData.url == "irc:/" || gData.url == "irc://")    {        gType.selectedItem = gType.mRadioChildren[1];    }    else    {        gType.selectedItem = gType.mRadioChildren[0];        gChannelIsNick.selectedItem = gChannelIsNick.mRadioChildren[0];                // Split it up into server/channel parts...        var params = gData.url.match(/^irc:\/\/(.*)\/([^,]*)(.*)?$/);        gServer.value = params[1];        gChannel.value = params[2];        gServerAlso.checked = (gChannel.value != '');                if (params.length >= 4)        {            var modifiers = params[3].split(/,/);                        for (m in modifiers)            {                if (modifiers[m] == 'needpass')                    gServerNeedPass.checked = true;                                if (modifiers[m] == 'isnick')                    gChannelIsNick.selectedItem = gChannelIsNick.mRadioChildren[1];                                if (modifiers[m] == 'needkey')                    gChannelNeedKey.checked = true;            }        }    }        updateType();        gData.ok = false;}
meta: 3298	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3298/285fcda251ef55df3847fd3e8ff7a850661c99a4/startup-newURL.js/buggy/xul/content/prefpanel/startup-newURL.js