<!--

var num_of_cats = 11; // 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("Please select a search category"); // This is the first (blank) category. Don't mess with it.

option_array[1] = new Array("-- Select One --",
"Loggers", 
"Steam Donkeys", 
"Donkey Engines",
"Diesel Donkeys",
"Lumber Camps",
"Cutover Lands",
"Pile Drivers");

option_array[2] = new Array("-- Select One --",
"Mills",
"Hotels",
"Stores and Shops",
"Canneries",
"Restaurants");

option_array[3] = new Array("-- Select One --",
"Pioneers",
"School Childrens",
"Families",
"Couples",
"Group Portraits");

option_array[4] = new Array("-- Select One --",
"Dancers",
"Military personnels", 
"Waitresses", 
"Scientists",
"Teachers",
"Cooks",
"Laborers",
"Woodcutters");

option_array[5] = new Array("-- Select One --",
"Railroads",
"Automobiles",
"Trucks",
"Canoes",
"Boats");

option_array[6] = new Array("-- Select One --",
"Dwellings",
"Interiors",
"Cabins",
"Barns",
"Churches");

option_array[7] = new Array("-- Select One --",
"Bridges",
"Trestles", 
"Watertowers",
"Piers and Wharves");

option_array[8] = new Array("-- Select One --",
"Horses",
"Dogs",
"Elk",
"Pack Animals",
"Fish",
"Whales");

option_array[9] = new Array("-- Select One --",
"Lakes and ponds",
"Rivers",
"Oceans",
"Bays",
"Waterfalls");

option_array[10] = new Array("-- Select One --",
"Parades and processions",
"Spectatorss",
"Celebrations");

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("#",
"javascript:openWindow('/cdm4/results.php?CISORESTMP=/cdm4/results.php&CISOVIEWTMP=/cdm4/item_viewer.php&CISOMODE=grid&CISOGRID=thumbnail,A,1;title,A,1;subjec,A,1;descri,200,0;none,A,0;20;title,none,none,none,none&CISOBIB=title,A,1,N;subjec,A,0,N;descri,200,0,N;none,A,0,N;none,A,0,N;20;title,none,none,none,none&CISOTHUMB=20%20(4x5);title,none,none,none,none&CISOTITLE=20;title,none,none,none,none&CISOHIERA=20;subjec,title,none,none,none&CISOSUPPRESS=1&CISOTYPE=link&CISOOP1=all&CISOFIELD1=subjec&CISOBOX1=Logger*&CISOOP2=all&CISOFIELD2=subjec&CISOBOX2=&CISOOP3=all&CISOFIELD3=descri&CISOBOX3=&CISOOP4=all&CISOFIELD4=CISOSEARCHALL&CISOBOX4=&c=all&CISOROOT=%2Fll%2C%2Fmtn%2C%2Fptec%2C%2Fsocial%2C%2Fwastate%2C%2Fpioneerlife%2C%2Fcchs%2C%2FCMPindiv%2C%2Fftm%2C%2Fmcrc%2C%2Fnmai%2C%2Fnps%2C%2Fnol%2C%2Fpwb%2C%2Fmohai-thompson%2C%2Fclarkkinsey%2C%2Fusfs')",
"",
"",
"",
"",
"",
"",
"");

url_array[2] = new Array("#",
"",
"",
"",
"",
"",
"",
"",
"");

url_array[3] = new Array("#",
"",
"",
"",
"",
"",
"",
"",
"");

url_array[4] = new Array("#",
"",
"",
"",
"",
"",
"",
"",
"");

url_array[5] = new Array("#",
"",
"",
"",
"",
"",
"",
"",
"");

url_array[6] = new Array("#",
"",
"",
"",
"",
"",
"",
"",
"");

url_array[7] = new Array("#",
"",
"",
"",
"",
"",
"",
"",
"");

url_array[8] = new Array("#",
"",
"",
"",
"",
"",
"",
"",
"");

url_array[9] = new Array("#",
"",
"",
"",
"",
"",
"",
"",
"");

url_array[10] = new Array("#",
"",
"",
"",
"",
"",
"",
"",
"");

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 box()

{
  if (window.document.form_1.select_2.selectedIndex == 0)
  {
    alert("Please make a selection.");
  } else {
    if (open_in_newwindow==1)
    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

// -->