regress-90445.js (16401B)
1 /* -*- tab-width: 2; indent-tabs-mode: nil; js-indent-level: 2 -*- */ 2 /* This Source Code Form is subject to the terms of the Mozilla Public 3 * License, v. 2.0. If a copy of the MPL was not distributed with this 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 5 6 /* 7 * Date: 2001-07-12 8 * 9 * SUMMARY: Regression test for bug 90445 10 * See http://bugzilla.mozilla.org/show_bug.cgi?id=90445 11 * 12 * Just seeing if this script will compile without crashing. 13 */ 14 //----------------------------------------------------------------------------- 15 var BUGNUMBER = 90445; 16 var summary = 'Testing this script will compile without crashing'; 17 18 printBugNumber(BUGNUMBER); 19 printStatus (summary); 20 21 22 // The big function - 23 function compte() { 24 var mois = getValueFromOption(document.formtest.mois); 25 var region = document.formtest.region.options.selectedIndex; 26 var confort = document.formtest.confort.options.selectedIndex; 27 var encadrement = document.formtest.encadrement.options.selectedIndex; 28 var typeVillage = document.formtest.type_village.options.selectedIndex; 29 var budget = document.formtest.budget.value; 30 var sport1 = document.formtest.sport1.options.selectedIndex; 31 var sport2 = document.formtest.sport2.options.selectedIndex; 32 var sport3 = document.formtest.sport3.options.selectedIndex; 33 var activite1 = document.formtest.activite1.options.selectedIndex; 34 var activite2 = document.formtest.activite2.options.selectedIndex; 35 var activite3 = document.formtest.activite3.options.selectedIndex; 36 37 var ret = 0; 38 var liste; 39 var taille; 40 var bl; 41 var i; 42 var j; 43 V=[ 44 [1,14,19,1,3,3,3,0,[10,13,17,18,22,23,26,27,29,9],[13,17,18,20,4,5,6,7,8]], 45 [1,14,18,1,1,3,3,0,[1,11,13,22,23,26,27,28,29,3,4,9],[13,17,18,20,6]], 46 [1,14,19,1,3,4,3,0,[13,17,18,22,23,25,26,27,4,9],[11,17,12,2,20,3,21,9,6]], 47 [1,14,19,1,1,3,3,0,[1,10,13,22,23,24,25,26,27,28,4,8,9],[13,17,6,9]], 48 [1,14,18,1,3,4,3,0,[12,13,22,23,27,28,7,9],[13,17,2,20,6,7,9]], 49 [1,14,19,5,4,2,3,0,[12,13,17,18,2,21,22,23,24,26,27,28,3,5,8,9],[1,10,13,17,18,19,20,5,21,7,8,9]], 50 [1,14,20,6,2,2,3,0,[11,13,2,22,23,26,27,3,4,5,8,9],[13,17,18,20,6,9]], 51 [1,14,19,6,3,4,3,0,[10,13,2,22,23,26,27,3,4,5,8,9],[13,17,18,19,20,21,9,6,5]], 52 [1,14,19,4,2,4,3,0,[13,17,2,22,26,28,3,5,6,7,8,9],[10,13,15,17,19,2,20,3,5,6,9]], 53 [1,14,19,8,4,4,3,0,[13,2,22,26,3,28,4,5,6,8,9],[14,15,17,18,19,2,20,21,9,7]], 54 [1,15,18,6,1,4,3,0,[10,11,13,14,15,2,23,26,27,5,8,9,6],[13,17,2,20,6,9]], 55 [1,14,19,2,3,5,3,0,[10,13,17,2,22,26,27,28,3,5,6,7,8,9],[1,10,13,15,17,18,19,20,6,7,9,22]], 56 [1,15,18,6,1,3,3,0,[12,13,15,2,22,23,26,4,5,9],[13,15,6,17,2,21,9]], 57 [1,19,21,1,4,4,3,0,[11,13,18,22,23,27,28,4],[17,2,20,21,9]], 58 [1,14,19,4,3,3,3,0,[10,13,17,2,22,23,24,26,27,3,4,6,8,9],[10,13,17,19,20,3,5,6,7,9]], 59 [1,13,19,6,3,3,3,0,[11,13,15,2,22,23,26,27,28,3,4,8,9],[1,13,17,18,20,6,9,22]], 60 [1,15,19,6,1,5,3,0,[10,13,2,22,23,26,27,4,5,8,11],[10,13,17,20,5,6,9]], 61 [1,15,18,6,3,2,1,0,[10,17,21,22,23,25,26,9],[13,16,17,20,21,8,9]], 62 [1,14,19,8,2,2,3,0,[13,16,21,22,23,24,26,27,3,4,5,6,8,9],[15,17,20,3,6,9]], 63 [1,14,19,5,3,2,3,0,[10,11,13,16,17,2,21,22,23,24,26,27,3,4,8,9],[1,10,13,17,18,19,20,5,6,7,9]], 64 [1,14,19,4,4,4,3,0,[10,13,2,22,23,26,27,3,4,5,6,7,8,9],[13,14,17,19,20,21,7,9]], 65 [1,14,19,1,3,2,3,0,[10,13,22,23,26,27,28,3,4,5,6,8,9],[15,17,18,2,20,6,8,9]], 66 [1,14,19,6,1,5,3,0,[10,11,13,22,25,26,4,5,7,8,9],[10,13,17,2,20,5,6,9]], 67 [1,14,19,6,4,4,3,0,[10,13,17,18,22,23,26,27,4,9,5],[1,13,14,17,18,20,3,21,7,8,9]], 68 [1,12,20,6,3,4,2,0,[10,13,14,17,18,22,23,25,26,27,29,9],[13,14,16,17,20,3,8,7,9]], 69 [1,14,19,1,3,3,3,0,[10,11,13,17,2,22,23,26,27,29,3,4,8,9],[1,10,13,14,15,17,18,20,5,21,7,8,9,25]], 70 [1,14,20,1,2,5,3,0,[12,13,17,22,23,26,28,3,4,8,9,27],[10,13,17,18,20,5,6,9,22]], 71 [1,14,19,1,2,3,3,0,[13,17,22,23,26,27,28,29,3,4,8,19],[13,17,18,20,6,7,8,9]], 72 [1,14,18,6,1,3,3,0,[12,13,15,2,22,23,26,27,28,4,9],[13,17,6,9]], 73 [1,14,19,5,3,4,3,0,[13,2,26,27,28,3,4,5,6],[1,10,13,15,17,18,2,20,3,21,7]], 74 [1,14,18,6,3,3,3,0,[13,2,22,23,26,27,8,3,4,5,9],[1,13,17,18,19,2,20,6,8,9,22]], 75 [1,14,19,6,4,3,2,0,[10,13,17,18,22,23,25,26,27,29],[13,14,16,17,3,7,8]], 76 [1,14,18,6,3,3,3,0,[13,22,23,26,27,28,3,4,5,7,8,9],[13,17,18,2,20,3,5,6,9]], 77 [1,14,20,1,3,2,3,0,[10,13,15,17,19,2,22,23,24,26,27,3,4,8,9],[13,17,18,20,6,7,8,9]], 78 [1,14,20,6,3,1,3,0,[10,13,16,2,22,23,26,27,3,4,6,8,9],[13,17,20,5,6,9]], 79 [1,14,19,3,3,3,3,0,[10,12,13,18,21,22,23,24,26,27,29,3,4,8,9],[1,10,17,20,6,8,9]], 80 [1,14,19,2,3,1,3,0,[12,13,17,2,22,23,24,26,27,28,4,8,9,19],[1,13,17,18,19,20,6,9]], 81 [1,14,19,5,4,2,3,0,[10,11,13,17,2,21,3,22,23,24,25,26,27,5,6,8,9],[13,17,20,3,21,9]], 82 [1,14,19,6,2,3,3,0,[13,22,23,26,27,28,3,4,5,7,8,9],[13,17,18,20,5,6,9]], 83 [1,14,20,6,3,2,3,0,[10,12,13,19,2,22,23,24,25,1,26,27,28,3,4,8,9],[10,13,17,18,20,3,5,6,7,8,9]], 84 [1,14,19,5,3,4,3,0,[12,13,2,26,27,28,3,4,5,6,8,9],[10,13,17,18,2,20,3,21,7]], 85 [1,14,19,6,3,4,3,0,[13,16,22,23,26,27,28,3,5,7,8,9],[10,13,17,18,19,2,20,5,6,7,8,9]], 86 [1,14,19,6,3,2,3,0,[10,13,22,23,24,25,26,27,3,4,7,8,9],[1,13,17,20,5,21,9,23]], 87 [1,14,18,6,2,2,3,0,[11,13,2,22,23,26,27,3,4,8,9],[1,13,14,15,17,18,19,2,20,6,7,8,5]], 88 [1,14,19,6,2,3,3,0,[13,17,2,22,23,26,27,4,5,7,9],[13,14,16,17,9,22]], 89 [1,14,19,8,3,2,3,0,[13,18,22,23,24,27,28,3,4,5,8,9],[15,16,17,18,19,2,20,6,9]], 90 [1,14,19,1,3,4,2,0,[13,17,18,22,23,26,27,29,9,11,8],[13,17,20,3,21,7,8,9,6]], 91 [1,15,18,6,4,4,1,0,[13,17,22,25,27,29],[14,16,3,7,8]], 92 [1,14,18,6,3,1,3,0,[12,13,16,17,18,19,2,22,23,26,27,3,4,9],[13,17,20,3,6,9]], 93 [1,14,19,6,2,3,2,0,[13,2,22,23,26,27,9],[13,16,17,9]], 94 [1,14,19,8,3,4,3,0,[13,22,26,5,6,7,8,9],[13,15,17,18,19,2,20,6,9]], 95 [1,14,20,1,2,2,3,0,[11,13,22,23,26,27,28,29,3,4,9],[13,17,18,20,6,9]], 96 [1,14,19,6,3,2,2,0,[10,13,17,18,22,23,24,25,26,27,9],[1,13,14,16,17,20,3,6,7,8,9]], 97 [1,14,18,6,3,5,3,0,[11,13,18,22,23,26,27,4,5,2],[1,10,13,17,2,20,5,6,9,22]], 98 [1,14,19,1,3,4,2,0,[17,22,23,26,27,13],[13,16,17,18,2,20,11,6,7,8,9]], 99 [1,15,18,6,1,2,3,0,[13,15,2,22,23,26,3,4,5,6,9],[1,13,17,20,6,9,5]], 100 [1,14,20,6,3,2,3,0,[10,11,24,13,2,22,23,26,27,3,4,5,7,8,9],[1,10,13,17,18,19,2,20,5,6,7,8,9,23]], 101 [1,14,19,4,4,4,3,0,[10,13,17,18,2,22,26,27,28,3,4,5,6,8,9,23],[14,15,17,19,2,20,3,21,7,9,10]], 102 [1,14,19,5,4,3,3,0,[10,13,17,21,22,23,26,27,5,8,9],[10,13,17,18,19,2,20,21,7,9]], 103 [1,14,19,7,4,4,3,0,[13,17,2,22,23,26,27,18,28,3,4,5,7,9],[10,13,17,18,19,2,20,3,21,9]], 104 [1,12,20,6,2,2,2,0,[10,11,13,17,18,22,23,25,26,27,29,8,9],[1,13,16,17,3,6,8,9,24]], 105 [1,14,18,6,3,3,1,0,[13,16,17,22,25,26,27,9],[13,16,17,20,21,8]], 106 [1,14,19,6,2,5,3,0,[13,17,2,22,23,26,27,4,5,9],[10,13,17,2,20,5,6,9]], 107 [1,14,19,6,2,3,3,0,[1,13,17,22,23,26,27,28,4,6,9],[13,17,18,20,6,9]], 108 [1,14,19,4,3,2,3,0,[12,13,17,19,2,22,23,24,26,27,28,3,4,5,8,9],[13,15,17,19,20,21,9,5]], 109 [1,14,19,5,4,2,3,0,[10,17,2,21,22,23,24,26,27,28,3,4,6,8,9],[1,10,13,14,17,19,20,3,21,7,8,9]], 110 [1,14,19,3,4,3,3,0,[10,12,13,2,21,22,23,26,27,4,7,8,9],[1,13,17,20,6,8,9]], 111 [1,14,19,5,3,2,1,0,[13,17,19,21,22,23,24,25,26,27,8,9],[1,14,17,3,6,8,13]], 112 [1,14,19,2,3,1,3,0,[10,11,13,17,18,19,22,24,26,27,4,7,8,9],[13,17,19,20,3,6,9]], 113 [1,14,19,6,2,3,3,0,[13,2,22,23,26,27,4,5,9],[1,13,17,18,20,6,9,24]], 114 [1,14,18,6,2,2,3,0,[11,13,22,23,24,25,26,27,3,4,5,6,8,9],[1,13,17,20,3,5,6,9]], 115 [1,14,18,1,2,2,3,0,[1,11,13,15,17,2,22,23,26,27,4,9],[1,13,17,18,20,6,9]], 116 [1,14,19,2,3,4,3,0,[10,13,22,26,27,28,29,3,4,5,6,7,8,9,36],[1,13,15,17,18,19,20,5,6,7,8,9]], 117 [1,14,19,6,2,1,2,0,[13,17,21,22,26,27,3,8,9],[13,17,20,6]], 118 [1,15,18,6,4,3,1,0,[10,13,16,17,20,22,25,27],[16,17,3,6,7,8,9]], 119 [1,14,19,4,3,5,3,0,[10,11,13,17,22,24,26,27,28,3,4,5,6,7,8,9],[10,13,15,17,2,20,3,6,7,9]], 120 [1,14,20,6,3,1,2,0,[10,11,17,18,19,22,23,25,26,27,29,8,9],[1,10,13,14,16,17,3,4,6,7,8,9]], 121 [1,15,18,6,3,3,1,0,[13,16,22,26,27,9,23],[13,16,17,20,21,6]], 122 [1,15,18,1,3,4,3,0,[10,13,17,2,22,23,25,26,27,28,29,4,9,12],[13,17,18,20,6,9,5]], 123 [1,21,25,6,2,1,4,0,[30,31,34,35],[6,3]], 124 [1,21,25,6,3,4,4,0,[30,31,34,35],[6,3]], 125 [1,20,25,1,3,3,3,0,[9,10,13,17,18,22,23,26,27,29],[20,18,17,13,8,7,6,5,4]], 126 [1,21,25,6,2,5,4,0,[30,31,34,35],[6,3]], 127 [1,21,25,6,3,3,4,0,[30,31,96,79,34,35],[6,7]], 128 [1,21,25,1,3,4,3,0,[4,9,13,17,18,22,23,25,26,27],[21,20,17,12,11,9,3,2]], 129 [1,21,25,6,2,3,4,0,[30,34],[6,3]], 130 [1,22,25,1,3,4,3,0,[7,9,12,13,22,23,27,28],[20,17,13,9,7,6,2]], 131 [1,21,25,6,3,3,4,0,[30,31,34,35],[6]], 132 [1,20,25,5,4,2,3,0,[2,3,5,8,9,12,13,17,18,21,22,23,24,26,27,28],[21,20,19,18,17,13,10,9,8,7,5,1]], 133 [1,20,25,8,4,4,3,0,[2,3,4,5,6,9,13,22,26,28],[21,20,19,18,17,15,9]], 134 [1,24,25,6,2,2,3,0,[2,3,4,5,6,8,9,11,13,22,23,26,27,29],[20,18,17,13,9,8,7,6]], 135 [1,20,25,4,2,4,3,0,[2,3,5,6,7,8,9,12,13,17,22,26,28],[20,19,17,15,13,10,9,6,5,3,2]], 136 [1,20,25,2,3,5,3,0,[2,3,5,6,7,8,9,10,13,17,22,26,27,28],[20,19,18,17,13,10,9,7,6,1]], 137 [1,20,25,4,3,3,3,0,[2,3,4,6,8,9,13,17,22,23,24,26,27],[20,19,17,13,10,9,7,6,5,3]], 138 [1,20,25,1,3,2,3,0,[3,4,5,6,8,9,10,13,22,23,26,27,28],[20,18,17,15,9,8,6,2]], 139 [1,21,25,2,3,3,4,0,[30,31,34,35],[6,3,7]], 140 [1,21,25,6,3,2,4,0,[30,34],[6,3]], 141 [1,20,25,5,3,2,3,0,[8,9,10,11,13,16,17,21,22,23,24,26,27],[20,19,18,17,13,10,9,7,6,5,1]], 142 [1,20,25,2,2,5,4,0,[30,31,34],[6,3,7]], 143 [1,20,25,4,4,4,3,0,[2,3,4,5,6,8,9,10,13,22,23,26,27],[21,20,19,17,14,13,9,7]], 144 [1,24,25,6,3,3,3,0,[2,3,4,8,9,11,13,15,22,23,26,27,28],[20,18,17,13,9,6,1]], 145 [1,22,25,1,4,4,3,0,[4,11,13,18,22,23,27,28],[21,20,17,9]], 146 [1,21,25,6,2,1,4,0,[30,34,35],[6,3]], 147 [1,20,25,6,4,4,3,0,[9,10,13,17,18,22,23,26,27],[21,20,18,17,14,13,9,8,7,3,1]], 148 [1,24,25,6,3,4,2,0,[9,10,13,17,18,22,23,25,26,27,29],[20,17,16,14,13,9,8,7,3]], 149 [1,20,25,1,3,3,3,0,[2,3,4,8,9,10,11,13,17,22,23,26,27,29],[21,20,18,17,15,14,13,10,9,8,7,5,1]], 150 [1,20,25,1,2,3,3,0,[3,4,8,11,13,17,22,23,26,27,28,29],[20,18,17,13,9,8,7,6]], 151 [1,20,25,5,3,4,3,0,[2,3,4,5,6,13,26,27,28],[21,20,18,17,15,13,10,3,2,1]], 152 [1,20,25,6,4,3,2,0,[10,13,17,18,22,23,25,26,27,29],[17,16,14,13,8,7,3]], 153 [1,21,25,6,2,1,4,0,[30,34,35],[6,3]], 154 [1,21,25,1,3,2,3,0,[2,3,4,8,9,10,13,15,17,19,22,23,24,26,27],[20,18,17,13,8,9,7,6]], 155 [1,20,25,2,3,3,3,0,[11,13,2,21,22,23,24,26,27,28,29,3,4,5,8,9],[1,13,17,18,19,2,20,3,6,7,9]], 156 [1,24,25,6,3,1,3,0,[2,3,4,6,8,9,10,13,16,22,23,26,27],[20,17,13,9,6,5]], 157 [1,20,25,3,3,3,3,0,[3,4,8,9,10,12,13,18,21,22,23,24,26,27,29],[20,17,10,9,8,6,1]], 158 [1,20,25,2,3,1,3,0,[2,4,8,9,12,13,17,22,23,24,26,27,28],[20,19,18,17,13,9,6,1]], 159 [1,20,25,5,4,2,3,0,[2,3,5,6,8,9,10,11,13,17,21,22,23,24,25,26,27],[21,20,17,13,9,3]], 160 [1,24,25,6,3,2,3,0,[2,3,4,8,9,10,13,19,22,23,24,25,26,27,28],[20,18,17,13,10,9,8,7,6,5,3]], 161 [1,21,25,6,2,1,4,0,[30,31,33,34],[6]], 162 [1,20,25,8,3,2,3,0,[3,4,5,8,9,13,17,18,22,23,24,27,28],[20,19,18,17,15,9,6]], 163 [1,21,25,6,4,4,4,0,[30,31,27,10,34],[6,3,7]], 164 [1,21,25,6,4,4,4,0,[30,31,34],[6,3,7]], 165 [1,20,25,1,3,4,2,0,[9,13,17,18,22,23,26,27,29],[20,17,13,9,8,7,6,3]], 166 [1,20,25,7,4,4,3,0,[2,3,4,5,7,9,13,17,18,22,23,26,27,28],[21,20,19,18,17,13,10,9,3,2]], 167 [1,21,25,6,4,4,4,0,[30,31,34],[6,7]], 168 [1,21,25,6,3,3,4,0,[30,31,35],[6,3]], 169 [1,20,25,8,3,4,3,0,[5,6,7,8,9,13,22,26,28],[20,19,18,17,15,13,9,6,2]], 170 [1,21,25,1,2,2,3,0,[3,4,9,11,13,22,23,26,27,28,29],[20,18,17,13,9,6]], 171 [1,20,25,6,3,2,2,0,[9,10,13,17,18,22,23,25,26,27],[20,17,16,14,13,9,8,7,6,3,1]], 172 [1,24,25,6,3,2,3,0,[2,3,4,5,7,8,9,10,11,13,22,23,24,26,27],[20,19,18,17,13,10,9,8,7,6,5,2,1]], 173 [1,20,25,2,3,5,3,0,[29,24,13,4,5,22,23,16,2,28,9,10],[7,13,5,1,15,3,9,6,17]], 174 [1,20,25,4,3,2,3,0,[2,3,4,5,6,8,9,12,13,17,19,22,23,24,26,27,28],[20,19,17,13,9]], 175 [1,20,25,5,4,3,3,0,[3,4,5,8,9,10,13,17,21,22,23,26,27],[21,20,19,18,17,13,10,9,7,2]], 176 [1,20,25,4,4,4,3,0,[2,3,4,5,6,8,9,10,13,17,18,22,23,26,27,28],[21,20,19,17,15,14,9,7,3,2]], 177 [1,21,25,6,3,3,4,0,[30,31,10,34],[6,3,7]], 178 [1,20,25,6,2,3,3,0,[1,4,6,9,13,17,22,23,26,27,28],[20,18,17,13,9,6]], 179 [1,21,25,6,2,2,2,0,[8,9,10,11,13,17,18,22,23,25,26,27,29],[17,16,13,9,8,6,3,1]], 180 [1,21,25,6,3,4,4,0,[30,32,33,27,34],[6,7]], 181 [1,20,25,3,4,3,3,0,[2,4,7,8,9,10,12,13,21,22,23,26,27],[20,17,13,9,8,6,1]], 182 [1,20,25,6,2,3,3,0,[],[20,18,17,13,9,6,1]], 183 [1,20,25,2,3,1,3,0,[4,7,8,9,10,11,13,17,18,19,22,24,26,27],[20,19,17,13,9,6,3]], 184 [1,20,25,5,3,2,4,0,[30,31,96],[6,3,7]], 185 [1,20,25,2,3,4,3,0,[3,4,5,6,7,8,9,10,13,22,26,27,28,29],[20,19,18,17,13,9,8,7,6,5,1]], 186 [1,21,25,6,3,3,4,0,[30,31,27,10,34],[6,7]], 187 [1,21,25,4,3,2,3,0,[3,4,5,6,8,9,10,11,13,18,19,22,23,26,27],[20,17,13,9]], 188 [1,21,25,6,4,3,4,0,[30,31,27,10,35],[6,7]], 189 [1,21,25,6,2,2,4,0,[30,34],[6,3]], 190 [1,24,25,6,2,1,2,0,[3,8,9,13,17,21,22,26,27],[20,17,13,6]], 191 [1,20,25,4,3,5,3,0,[3,4,5,6,7,8,9,10,11,13,17,22,24,26,27,28],[20,17,15,13,10,9,7,6,3,2]], 192 [1,20,26,6,4,3,4,0,[30,31,27,10,34,35],[6,3,7]], 193 [1,21,25,6,2,3,4,0,[30,33,34],[6]], 194 [1,21,25,6,3,1,2,0,[8,9,10,11,17,18,19,22,23,25,26,27,29],[17,16,14,13,10,9,8,7,6,4,3,1]], 195 [1,21,25,6,4,4,4,0,[30,31,10,34,35],[6,7]], 196 [1,21,25,6,3,2,4,0,[30,31,33,34],[6,3]], 197 [1,21,26,6,3,5,4,0,[30,31],[6,3]], 198 [1,21,25,6,2,1,4,0,[30,34,35],[6,3]], 199 [1,21,25,6,3,3,4,0,[30,34],[6]], 200 [1,20,25,8,2,2,3,0,[3,4,5,6,8,9,13,16,21,22,23,24,26,27],[20,17,15,9,6,3]], 201 [1,20,25,5,3,4,3,0,[2,3,4,5,6,8,9,12,13,26,27,28],[21,20,18,17,13,10,3,2]], 202 [1,20,25,5,4,2,3,0,[3,4,6,8,9,10,17,21,22,23,24,26,27,28],[21,20,19,17,14,13,10,9,8,7,3,1]], 203 [1,13,19,6,2,3,3,0,[2,3,13,22,19,8,9,12,27],[9,6,17,20]], 204 [1,15,18,2,3,3,1,0,[25,24,13,16,19,8,9,10,17,22,29,23],[16,8,3,21,17,19]], 205 [1,14,19,2,3,3,3,0,[13,2,21,22,23,24,26,27,28,29,3,4,5,8,9,17],[1,13,17,18,19,2,20,3,6,7,9]], 206 [1,15,18,6,4,4,1,0,[29,16,17,22,27,10],[16,8,3,14,7]], 207 [1,14,20,6,3,4,3,0,[3,4,2,5,13,22,23,27,8,9],[20,7,8,2,9,21,17]], 208 [1,14,19,2,3,5,3,0,[29,24,13,4,5,22,23,16,2,28,9,10],[7,13,5,1,15,3,9,6,17]], 209 [1,15,18,6,3,2,1,0,[25,13,22,23,17,29,16,9],[16,21,17,20]], 210 [1,24,25,6,2,3,3,0,[],[]], 211 [1,21,25,1,2,5,3,0,[],[]], 212 [1,21,25,6,3,4,3,0,[],[]] 213 ]; 214 215 var nbVillages = V.length; 216 217 for (i=0; i<nbVillages; i++) { 218 if ((((mois == 0) && (1==V[i][0])) || ((mois >= V[i][1]) && (mois <= V[i][2]))) && 219 ((region == 0) || (region == V[i][3] )) && 220 ((confort == 0) || (confort == V[i][4] )) && 221 ((encadrement == 0) || 222 ((encadrement==3)&&((V[i][5]==1)||(V[i][5]==2)||(V[i][5] == 3))) || 223 ((encadrement==2)&&((V[i][5]==1)||(V[i][5]==2) )) || 224 ((encadrement==1)&&(encadrement==V[i][5]) ) || 225 ((encadrement>3)&&(encadrement==V[i][5]) )) && 226 ((typeVillage == 0) || (typeVillage == V[i][6] )) && 227 ((budget == 0) || (budget == V[i][7] ))) { 228 229 bl = 1; 230 if ((sport1 != 0) || (sport2 != 0) || (sport3 != 0)) { 231 bl = 0; 232 liste = V[i][8]; 233 taille = liste.length; 234 for (j=0; j<taille; j++) { 235 if ((sport1 == 0) || ((sport1 != 0) && (sport1 == liste[j]))) { 236 bl = 1; 237 break; 238 } 239 } 240 if (bl == 1) { 241 bl = 0; 242 for (j=0; j<taille; j++) { 243 if ((sport2 == 0) || ((sport2 != 0) && (sport2 == liste[j]))) { 244 bl = 1; 245 break; 246 } 247 } 248 } 249 if (bl == 1) { 250 bl = 0; 251 for (j=0; j<taille; j++) { 252 if ((sport3 == 0) || ((sport3 != 0) && (sport3 == liste[j]))) { 253 bl = 1; 254 break; 255 } 256 } 257 } 258 } 259 if ((bl==1) && ((activite1 != 0) || (activite2 != 0) || (activite3 != 0))) { 260 bl = 0; 261 liste = V[i][9]; 262 taille = liste.length; 263 for (j=0; j<taille; j++) { 264 if ((activite1 == 0) || ((activite1 != 0) && (activite1 == liste[j]))) { 265 bl = 1; 266 break; 267 } 268 } 269 if (bl == 1) { 270 bl = 0; 271 for (j=0; j<taille; j++) { 272 if ((activite2 == 0) || ((activite2 != 0) && (activite2 == liste[j]))) { 273 bl = 1; 274 break; 275 } 276 } 277 } 278 if (bl == 1) { 279 bl = 0; 280 for (j=0; j<taille; j++) { 281 if ((activite3 == 0) || ((activite3 != 0) && (activite3 == liste[j]))) { 282 bl = 1; 283 break; 284 } 285 } 286 } 287 } 288 if (1 == bl) { 289 ret++; 290 } 291 } 292 } 293 } 294 295 reportCompare('No Crash', 'No Crash', '');