6,8d5 < 11c8 < var sentences=["The rain in Spain falls mainly on the plain.", --- > var sentences=[ 16c13 < "When it rains people head for the awnings as they walk along. [People head for the awnings as they walk along when it rains.] [As they walk along people head for the awnings when it rains.]", --- > "When it rains people head for the awnings as they walk along. [People head for the awnings as they walk along when it rains.]", 27c24 < var usual=0; --- > var usual=true; 29,31d25 < var mode=''; < var wbits=[]; < var wwbits=[]; 39,50c33,34 < var tv=tvo.value, altis=false, wast, waso, one=usual, ione; < if (prefix != '' && usual == 0) { < for (ione=1; ione var tv=tvo.value, altis=false, wast, waso; > if (prefix != '' && !usual) { 53,54c37,38 < if ((bits[usual].toLowerCase().trim() + '~').replace('.~',' .').replace('?~',' ?').replace('!~',' !').replace('~','').split(' ')[eval(-1 + eval(tvo.options[tvo.selectedIndex].text))] == tvo.options[tvo.selectedIndex].title.toLowerCase()) { < usual=one; --- > if ((bits[1].toLowerCase().trim() + '~').replace('.~',' .').replace('?~',' ?').replace('!~',' !').replace('~','').split(' ')[eval(-1 + eval(tvo.options[tvo.selectedIndex].text))] == tvo.options[tvo.selectedIndex].title.toLowerCase()) { > usual=false; 80,81c64,65 < if ((bits[usual].toLowerCase().trim() + '~').replace('.~',' .').replace('?~',' ?').replace('!~',' !').replace('~','').split(' ')[eval(-1 + eval(tvo.options[tvo.selectedIndex].text))] == tvo.options[tvo.selectedIndex].title.toLowerCase()) { < usual=one; --- > if ((bits[1].toLowerCase().trim() + '~').replace('.~',' .').replace('?~',' ?').replace('!~',' !').replace('~','').split(' ')[eval(-1 + eval(tvo.options[tvo.selectedIndex].text))] == tvo.options[tvo.selectedIndex].title.toLowerCase()) { > usual=false; 107,109c91,93 < var tablebit='
', wordbitsiid=''; < bits=sentences[choice].replace(/]/g,'[').split('['); < usual=0; --- > var tablebit='
'; > bits=sentences[choice].replace(/]/g,'').split('['); > usual=true; 114,115d97 < wbits=[]; < wwbits=[]; 146,151d127 < wordbitsiid=wordbits[iid]; < if (mode != '') { < wwbits.push(wordbits[iid]); < wordbitsiid=jumbleword(wordbits[iid]); < wbits.push(wordbitsiid); < } 154c130 < thisopt=''; --- > thisopt=''; 159c135 < thisopt+=''; --- > thisopt+=''; 167c143 < thisopt=''; --- > thisopt=''; 172c148 < thisopt+=''; --- > thisopt+=''; 196c172 < selbit=''; --- > selbit=''; 198c174 < selbit=''; --- > selbit=''; 210,258d185 < function depends(objsel) { < var thisone=eval(objsel.id.replace('s','')); < var thiszero=eval(-1 + thisone), newval=objsel.title, anotherzero=thiszero; < var objselvalue=objsel.options[objsel.selectedIndex].text; < for (var iy=0; iy' + objselvalue.toLowerCase() + '<','>' + wwbits[anotherzero].toLowerCase() + '<'); < wbits[anotherzero]=wwbits[anotherzero]; < return; < } < } < } else { < return; < } < pickasentence(); < } < < function jumbleword(whatword) { < var done_list=';', nchoice, outs=''; < for (var niid=0; niidJumbled Sentences --- >

Jumbled Sentences