// NOTE: Don't modify this file directly!  Modify /webadmin/finder_intl_js_gen.tmpl
// Then visit /tmp to rip out the France cities in the generated file
// and copy here; changing cities array to citiesFr

var citiesFr = new Object();

citiesFr["France"]=[
                ["Aix-en-Provence","Aix-en-Provence"],
                ["Bordeaux","Bordeaux"],
                ["Cannes","Cannes"],
                ["Lille","Lille"],
                ["Lyon","Lyon"],
                ["Marseille","Marseille"],
                ["Metz","Metz"],
                ["Nice","Nice"],
                ["Paris","Paris"],
                ["Rennes","Rennes"],
		["Rosny-sous-bois","Rosny-sous-bois"],
                ["Saint-Tropez","Saint-Tropez"],
                ["Strasbourg","Strasbourg"],
                ["Thiais","Thiais"],
                ["Toulouse","Toulouse"]
                ];


function setCitiesFrance(chooser) {
    var cityChooser = chooser.form.elements["CITY"];
    // empty previous settings
    cityChooser.options.length = 0;
    // get chosen value to act as index to cities hash table
    var choice = chooser.options[chooser.selectedIndex].value;
    var city = citiesFr[choice];
    // insert default first item
    cityChooser.options[0] = new Option("Choose City ", "", true, false);
    if (choice != "") {
        // loop through array of the hash table entry, and populate options
        for (var i = 0; i < city.length; i++) {
            cityChooser.options[i + 1] = new Option(city[i][1], city[i][0]);
        }
    }
}
