document.choisir[1].checked = "true"
var nombredecartes = "100"
var vientde = null
var numero = new Object()

numero[0] = new Object()
numero[0].caractere =  null
numero[0].francais = null
numero[0].francais2 = null
numero[0].pinyin = null
numero[0].lecon = null
numero[0].grammaire = null

numero[1] = new Object()
numero[1].caractere = "../testhanzi/hanzi_gif/de5a.gif"
numero[1].francais = "(de) particule structurale"
numero[1].francais2 = " "
numero[1].pinyin = "de5 di4 di2"
numero[1].lecon = "1"
numero[1].grammaire = "particule structurale"

numero[2] = new Object()
numero[2].caractere = "../testhanzi/hanzi_gif/yi1.gif"
numero[2].francais = "un"
numero[2].francais2 = " "
numero[2].pinyin = "yi1 yi2 yi4"
numero[2].lecon = "1"
numero[2].grammaire = "adjectif numéral"

numero[3] = new Object()
numero[3].caractere = "../testhanzi/hanzi_gif/shi4a.gif"
numero[3].francais = "être"
numero[3].francais2 = "juste, vrai; oui, d'accord "
numero[3].pinyin = "shi4"
numero[3].lecon = "1"
numero[3].grammaire = "verbe; adj.; adv."

numero[4] = new Object()
numero[4].caractere = "../testhanzi/hanzi_gif/bu4a.gif"
numero[4].francais = "ne ... pas"
numero[4].francais2 = "pas, non "
numero[4].pinyin = "bu4 bu2"
numero[4].lecon = "1"
numero[4].grammaire = "adverbe"

numero[5] = new Object()
numero[5].caractere = "../testhanzi/hanzi_gif/le5.gif"
numero[5].francais = "(le) particule grammaticale"
numero[5].francais2 = "finir, achever"
numero[5].pinyin = "le5 liao3"
numero[5].lecon = "1"
numero[5].grammaire = "particule grammaticale; verbe"

numero[6] = new Object()
numero[6].caractere = "../testhanzi/hanzi_gif/ren2.gif"
numero[6].francais = "personne "
numero[6].francais2 = "gens "
numero[6].pinyin = "ren2"
numero[6].lecon = "1"
numero[6].grammaire = "nom"

numero[7] = new Object()
numero[7].caractere = "../testhanzi/hanzi_gif/zai4.gif"
numero[7].francais = "à, dans"
numero[7].francais2 = "être, se trouver"
numero[7].pinyin = "zai4"
numero[7].lecon = "1"
numero[7].grammaire = "prép.; verbe"

numero[8] = new Object()
numero[8].caractere = "../testhanzi/hanzi_gif/wo3.gif"
numero[8].francais = "je"
numero[8].francais2 ="me, moi"
numero[8].pinyin = "wo3"
numero[8].lecon = "1"
numero[8].grammaire = "pronom"

numero[9] = new Object()
numero[9].caractere = "../testhanzi/hanzi_gif/you3.gif"
numero[9].francais = "avoir, posséder"
numero[9].francais2 = "il y a, être, exister "
numero[9].pinyin = "you3"
numero[9].lecon = "1"
numero[9].grammaire = "verbe"

numero[10] = new Object()
numero[10].caractere = "../testhanzi/hanzi_gif/zhong1.gif"
numero[10].francais = "milieu, centre"
numero[10].francais2 = "à, en, parmi"
numero[10].pinyin = "zhong1"
numero[10].lecon = "1"
numero[10].grammaire = "nom; prép."

numero[11] = new Object()
numero[11].caractere = "../testhanzi/hanzi_gif/zhe4.gif"
numero[11].francais = "ce, cela, ceci"
numero[11].francais2 = "maintenant, tout de suite "
numero[11].pinyin = "zhe4"
numero[11].lecon = "1"
numero[11].grammaire = "pronom; adv."

numero[12] = new Object()
numero[12].caractere = "../testhanzi/hanzi_gif/da4.gif"
numero[12].francais = "grand, large"
numero[12].francais2 = "haut, gros "
numero[12].pinyin = "da4 dai4"
numero[12].lecon = "1"
numero[12].grammaire = "adjectif"

