js/src/tests/js1_5/Regress/regress-90445.js

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
michael@0 2 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 3 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 5
michael@0 6 /*
michael@0 7 * Date: 2001-07-12
michael@0 8 *
michael@0 9 * SUMMARY: Regression test for bug 90445
michael@0 10 * See http://bugzilla.mozilla.org/show_bug.cgi?id=90445
michael@0 11 *
michael@0 12 * Just seeing if this script will compile without crashing.
michael@0 13 */
michael@0 14 //-----------------------------------------------------------------------------
michael@0 15 var BUGNUMBER = 90445;
michael@0 16 var summary = 'Testing this script will compile without crashing';
michael@0 17
michael@0 18 printBugNumber(BUGNUMBER);
michael@0 19 printStatus (summary);
michael@0 20
michael@0 21
michael@0 22 // The big function -
michael@0 23 function compte() {
michael@0 24 var mois = getValueFromOption(document.formtest.mois);
michael@0 25 var region = document.formtest.region.options.selectedIndex;
michael@0 26 var confort = document.formtest.confort.options.selectedIndex;
michael@0 27 var encadrement = document.formtest.encadrement.options.selectedIndex;
michael@0 28 var typeVillage = document.formtest.type_village.options.selectedIndex;
michael@0 29 var budget = document.formtest.budget.value;
michael@0 30 var sport1 = document.formtest.sport1.options.selectedIndex;
michael@0 31 var sport2 = document.formtest.sport2.options.selectedIndex;
michael@0 32 var sport3 = document.formtest.sport3.options.selectedIndex;
michael@0 33 var activite1 = document.formtest.activite1.options.selectedIndex;
michael@0 34 var activite2 = document.formtest.activite2.options.selectedIndex;
michael@0 35 var activite3 = document.formtest.activite3.options.selectedIndex;
michael@0 36
michael@0 37 var ret = 0;
michael@0 38 var liste;
michael@0 39 var taille;
michael@0 40 var bl;
michael@0 41 var i;
michael@0 42 var j;
michael@0 43 V=[
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 48 [1,14,18,1,3,4,3,0,[12,13,22,23,27,28,7,9],[13,17,2,20,6,7,9]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 57 [1,19,21,1,4,4,3,0,[11,13,18,22,23,27,28,4],[17,2,20,21,9]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 61 [1,15,18,6,3,2,1,0,[10,17,21,22,23,25,26,9],[13,16,17,20,21,8,9]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 72 [1,14,18,6,1,3,3,0,[12,13,15,2,22,23,26,27,28,4,9],[13,17,6,9]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 91 [1,15,18,6,4,4,1,0,[13,17,22,25,27,29],[14,16,3,7,8]],
michael@0 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]],
michael@0 93 [1,14,19,6,2,3,2,0,[13,2,22,23,26,27,9],[13,16,17,9]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 105 [1,14,18,6,3,3,1,0,[13,16,17,22,25,26,27,9],[13,16,17,20,21,8]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 117 [1,14,19,6,2,1,2,0,[13,17,21,22,26,27,3,8,9],[13,17,20,6]],
michael@0 118 [1,15,18,6,4,3,1,0,[10,13,16,17,20,22,25,27],[16,17,3,6,7,8,9]],
michael@0 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]],
michael@0 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]],
michael@0 121 [1,15,18,6,3,3,1,0,[13,16,22,26,27,9,23],[13,16,17,20,21,6]],
michael@0 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]],
michael@0 123 [1,21,25,6,2,1,4,0,[30,31,34,35],[6,3]],
michael@0 124 [1,21,25,6,3,4,4,0,[30,31,34,35],[6,3]],
michael@0 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]],
michael@0 126 [1,21,25,6,2,5,4,0,[30,31,34,35],[6,3]],
michael@0 127 [1,21,25,6,3,3,4,0,[30,31,96,79,34,35],[6,7]],
michael@0 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]],
michael@0 129 [1,21,25,6,2,3,4,0,[30,34],[6,3]],
michael@0 130 [1,22,25,1,3,4,3,0,[7,9,12,13,22,23,27,28],[20,17,13,9,7,6,2]],
michael@0 131 [1,21,25,6,3,3,4,0,[30,31,34,35],[6]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 139 [1,21,25,2,3,3,4,0,[30,31,34,35],[6,3,7]],
michael@0 140 [1,21,25,6,3,2,4,0,[30,34],[6,3]],
michael@0 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]],
michael@0 142 [1,20,25,2,2,5,4,0,[30,31,34],[6,3,7]],
michael@0 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]],
michael@0 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]],
michael@0 145 [1,22,25,1,4,4,3,0,[4,11,13,18,22,23,27,28],[21,20,17,9]],
michael@0 146 [1,21,25,6,2,1,4,0,[30,34,35],[6,3]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 153 [1,21,25,6,2,1,4,0,[30,34,35],[6,3]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 161 [1,21,25,6,2,1,4,0,[30,31,33,34],[6]],
michael@0 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]],
michael@0 163 [1,21,25,6,4,4,4,0,[30,31,27,10,34],[6,3,7]],
michael@0 164 [1,21,25,6,4,4,4,0,[30,31,34],[6,3,7]],
michael@0 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]],
michael@0 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]],
michael@0 167 [1,21,25,6,4,4,4,0,[30,31,34],[6,7]],
michael@0 168 [1,21,25,6,3,3,4,0,[30,31,35],[6,3]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 177 [1,21,25,6,3,3,4,0,[30,31,10,34],[6,3,7]],
michael@0 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]],
michael@0 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]],
michael@0 180 [1,21,25,6,3,4,4,0,[30,32,33,27,34],[6,7]],
michael@0 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]],
michael@0 182 [1,20,25,6,2,3,3,0,[],[20,18,17,13,9,6,1]],
michael@0 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]],
michael@0 184 [1,20,25,5,3,2,4,0,[30,31,96],[6,3,7]],
michael@0 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]],
michael@0 186 [1,21,25,6,3,3,4,0,[30,31,27,10,34],[6,7]],
michael@0 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]],
michael@0 188 [1,21,25,6,4,3,4,0,[30,31,27,10,35],[6,7]],
michael@0 189 [1,21,25,6,2,2,4,0,[30,34],[6,3]],
michael@0 190 [1,24,25,6,2,1,2,0,[3,8,9,13,17,21,22,26,27],[20,17,13,6]],
michael@0 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]],
michael@0 192 [1,20,26,6,4,3,4,0,[30,31,27,10,34,35],[6,3,7]],
michael@0 193 [1,21,25,6,2,3,4,0,[30,33,34],[6]],
michael@0 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]],
michael@0 195 [1,21,25,6,4,4,4,0,[30,31,10,34,35],[6,7]],
michael@0 196 [1,21,25,6,3,2,4,0,[30,31,33,34],[6,3]],
michael@0 197 [1,21,26,6,3,5,4,0,[30,31],[6,3]],
michael@0 198 [1,21,25,6,2,1,4,0,[30,34,35],[6,3]],
michael@0 199 [1,21,25,6,3,3,4,0,[30,34],[6]],
michael@0 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]],
michael@0 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]],
michael@0 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]],
michael@0 203 [1,13,19,6,2,3,3,0,[2,3,13,22,19,8,9,12,27],[9,6,17,20]],
michael@0 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]],
michael@0 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]],
michael@0 206 [1,15,18,6,4,4,1,0,[29,16,17,22,27,10],[16,8,3,14,7]],
michael@0 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]],
michael@0 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]],
michael@0 209 [1,15,18,6,3,2,1,0,[25,13,22,23,17,29,16,9],[16,21,17,20]],
michael@0 210 [1,24,25,6,2,3,3,0,[],[]],
michael@0 211 [1,21,25,1,2,5,3,0,[],[]],
michael@0 212 [1,21,25,6,3,4,3,0,[],[]]
michael@0 213 ];
michael@0 214
michael@0 215 var nbVillages = V.length;
michael@0 216
michael@0 217 for (i=0; i<nbVillages; i++) {
michael@0 218 if ((((mois == 0) && (1==V[i][0])) || ((mois >= V[i][1]) && (mois <= V[i][2]))) &&
michael@0 219 ((region == 0) || (region == V[i][3] )) &&
michael@0 220 ((confort == 0) || (confort == V[i][4] )) &&
michael@0 221 ((encadrement == 0) ||
michael@0 222 ((encadrement==3)&&((V[i][5]==1)||(V[i][5]==2)||(V[i][5] == 3))) ||
michael@0 223 ((encadrement==2)&&((V[i][5]==1)||(V[i][5]==2) )) ||
michael@0 224 ((encadrement==1)&&(encadrement==V[i][5]) ) ||
michael@0 225 ((encadrement>3)&&(encadrement==V[i][5]) )) &&
michael@0 226 ((typeVillage == 0) || (typeVillage == V[i][6] )) &&
michael@0 227 ((budget == 0) || (budget == V[i][7] ))) {
michael@0 228
michael@0 229 bl = 1;
michael@0 230 if ((sport1 != 0) || (sport2 != 0) || (sport3 != 0)) {
michael@0 231 bl = 0;
michael@0 232 liste = V[i][8];
michael@0 233 taille = liste.length;
michael@0 234 for (j=0; j<taille; j++) {
michael@0 235 if ((sport1 == 0) || ((sport1 != 0) && (sport1 == liste[j]))) {
michael@0 236 bl = 1;
michael@0 237 break;
michael@0 238 }
michael@0 239 }
michael@0 240 if (bl == 1) {
michael@0 241 bl = 0;
michael@0 242 for (j=0; j<taille; j++) {
michael@0 243 if ((sport2 == 0) || ((sport2 != 0) && (sport2 == liste[j]))) {
michael@0 244 bl = 1;
michael@0 245 break;
michael@0 246 }
michael@0 247 }
michael@0 248 }
michael@0 249 if (bl == 1) {
michael@0 250 bl = 0;
michael@0 251 for (j=0; j<taille; j++) {
michael@0 252 if ((sport3 == 0) || ((sport3 != 0) && (sport3 == liste[j]))) {
michael@0 253 bl = 1;
michael@0 254 break;
michael@0 255 }
michael@0 256 }
michael@0 257 }
michael@0 258 }
michael@0 259 if ((bl==1) && ((activite1 != 0) || (activite2 != 0) || (activite3 != 0))) {
michael@0 260 bl = 0;
michael@0 261 liste = V[i][9];
michael@0 262 taille = liste.length;
michael@0 263 for (j=0; j<taille; j++) {
michael@0 264 if ((activite1 == 0) || ((activite1 != 0) && (activite1 == liste[j]))) {
michael@0 265 bl = 1;
michael@0 266 break;
michael@0 267 }
michael@0 268 }
michael@0 269 if (bl == 1) {
michael@0 270 bl = 0;
michael@0 271 for (j=0; j<taille; j++) {
michael@0 272 if ((activite2 == 0) || ((activite2 != 0) && (activite2 == liste[j]))) {
michael@0 273 bl = 1;
michael@0 274 break;
michael@0 275 }
michael@0 276 }
michael@0 277 }
michael@0 278 if (bl == 1) {
michael@0 279 bl = 0;
michael@0 280 for (j=0; j<taille; j++) {
michael@0 281 if ((activite3 == 0) || ((activite3 != 0) && (activite3 == liste[j]))) {
michael@0 282 bl = 1;
michael@0 283 break;
michael@0 284 }
michael@0 285 }
michael@0 286 }
michael@0 287 }
michael@0 288 if (1 == bl) {
michael@0 289 ret++;
michael@0 290 }
michael@0 291 }
michael@0 292 }
michael@0 293 }
michael@0 294
michael@0 295 reportCompare('No Crash', 'No Crash', '');

mercurial