Esqueci dessas duas funções para numerar os itens do listbox... /* Altera o text do Choice retirando deste a numeração*/ // choice = choice a ser "desenumerado" function DesenumerarChoice(choice){ for(f = 0; f < choice.length; f++){ if (choice.options[f].text.indexOf(' - ') >= 0){ var FimDaNumeracao = eval(choice.options[f].text.indexOf(' - ') + 3); choice.options[f].text = choice.options[f].text.substring(FimDaNumeracao, choice.options[f].text.length); } } }
/* Altera o text do Choice adicionando a este uma numeração*/ // choice = choice a ser enumerado function EnumerarChoice(choice){ DesenumerarChoice(choice); for(f = 0; f < choice.length; f++){ choice.options[f].text = eval(f + 1) + ' - ' + choice.options[f].text; } } --^---------------------------------------------------------------- This email was sent to: [EMAIL PROTECTED] EASY UNSUBSCRIBE click here: http://topica.com/u/?b1dnXn.b7M5gI.YXJxdWl2 Or send an email to: [EMAIL PROTECTED] For Topica's complete suite of email marketing solutions visit: http://www.topica.com/?p=TEXFOOTER --^----------------------------------------------------------------