numero[13] = new Object()
numero[13].caractere = "../testhanzi/hanzi_gif/guo2.gif"
numero[13].francais = "pays; État"
numero[13].francais2 = "nation"
numero[13].pinyin = "guo2"
numero[13].lecon = "1"
numero[13].grammaire = "nom"

numero[14] = new Object()
numero[14].caractere = "../testhanzi/hanzi_gif/shang4.gif"
numero[14].francais = "supérieur, haut"
numero[14].francais2 = "dernier, précédent"
numero[14].pinyin = "shang4 shang3"
numero[14].lecon = "1"
numero[14].grammaire = "adjectif"

numero[15] = new Object()
numero[15].caractere = "../testhanzi/hanzi_gif/ge4a.gif"
numero[15].francais = "spécificatif général"
numero[15].francais2 = " "
numero[15].pinyin = "ge4"
numero[15].lecon = "1"
numero[15].grammaire = "spéc."

numero[16] = new Object()
numero[16].caractere = "../testhanzi/hanzi_gif/lai2.gif"
numero[16].francais = "venir"
numero[16].francais2 = ""
numero[16].pinyin = "lai2"
numero[16].lecon = "1"
numero[16].grammaire = "verbe"

numero[17] = new Object()
numero[17].caractere = "../testhanzi/hanzi_gif/ta1a.gif"
numero[17].francais = "il, lui"
numero[17].francais2 = ""
numero[17].pinyin = "ta1"
numero[17].lecon = "1"
numero[17].grammaire = "pronom"

numero[18] = new Object()
numero[18].caractere = "../testhanzi/hanzi_gif/wei4a.gif"
numero[18].francais = "à, pour"
numero[18].francais2 = "en vue de, afin de"
numero[18].pinyin = "wei4"
numero[18].lecon = "1"
numero[18].grammaire = "préposition"

numero[19] = new Object()
numero[19].caractere = "../testhanzi/hanzi_gif/dao4a.gif"
numero[19].francais = "arriver, parvenir, atteindre"
numero[19].francais2 = "aller à, partir pour"
numero[19].pinyin = "dao4"
numero[19].lecon = "1"
numero[19].grammaire = "verbe"

numero[20] = new Object()
numero[20].caractere = "../testhanzi/hanzi_gif/di4a.gif"
numero[20].francais = "terre"
numero[20].francais2 = "champ, sol"
numero[20].pinyin = "di4"
numero[20].lecon = "1"
numero[20].grammaire = "nom"

numero[21] = new Object()
numero[21].caractere = "../testhanzi/hanzi_gif/he2.gif"
numero[21].francais = "et, avec"
numero[21].francais2 = " "
numero[21].pinyin = "he2"
numero[21].lecon = "2"
numero[21].grammaire = "conjonction, préposition"

numero[22] = new Object()
numero[22].caractere = "../testhanzi/hanzi_gif/shi2a.gif"
numero[22].francais = "temps"
numero[22].francais2 = " "
numero[22].pinyin = "shi2"
numero[22].lecon = "2"
numero[22].grammaire = "nom"

numero[23] = new Object()
numero[23].caractere = "../testhanzi/hanzi_gif/men5.gif"
numero[23].francais = "suffixe (pluriel)"
numero[23].francais2 = " "
numero[23].pinyin = "men5"
numero[23].lecon = "2"
numero[23].grammaire = "suffixe"

numero[24] = new Object()
numero[24].caractere = "../testhanzi/hanzi_gif/nian2.gif"
numero[24].francais = "année"
numero[24].francais2 = " "
numero[24].pinyin = "nian2"
numero[24].lecon = "2"
numero[24].grammaire = "nom"

numero[25] = new Object()
numero[25].caractere = "../testhanzi/hanzi_gif/sheng1.gif"
numero[25].francais = "donner naissance "
numero[25].francais2 = " "
numero[25].pinyin = "sheng1"
numero[25].lecon = "2"
numero[25].grammaire = "verbe"

