var num_of_cats = 21; // This is the number of categories, including the first, blank, category.
var open_in_newwindow=0; //Set 1 to open links in new window, 0 for no.
var option_array = new Array(num_of_cats);

option_array[0] = new Array("select a city"); // This is the first (blank) category. Don't mess with it.

option_array[1] = new Array("-- Select One --",
"Salzburg",
"Vienna");

option_array[2] = new Array("-- Select One --",
"Antwerp",
"Brussels",
"Leuven");

option_array[3] = new Array("-- Select One --",
"Ontario",
"Ottawa",
"Toronto",
"Vancouver");

option_array[4] = new Array("-- Select One --",
"Cairo",
"Dahab",
"Taba");

option_array[5] = new Array("-- Select One --",
"Helsinki",
"Oulu");

option_array[6] = new Array("-- Select One --",
"Bordeaux",
"Paris",
"Nice",
"Toulouse",
"Lyon");

option_array[7] = new Array("-- Select One --",
"Berlin",
"Frankfurt",
"Hannover",
"Hamburg",
"Munich");

option_array[8] = new Array("-- Select One --",
"Edinburgh",
"Glasgow",
"London",
"Manchester",
"Bristol",
"Liverpool",
"Cardiff",
"Aberdeen",
"Manchester");


option_array[9] = new Array("-- Select One --",
"Big Island of Hawaii",
"Kauai",
"Lanai",
"Maui",
"Molokai",
"Oahu");

option_array[10] = new Array("-- Select One --",
"Belfast",
"Cork",
"Dublin",
"Galway",
"Knock");

option_array[11] = new Array("-- Select One --",
"Alghero",
"Pisa",
"Milan",
"Rome");

option_array[12] = new Array("-- Select One --",
"Kuala Lumpur",
"Penang");

option_array[13] = new Array("-- Select One --",
"Amsterdam",
"Maastricht",
"Rotterdam");

option_array[14] = new Array("-- Select One --",
"Faro",
"Lisbon",
"Oporto");

option_array[15] = new Array("-- Select One --",
"Aberdeen",
"Glasgow",
"Inverness");


option_array[16] = new Array("-- Select One --",
"Alicante",
"Barcelona",
"Malaga",
"Madrid",
"Majorca",
"Palma",
"Gibraltar",
"Valencia",
"Gerona",
"Murcia",
"Granada",
"Reus",
"Almeria",
"Seville",
"Tenerife",
"Jerez ",
"Bilbao");


option_array[17] = new Array("-- Select One --",
"Geneva",
"Lugano",
"Zurich");

option_array[18] = new Array("-- Select One --",
"Bangkok",
"Pattaya",
"Phuket");


option_array[19] = new Array("-- Select One --",
"Sharjah",
"Dubai",
"Abu Dhabi");


option_array[20] = new Array("-- Select One --",
"Chicago",
"California",
"Dallas",
"Hamilton",
"Las Vegas",
"Los Angeles",
"Miami",
"New York ",
"Oakland",
"San Francisco",
"Seattle");

var url_array = new Array(num_of_cats);

url_array[0] = new Array("#"); // The first category. This should have no items other than "#".

url_array[1] = new Array("#",//Austria // The second category; the first "real" category. Note the initial #. That is the category which says "Please select a link." It doesn't need a URL. Start putting the other URL's in after that first line.
"airport-car-rentals-salzburg.shtml",
//"http://www.simpleautorentals.co.uk/airport-car-rental-vienna.shtml",
"car-rental-vienna/index.asp"); //there was a '/' in front of the car-renta-vienna

url_array[2] = new Array("#",//Belgium
"car-rental-Antwerp.shtml",
"cheap-car-rental-brussels.shtml",
"car-rental-Leuven.shtml");


url_array[3] = new Array("#",//Canada
"car-rental-ontario/index.asp",
"budget-car-rental-ottawa.shtml",
"exotic-car-rental-toronto.shtml",
"budget-car-rental-Vancouver.shtml");

url_array[4] = new Array("#",//Egypt
"car-rentals-Cairo.shtml",
"car-rental-Dahab.shtml",
"car-rental-Taba.shtml");

url_array[5] = new Array("#",//Finland
"car-rental-helsinki.shtml",
"car-rental-oulu.shtml");

url_array[6] = new Array("#",//France
"budget-car-rental-Bordeaux.shtml",
"thrifty-car-rental-Paris.shtml",
"budget-car-rental-Nice.shtml",
"toulouse-airport-car-rental.shtml",
"budget-car-rental-lyon.asp");

url_array[7] = new Array("#",//Germany
"car-rental-berlin.shtml",
"frankfurt-airport-car-rental.shtml",
"car-rentals-Hannover.shtml",
"hamburg-car-rental.asp",
"munich-car-rental.asp");

