function setDrop(){
    theValue = document.cityFinder.searchbox.value.toLowerCase();
    // empty existing items
    for (i = document.cityFinder.cities.options.length; i >= 0; i--) {
        document.cityFinder.cities.options[i] = null;
    }
    j=0;
    if(theValue == ""){
        showAll = "true";
    } else {
        showAll = "";
    }
    for (i = 0; i < indexData.length; i++) {
        curOption = indexData[i][0].toLowerCase();
        if (curOption.indexOf(theValue) == "0" || showAll=="true") {
            document.cityFinder.cities.options[j] = new Option(indexData[i][0]);
            document.cityFinder.cities.options[j].value = i;
            j++;
        }
    }
    //document.cityFinder.cities.selectedIndex = 0;
}
function moveOut(){
    curID = document.cityFinder.cities.options[document.cityFinder.cities.selectedIndex].value;
    if(document.getElementById('country'))document.getElementById('country').innerHTML = indexData[curID][0];
    document.getElementById('val0').innerHTML = indexData[curID][0];
    document.getElementById('val1').innerHTML = "$"+indexData[curID][1];
    document.getElementById('val2').innerHTML = "$"+indexData[curID][2];
    document.getElementById('val3').innerHTML = "$"+indexData[curID][3];
    //document.getElementById('val4').innerHTML = "$"+indexData[curID][4];
    //alert("Would go to "+newURL);
    //location.href = newURL; // uncomment front of this line to make it move out, and comment or remove alert line above
}