numero[26] = new Object()
numero[26].caractere = "../testhanzi/hanzi_gif/hui4.gif"
numero[26].francais = "savoir, pouvoir"
numero[26].francais2 = " "
numero[26].pinyin = "hui4"
numero[26].lecon = "2"
numero[26].grammaire = "verbe"

numero[27] = new Object()
numero[27].caractere = "../testhanzi/hanzi_gif/chu1.gif"
numero[27].francais2 = " "
numero[27].francais = "sortir"
numero[27].pinyin = "chu1"
numero[27].lecon = "2"
numero[27].grammaire = "verbe"

numero[28] = new Object()
numero[28].caractere = "../testhanzi/hanzi_gif/jiu4.gif"
numero[28].francais = "tout de suite"
numero[28].pinyin = "jiu4"
numero[28].francais2 = " "
numero[28].lecon = "2"
numero[28].grammaire = "adverbe"

numero[29] = new Object()
numero[29].caractere = "../testhanzi/hanzi_gif/zi3.gif"
numero[29].francais = "enfant"
numero[29].francais2 = " "
numero[29].pinyin = "zi3"
numero[29].lecon = "2"
numero[29].grammaire = "nom"

numero[30] = new Object()
numero[30].caractere = "../testhanzi/hanzi_gif/yao4.gif"
numero[30].francais = "vouloir"
numero[30].francais2 = " "
numero[30].pinyin = "yao4"
numero[30].lecon = "2"
numero[30].grammaire = "verbe"

numero[31] = new Object()
numero[31].caractere = "../testhanzi/hanzi_gif/ye3.gif"
numero[31].francais = "aussi"
numero[31].francais2 = " "
numero[31].pinyin = "ye3"
numero[31].lecon = "2"
numero[31].grammaire = "adverbe"

numero[32] = new Object()
numero[32].caractere = "../testhanzi/hanzi_gif/yi3a.gif"
numero[32].francais = "avec, prendre"
numero[32].francais2 = " "
numero[32].pinyin = "yi3"
numero[32].lecon = "2"
numero[32].grammaire = "adv.; verbe"

numero[33] = new Object()
numero[33].caractere = "../testhanzi/hanzi_gif/shuo1.gif"
numero[33].francais = "parler"
numero[33].francais2 = " "
numero[33].pinyin = "shuo1"
numero[33].lecon = "2"
numero[33].grammaire = "verbe"

numero[34] = new Object()
numero[34].caractere = "../testhanzi/hanzi_gif/xue2.gif"
numero[34].francais = "étudier"
numero[34].francais2 = " "
numero[34].pinyin = "xue2"
numero[34].lecon = "2"
numero[34].grammaire = "verbe"

numero[35] = new Object()
numero[35].caractere = "../testhanzi/hanzi_gif/de5b.gif"
numero[35].francais = "particule grammaticale"
numero[35].francais2 = " "
numero[35].pinyin = "de5"
numero[35].lecon = "2"
numero[35].grammaire = "particule grammaticale"

numero[36] = new Object()
numero[36].caractere = "../testhanzi/hanzi_gif/dui4.gif"
numero[36].francais = "oui, correct"
numero[36].pinyin = "dui4"
numero[36].francais2 = " "
numero[36].lecon = "2"
numero[36].grammaire = "adjectif"

numero[37] = new Object()
numero[37].caractere = "../testhanzi/hanzi_gif/xia4.gif"
numero[37].francais = "terminer"
numero[37].francais2 = " "
numero[37].pinyin = "xia4"
numero[37].lecon = "2"
numero[37].grammaire = "verbe"

numero[38] = new Object()
numero[38].caractere = "../testhanzi/hanzi_gif/na4.gif"
numero[38].francais = "ce, là"
numero[38].francais2 = " "
numero[38].pinyin = "na4"
numero[38].lecon = "2"
numero[38].grammaire = "prép."

numero[39] = new Object()
numero[39].caractere = "../testhanzi/hanzi_gif/ke3.gif"
numero[39].francais = "approuver"
numero[39].francais2 = " "
numero[39].pinyin = "ke3"
numero[39].lecon = "2"
numero[39].grammaire = "verbe"