url_array[8] = new Array("#",//UK
"airport-car-rental-edinburgh.shtml",
"car-rental-glasgow-airport.shtml",
"luxury-car-rental-london.shtml",
"manchester-airport-car-rental.shtml",
"bristol-airport-car-rental.shtml",
"liverpool-airport-car-rental.shtml",
"cardiff-airport-car-rental.asp",
"aberdeen-car-rental/index.asp",
"prestwick-airport-car-rental.asp");


url_array[9] = new Array("#",//Hawaii
"car-rentals-big-island.shtml",
"car-rentals-kauai.shtml",
"car-rentals-lanai.shtml",
"car-rentals-maui.shtml",
"car-rentals-molokai.shtml",
"car-rentals-oahu.shtml");

url_array[10] = new Array("#",//Ireland
"car-rental-belfast.shtml",
"car-cork.shtml",
"car-rental-dublin-airport.shtml",
"car-rental-galway-airport.asp",
"car-rental-knock-airport.asp");

url_array[11] = new Array("#",//Italy
"car-rental-alghero/index.asp",
"car-rental-pisa/index.asp",
"car-rental-milan/index.asp",
"car-rental-rome/index.asp");

url_array[12] = new Array("#",//Malaysia
"car-rental-kualalumpur.shtml",
//"http://www.simpleautorentals.co.uk/",
"cheap-car-rentals-penang.shtml");

url_array[13] = new Array("#",//Netherlands
"car-rental-amsterdam/index.asp",
"car-hire-masstricht.shtml",
"car-hire-rotterdam.shtml");

url_array[14] = new Array("#",//Portugal
"car-hire-faro.shtml",
"car-hire-lisbon.shtml",
"car-hire-oporto.shtml");

url_array[15] = new Array("#",//Scotland
"aberdeen-car-rental/index.asp",
"rental-car-glasgow.shtml",
"car-hire-inverness/index.asp");


url_array[16] = new Array("#",//Spain
"car-hire-alicante-airport.shtml",
"car-hire-barcelona.shtml",
"car-rental-Malaga-airport.shtml",
"car-rental-madrid-airport.asp",
"car-rental-majorca-airport.asp",
"car-hire-palma-airport.asp",
"car-rental-gibraltar/index.asp",
"car-rental-Valencia/index.asp",
"car-rental-gerona/index.asp",
"car-rental-murcia/index.asp",
"car-rental-granada/index.asp",
"car-rental-reus/index.asp",
"car-rental-almeria/index.asp",
"car-rental-Seville/index.asp",
"car-rental-tenerife-airport.asp",
"car-rental-jerez/index.asp",
"car-rental-Bilbao/index.asp");


url_array[17] = new Array("#",//Switzerland
"car-rental-geneva_airport.shtml",
"car-rental-lugano.shtml",
"car-rental-zurich/index.asp");


url_array[18] = new Array("#",//Thailand
"rent-a-car-bangkok.shtml",
"rent-a-car-pattaya.shtml",
"rent-a-car-phuket.shtml");

url_array[19] = new Array("#",//United Arab Emirates
"car-hire-sharjah.shtml",
"car-hire-dubai.shtml",
"car-hire-abudhabi.shtml");

url_array[20] = new Array("#",//United States of America
"exotic-car-rental-chicago.shtml",
"car-rental-california-airport.asp",
"car-hire-dallas.shtml",
"car-hire-hamilton.shtml",
"las-vegas-car-rental/index.asp",
"budget-car-rental-los-angeles.shtml",
"car-rental-miami/index.asp",
"car-rental-new-york.asp",
"oakland-airport-car-rental.shtml",
"exotic-car-rental-san-francisco.shtml",
"car-hire-seattle.shtml");

function switch_select()
{
  for (loop = window.document.form_1.select_2.options.length-1; loop > 0; loop--)
  {
    window.document.form_1.select_2.options[loop] = null;
  }
  
  for (loop = 0; loop < option_array[window.document.form_1.select_1.selectedIndex].length; loop++)
  {
    window.document.form_1.select_2.options[loop] = new Option(option_array[window.document.form_1.select_1.selectedIndex][loop]);
  }
  
  window.document.form_1.select_2.selectedIndex = 0;
}
  
function switch_text()
{
  //window.document.form_1.textarea_1.value = text_array[window.document.form_1.select_1.selectedIndex][window.document.form_1.select_2.selectedIndex];
}

function box()
{
  if (window.document.form_1.select_2.selectedIndex == 0)
  {
   location=window.document.form_1.select_1.options[window.document.form_1.select_1.selectedIndex].value
  } else {
    if (open_in_newwindow==0)
//    window.open(url_array[window.document.form_1.select_1.selectedIndex][window.document.form_1.select_2.selectedIndex],"_blank");
   //else
    window.location=url_array[window.document.form_1.select_1.selectedIndex][window.document.form_1.select_2.selectedIndex]
  }
}

function set_orig()
{
  window.document.form_1.select_1.selectedIndex = 0;
  window.document.form_1.select_2.selectedIndex = 0;
}

window.onload=set_orig
