add: if (radiogroup.value == "") radiogroup.value = "0"; 
context: function DoEnabling(){  var i;  var ftp = document.getElementById("FTPproxyname");  var ftpPort = document.getElementById("FTPportno");  var gopher = document.getElementById("Gopherproxyname");  var gopherPort = document.getElementById("Gopherportno");  var http = document.getElementById("HTTPproxyname");  var httpPort = document.getElementById("HTTPportno");  var socks = document.getElementById("SOCKShostname");  var socksPort = document.getElementById("SOCKSportno");  var socksVersion = document.getElementById("socksv");  var socksVersion4 = document.getElementById("SOCKSVersion4");  var socksVersion5 = document.getElementById("SOCKSVersion5");  var ssl = document.getElementById("SSLproxyname");  var sslPort = document.getElementById("SSLportno");  var noProxy = document.getElementById("NoProxyname");  var autoURL = document.getElementById("autoproxyurl");  var shareAllProxies = document.getElementById("shareAllProxies");  // convenience arrays  var manual = [ftp, ftpPort, gopher, gopherPort, http, httpPort, socks, socksPort, socksVersion, socksVersion4, socksVersion5, ssl, sslPort, noProxy, shareAllProxies];  var manual2 = [http, httpPort, noProxy, shareAllProxies];  var auto = [autoURL];  // radio buttons  var radiogroup = document.getElementById("ProxyType");  switch ( radiogroup.value ) {    case "0":    case "4":      for (i = 0; i < manual.length; i++)        manual[i].setAttribute( "disabled", "true" );      for (i = 0; i < auto.length; i++)        auto[i].setAttribute( "disabled", "true" );      break;    case "1":      for (i = 0; i < auto.length; i++)        auto[i].setAttribute( "disabled", "true" );      if (!radiogroup.disabled && !shareAllProxies.checked) {        for (i = 0; i < manual.length; i++) {           manual[i].removeAttribute( "disabled" );        }      } else {        for (i = 0; i < manual.length; i++)          manual[i].setAttribute("disabled", "true");        for (i = 0; i < manual2.length; i++) {          manual2[i].removeAttribute( "disabled" );        }      }      break;    case "2":    default:      for (i = 0; i < manual.length; i++)        manual[i].setAttribute("disabled", "true");      if (!radiogroup.disabled)        for (i = 0; i < auto.length; i++)          auto[i].removeAttribute("disabled");      break;  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/bac2206cbe46c2163023abff9b6c1fe72fe3704e/cckwizard.js/buggy/extensions/cck/browser/resources/content/cckwizard/cckwizard.js