numero[40] = new Object()
numero[40].caractere = "../testhanzi/hanzi_gif/guo4.gif"
numero[40].francais = "vivre, passer, traverser"
numero[40].francais2 = " "
numero[40].pinyin = "guo4"
numero[40].lecon = "2"
numero[40].grammaire = "verbe"

numero[41] = new Object()
numero[41].caractere = "../testhanzi/hanzi_gif/yu2.gif"
numero[41].francais = "à, en, dans"
numero[41].francais2 = " "
numero[41].pinyin = "yu2"
numero[41].lecon = "3"
numero[41].grammaire = "prép."

numero[42] = new Object() 
numero[42].caractere = "../testhanzi/hanzi_gif/zhi1a.gif"
numero[42].francais = "particule"
numero[42].francais2 = "il"
numero[42].pinyin = "zhi1"
numero[42].lecon = "3"
numero[42].grammaire = "part.; pronom"

numero[43] = new Object() 
numero[43].caractere = "../testhanzi/hanzi_gif/hou4.gif"
numero[43].francais = "derrière, en arrière"
numero[43].francais2 = "après"
numero[43].pinyin = "hou4"
numero[43].lecon = "3"
numero[43].grammaire = "prép."

numero[44] = new Object() 
numero[44].caractere = "../testhanzi/hanzi_gif/zhe5.gif"
numero[44].francais = "particule gram."
numero[44].francais2 = " "
numero[44].pinyin = "zhe5 zhao2 zhuo2 zhao1 "
numero[44].lecon = "3"
numero[44].grammaire = "particule gram."

numero[45] = new Object() 
numero[45].caractere = "../testhanzi/hanzi_gif/zhu3.gif"
numero[45].francais = "hôte, maître"
numero[45].francais2 = " "
numero[45].pinyin = "zhu3"
numero[45].lecon = "3"
numero[45].grammaire = "nom"

numero[46] = new Object() 
numero[46].caractere = "../testhanzi/hanzi_gif/neng2.gif"
numero[46].francais = "pouvoir"
numero[46].francais2 = " "
numero[46].pinyin = "neng2"
numero[46].lecon = "3"
numero[46].grammaire = "verbe"

numero[47] = new Object() 
numero[47].caractere = "../testhanzi/hanzi_gif/li3a.gif"
numero[47].francais = "village"
numero[47].francais2 = "dans"
numero[47].pinyin = "li3"
numero[47].lecon = "3"
numero[47].grammaire = "nom; prép."

numero[48] = new Object() 
numero[48].caractere = "../testhanzi/hanzi_gif/duo1.gif"
numero[48].francais = "nombreux"
numero[48].francais2 = "beaucoup, plusieurs"
numero[48].pinyin = "duo1"
numero[48].lecon = "3"
numero[48].grammaire = "adj,; adv."

numero[49] = new Object() 
numero[49].caractere = "../testhanzi/hanzi_gif/xiao3.gif"
numero[49].francais = "petit"
numero[49].francais2 = " "
numero[49].pinyin = "xiao3"
numero[49].lecon = "3"
numero[49].grammaire = "adj."

numero[50] = new Object() 
numero[50].caractere = "../testhanzi/hanzi_gif/er2.gif"
numero[50].francais = "et, et encore"
numero[50].francais2 = "de plus "
numero[50].pinyin = "er2"
numero[50].lecon = "3"
numero[50].grammaire = "conj."

numero[51] = new Object() 
numero[51].caractere = "../testhanzi/hanzi_gif/ni3.gif"
numero[51].francais = "tu, te, toi"
numero[51].francais2 = " "
numero[51].pinyin = "ni3"
numero[51].lecon = "3"
numero[51].grammaire = "pronom"

numero[52] = new Object() 
numero[52].caractere = "../testhanzi/hanzi_gif/tian1.gif"
numero[52].francais = "jour"
numero[52].francais2 = "ciel, paradis"
numero[52].pinyin = "tian1"
numero[52].lecon = "3"
numero[52].grammaire = "nom"

numero[53] = new Object() 
numero[53].caractere = "../testhanzi/hanzi_gif/jia1a.gif"
numero[53].francais = "maison, foyer"
numero[53].francais2 = "famille"
numero[53].pinyin = "jia1"
numero[53].lecon = "3"
numero[53].grammaire = "nom"

