var arrCountries, arrCountriesName, arrUS, arrCA
arrUS = ["$0 - $2,000", "$2,000 - $4,000", "$4,000 - $6,000", "$6,000 - $8,000", "$8,000 - $10,000", "$10,000 - $15,000", "$15,000 - $20,000", "$20,000 - $30,000", "$30,000 - $50,000", "Mas de $50,000"]
arrCA = ["$0 - $20,000", "$20,000 - $40,000", "$40,000 - $60,000", "$60,000 - $80,000", "$80,000 - $100,000", "$100,000 - $150,000", "$150,000 - $200,000", "$200,000 - $300,000", "$300,000 - $500,000", "Mas de 500,000"]
arrCountries =[arrUS, arrCA]
//arrCountriesName = ["US", "CA"]

// Function to handle dynamically altering the contents of the State List box
function updateStates(theForm, newDisplay)
  
{ var CountrySelect, StateSelect, NumEntries, i
CountrySelect = theForm.Countries
StateSelect = theForm.States

// Delete all entries in the cities list box
for (i = StateSelect.length; i > 0; i--){
StateSelect.options[i-1] = null
}

// Add comment option to State List box
StateSelect.options[0] = new Option("- Seleccione un rango -",-1)

// If state is selected add its cities to the City List box
if (newDisplay >= 0) {
NumEntries = arrCountries[newDisplay].length
for (i = 0; i < NumEntries; i++) {
StateSelect.options[i+1] = new Option((arrCountries[newDisplay])[i],(arrCountries[newDisplay])[i])
}
}
StateSelect.selected = -1
}