numero[54] = new Object() 
numero[54].caractere = "../testhanzi/hanzi_gif/qu4.gif"
numero[54].francais = "aller"
numero[54].francais2 = " "
numero[54].pinyin = "qu4"
numero[54].lecon = "3"
numero[54].grammaire = "verbe"

numero[55] = new Object() 
numero[55].caractere = "../testhanzi/hanzi_gif/gong1a.gif"
numero[55].francais = "travail"
numero[55].francais2 = "industrie"
numero[55].pinyin = "gong1"
numero[55].lecon = "3"
numero[55].grammaire = "nom"

numero[56] = new Object() 
numero[56].caractere = "../testhanzi/hanzi_gif/shi2b.gif"
numero[56].francais = "dix, 10"
numero[56].francais2 = " "
numero[56].pinyin = "shi2"
numero[56].lecon = "3"
numero[56].grammaire = "nom"

numero[57] = new Object() 
numero[57].caractere = "../testhanzi/hanzi_gif/yong4.gif"
numero[57].francais = "utiliser"
numero[57].francais2 = " "
numero[57].pinyin = "yong4"
numero[57].lecon = "3"
numero[57].grammaire = "verbe"

numero[58] = new Object() 
numero[58].caractere = "../testhanzi/hanzi_gif/zuo4.gif"
numero[58].francais = "faire"
numero[58].francais2 = " "
numero[58].pinyin = "zuo4"
numero[58].lecon = "3"
numero[58].grammaire = "verbe"

numero[59] = new Object() 
numero[59].caractere = "../testhanzi/hanzi_gif/fen1.gif"
numero[59].francais = "minute"
numero[59].francais2 = "diviser; fractionner"
numero[59].pinyin = "fen1"
numero[59].lecon = "3"
numero[59].grammaire = "nom; verbe"

numero[60] = new Object() 
numero[60].caractere = "../testhanzi/hanzi_gif/fa1.gif"
numero[60].francais = "émettre"
numero[60].francais2 = " "
numero[60].pinyin = "fa1"
numero[60].lecon = "3"
numero[60].grammaire = "verbe"

numero[61] = new Object() 
numero[61].caractere = "../testhanzi/hanzi_gif/zi4.gif"
numero[61].francais = "soi"
numero[61].francais2 = " "
numero[61].pinyin = "zi4"
numero[61].lecon = "4"
numero[61].grammaire = "pronom"

numero[62] = new Object() 
numero[62].caractere = "../testhanzi/hanzi_gif/cheng2.gif"
numero[62].francais = "finir, achever"
numero[62].francais2 = "devenir"
numero[62].pinyin = "cheng2"
numero[62].lecon = "4"
numero[62].grammaire = "verbe"

numero[63] = new Object() 
numero[63].caractere = "../testhanzi/hanzi_gif/dou1.gif"
numero[63].francais = "tout"
numero[63].francais2 = " "
numero[63].pinyin = "dou1"
numero[63].lecon = "4"
numero[63].grammaire = "adv."

numero[64] = new Object() 
numero[64].caractere = "../testhanzi/hanzi_gif/fang1.gif"
numero[64].francais = "carré, côté"
numero[64].francais2 = " "
numero[64].pinyin = "fang1"
numero[64].lecon = "4"
numero[64].grammaire = "nom"

numero[65] = new Object() 
numero[65].caractere = "../testhanzi/hanzi_gif/min2.gif"
numero[65].francais = "peuple"
numero[65].francais2 = "humanité, masse "
numero[65].pinyin = "min2"
numero[65].lecon = "4"
numero[65].grammaire = "nom"

numero[66] = new Object() 
numero[66].caractere = "../testhanzi/hanzi_gif/hao3.gif"
numero[66].francais = "bon"
numero[66].francais2 = " "
numero[66].pinyin = "hao3"
numero[66].lecon = "4"
numero[66].grammaire = "adj."

numero[67] = new Object() 
numero[67].caractere = "../testhanzi/hanzi_gif/ri4.gif"
numero[67].francais = "jour, date"
numero[67].francais2 = "soleil"
numero[67].pinyin = "ri4"
numero[67].lecon = "4"
numero[67].grammaire = "nom"

numero[68] = new Object() 
numero[68].caractere = "../testhanzi/hanzi_gif/hai2.gif"
numero[68].francais = "encore"
numero[68].francais2 = " "
numero[68].pinyin = "hai2"
numero[68].lecon = "4"
numero[68].grammaire = "adv."

numero[69] = new Object() 
numero[69].caractere = "../testhanzi/hanzi_gif/jing1.gif"
numero[69].francais = "par"
numero[69].francais2 = "via"
numero[69].pinyin = "jing1"
numero[69].lecon = "4"
numero[69].grammaire = "prép."

numero[70] = new Object() 
numero[70].caractere = "../testhanzi/hanzi_gif/mei2.gif"
numero[70].francais = "ne ... pas"
numero[70].francais2 = "non"
numero[70].pinyin = "mei2"
numero[70].lecon = "4"
numero[70].grammaire = "adv."

numero[71] = new Object() 
numero[71].caractere = "../testhanzi/hanzi_gif/tong2.gif"
numero[71].francais = "même"
numero[71].francais2 = "pareil"
numero[71].pinyin = "tong2"
numero[71].lecon = "4"
numero[71].grammaire = "adj."

numero[72] = new Object() 
numero[72].caractere = "../testhanzi/hanzi_gif/ru2.gif"
numero[72].francais = "conformément à"
numero[72].francais2 = " "
numero[72].pinyin = "ru2"
numero[72].lecon = "4"
numero[72].grammaire = "prép."

numero[73] = new Object() 
numero[73].caractere = "../testhanzi/hanzi_gif/ta1b.gif"
numero[73].francais = "elle, sa"
numero[73].francais2 = " "
numero[73].pinyin = "ta1"
numero[73].lecon = "4"
numero[73].grammaire = "pronom"

numero[74] = new Object() 
numero[74].caractere = "../testhanzi/hanzi_gif/me5.gif"
numero[74].francais = "suffixe"
numero[74].francais2 = " "
numero[74].pinyin = "me5"
numero[74].lecon = "4"
numero[74].grammaire = "suffixe"

numero[75] = new Object() 
numero[75].caractere = "../testhanzi/hanzi_gif/qi3.gif"
numero[75].francais = "se lever"
numero[75].francais2 = " "
numero[75].pinyin = "qi3"
numero[75].lecon = "4"
numero[75].grammaire = "verbe"

numero[76] = new Object() 
numero[76].caractere = "../testhanzi/hanzi_gif/ben3.gif"
numero[76].francais = "spéc.: livre"
numero[76].francais2 = " "
numero[76].pinyin = "ben3"
numero[76].lecon = "4"
numero[76].grammaire = "spécificatif"

numero[77] = new Object() 
numero[77].caractere = "../testhanzi/hanzi_gif/xing2.gif"
numero[77].francais = "marcher"
numero[77].francais2 = " "
numero[77].pinyin = "xing2"
numero[77].lecon = "4"
numero[77].grammaire = "verbe"

numero[78] = new Object() 
numero[78].caractere = "../testhanzi/hanzi_gif/xin1a.gif"
numero[78].francais = "coeur"
numero[78].francais2 = " "
numero[78].pinyin = "xin1"
numero[78].lecon = "4"
numero[78].grammaire = "nom"

numero[79] = new Object() 
numero[79].caractere = "../testhanzi/hanzi_gif/suo3.gif"
numero[79].francais = "place"
numero[79].francais2 = " "
numero[79].pinyin = "suo3"
numero[79].lecon = "4"
numero[79].grammaire = "nom"

numero[80] = new Object() 
numero[80].caractere = "../testhanzi/hanzi_gif/ran2.gif"
numero[80].francais = "juste"
numero[80].francais2 = "correct "
numero[80].pinyin = "ran2"
numero[80].lecon = "4"
numero[80].grammaire = "adj."

numero[81] = new Object() 
numero[81].caractere = "../testhanzi/hanzi_gif/shi4b.gif"
numero[81].francais = "affaire"
numero[81].francais2 = "chose "
numero[81].pinyin = "shi4"
numero[81].lecon = "5"
numero[81].grammaire = "nom"

numero[82] = new Object() 
numero[82].caractere = "../testhanzi/hanzi_gif/xian4.gif"
numero[82].francais = "présent"
numero[82].francais2 = "actuel "
numero[82].pinyin = "xian4"
numero[82].lecon = "5"
numero[82].grammaire = "adj."

numero[83] = new Object() 
numero[83].caractere = "../testhanzi/hanzi_gif/san1.gif"
numero[83].francais = "trois"
numero[83].francais2 = "3 "
numero[83].pinyin = "san1"
numero[83].lecon = "5"
numero[83].grammaire = "nombre"

numero[84] = new Object() 
numero[84].caractere = "../testhanzi/hanzi_gif/jia1b.gif"
numero[84].francais = "ajouter"
numero[84].francais2 = "augmenter "
numero[84].pinyin = "jia1"
numero[84].lecon = "5"
numero[84].grammaire = "verbe"

numero[85] = new Object() 
numero[85].caractere = "../testhanzi/hanzi_gif/xiang3.gif"
numero[85].francais = "penser"
numero[85].francais2 = "sentir, condidérer "
numero[85].pinyin = "xiang3"
numero[85].lecon = "5"
numero[85].grammaire = "verbe"

numero[86] = new Object() 
numero[86].caractere = "../testhanzi/hanzi_gif/mian4.gif"
numero[86].francais = "face, surface"
numero[86].francais2 = "farine "
numero[86].pinyin = "mian4"
numero[86].lecon = "5"
numero[86].grammaire = "nom"

numero[87] = new Object() 
numero[87].caractere = "../testhanzi/hanzi_gif/kai1.gif"
numero[87].francais = "ouvrir"
numero[87].francais2 = "débuter "
numero[87].pinyin = "kai1"
numero[87].lecon = "5"
numero[87].grammaire = "verbe"

numero[88] = new Object() 
numero[88].caractere = "../testhanzi/hanzi_gif/dian4.gif"
numero[88].francais = "électricité"
numero[88].francais2 = "télégramme "
numero[88].pinyin = "dian4"
numero[88].lecon = "5"
numero[88].grammaire = "nom"

numero[89] = new Object() 
numero[89].caractere = "../testhanzi/hanzi_gif/zhong3.gif"
numero[89].francais = "spécificatif: sorte"
numero[89].francais2 = "espèce, genre "
numero[89].pinyin = "zhong3"
numero[89].lecon = "5"
numero[89].grammaire = "spéc."

numero[90] = new Object() 
numero[90].caractere = "../testhanzi/hanzi_gif/qian2.gif"
numero[90].francais = "devant"
numero[90].francais2 = "avant "
numero[90].pinyin = "qian2"
numero[90].lecon = "5"
numero[90].grammaire = "adv"

numero[91] = new Object() 
numero[91].caractere = "../testhanzi/hanzi_gif/dang1.gif"
numero[91].francais = "devenir"
numero[91].francais2 = " "
numero[91].pinyin = "dang1"
numero[91].lecon = "5"
numero[91].grammaire = "verbe"

numero[92] = new Object() 
numero[92].caractere = "../testhanzi/hanzi_gif/mei3.gif"
numero[92].francais = "beau"
numero[92].francais2 = "magnifique "
numero[92].pinyin = "mei3"
numero[92].lecon = "5"
numero[92].grammaire = "adj."

numero[93] = new Object() 
numero[93].caractere = "../testhanzi/hanzi_gif/er4.gif"
numero[93].francais = "deux"
numero[93].francais2 = "2 "
numero[93].pinyin = "er4"
numero[93].lecon = "5"
numero[93].grammaire = "nombre"

numero[94] = new Object() 
numero[94].caractere = "../testhanzi/hanzi_gif/wai4.gif"
numero[94].francais = "dehors, extérieur"
numero[94].francais2 = "outre-mer "
numero[94].pinyin = "wai4"
numero[94].lecon = "5"
numero[94].grammaire = "nom"

numero[95] = new Object() 
numero[95].caractere = "../testhanzi/hanzi_gif/dao4b.gif"
numero[95].francais = "route, chemin"
numero[95].francais2 = "voie "
numero[95].pinyin = "doa4"
numero[95].lecon = "5"
numero[95].grammaire = "nom"

numero[96] = new Object() 
numero[96].caractere = "../testhanzi/hanzi_gif/cong2.gif"
numero[96].francais = "par, de"
numero[96].francais2 = "depuis "
numero[96].pinyin = "cong2"
numero[96].lecon = "5"
numero[96].grammaire = "prép."

numero[97] = new Object() 
numero[97].caractere = "../testhanzi/hanzi_gif/dong4.gif"
numero[97].francais = "se mouvoir"
numero[97].francais2 = "agir "
numero[97].pinyin = "dong4"
numero[97].lecon = "5"
numero[97].grammaire = "verbe"

numero[98] = new Object() 
numero[98].caractere = "../testhanzi/hanzi_gif/kan4.gif"
numero[98].francais = "regarder"
numero[98].francais2 = "voir "
numero[98].pinyin = "kan4"
numero[98].lecon = "5"
numero[98].grammaire = "verbe"

numero[99] = new Object() 
numero[99].caractere = "../testhanzi/hanzi_gif/ye4.gif"
numero[99].francais = "métier, affaires"
numero[99].francais2 = "industrie "
numero[99].pinyin = "ye4"
numero[99].lecon = "5"
numero[99].grammaire = "nom"

numero[100] = new Object() 
numero[100].caractere = "../testhanzi/hanzi_gif/gao1.gif"
numero[100].francais = "haut"
numero[100].francais2 = "grand "
numero[100].pinyin = "gao1"
numero[100].lecon = "5"
numero[100].grammaire = "adj"



function randy(hi,lo){
var rand = Math.random()
return (Math.ceil(rand * (hi - lo)) + lo)
}

function cartehanzi(){
var rando = randy(0,100)
var possible = numero[rando]
if (quandoui(possible) == "oui"){
numero[0]=possible
vientde = rando
document.images[0].src = numero[0].caractere 
document.output.pinyin.value = numero[0].pinyin
document.output.francais.value = numero[0].francais
document.output.francais2.value = numero[0].francais2
document.output.grammaire.value = numero[0].grammaire}
else cartehanzi()
}

function caractere(){
var rando = randy(0,100)
var possible = numero[rando]
if (quandoui(possible) == "oui"){
numero[0]=possible
vientde = rando
document.images[0].src = numero[0].caractere
document.output.pinyin.value = ""
document.output.francais.value =""
document.output.francais2.value =""
document.output.grammaire.value =""}
else caractere()
}

function cartepinyin(){
var rando = randy(0,100)
var possible = numero[rando]
if (quandoui(possible) == "oui"){
numero[0]=possible
vientde = rando
document.images[0].src ="vide.gif"
document.output.pinyin.value = numero[0].pinyin
document.output.francais.value =""
document.output.francais2.value =""
document.output.grammaire.value =""}
else cartepinyin()
}

function cartefrancais(){
var rando = randy(0,100)
var possible = numero[rando] 
if (quandoui(possible) == "oui"){
numero[0]=possible
vientde = rando
document.images[0].src ="vide.gif"
document.output.pinyin.value =""
document.output.francais.value = numero[0].francais
document.output.francais2.value = numero[0].francais2
document.output.grammaire.value =""}
else cartefrancais()
}

function montrereponse(){
document.images[0].src = numero[0].caractere
document.output.pinyin.value = numero[0].pinyin
document.output.francais.value = numero[0].francais
document.output.francais2.value = numero[0].francais2
document.output.grammaire.value = numero[0].grammaire
}

function faitrepeter(){
for (var i = 1;i <= 100; i++){numero[i].repete = null}
}

function cachercarte(){
numero[vientde].repete = "no"
}


function quandoui(obj){
var lec = obj.lecon
if (obj == numero[0]){return null}
else
if (obj.repete == "no"){return null}
if (document.choisir[lec].checked) {return "oui"}
else return null
}

cartehanzi()
