<!--

// first combo box

	data_1 = new Option("1", "$");
	data_2 = new Option("2", "$$");
	//data_3 = new Option("3", "$$$");
	//data_4 = new Option("4", "$$$$");
	//data_5 = new Option("5", "$$$$$");
	data_3 = new Option("6", "$$$$$$");		

// second combo box

	data_1_1 = new Option("Atmosphere", "Atmosphere");
	data_1_2 = new Option("Attitude", "Attitude");
	data_1_3 = new Option("Cleanliness", "Cleanliness");
	data_1_4 = new Option("Food Quality", "Food Quality");
	data_1_5 = new Option("Other", "Other");
	
	
	data_2_1 = new Option("Atmosphere", "Atmosphere");
	data_2_2 = new Option("Attitude", "Attitude");
	data_2_3 = new Option("Cleanliness", "Cleanliness");
	data_2_4 = new Option("Food Quality", "Food Quality");
	data_2_6 = new Option("Other", "Other");
	data_2_5 = new Option("Service", "Service");
	
	
	//data_3_1 = new Option("Menu Suggestion", "Menu Suggestion");
	//data_4_1 = new Option("Real Estate", "Real Estate");
	//data_5_1 = new Option("Employment", "Employment");
	
	data_3_1 = new Option("Catering Requests", "Catering Requests");
	data_3_2 = new Option("Contributions", "Contributions");
	//data_3_3 = new Option("E-Club", "E-Club");
	data_3_3 = new Option("Gift Card Balances", "Gift Card Balances");
	data_3_4 = new Option("Menu Requests", "Menu Requests");
	data_3_5 = new Option("New Location Request", "New Location Request");
	data_3_6 = new Option("Nutritional Information", "Nutritional Information");
	data_3_7 = new Option("Other Requests", "Other Requests");
	data_3_8 = new Option("Personnel Issues", "Personnel Issues");
	data_3_9 = new Option("Purchasing", "Purchasing");
	data_3_10 = new Option("Real Estate", "Real Estate");
	data_3_11 = new Option("Sponsorships", "Sponsorships");
	data_3_12 = new Option("W2's", "W2's");
	
	

// other parameters

    displaywhenempty=""
    valuewhenempty=-1

    displaywhennotempty="Specify..."
    valuewhennotempty=0


function change(currentbox) {
	//alert(currentbox);
	numb = currentbox.id.split("_");
	currentbox = numb[1];

    i=parseInt(currentbox)+1

// empty all combo boxes following the current one

    while ((eval("typeof(document.getElementById(\"combo_"+i+"\"))!='undefined'")) &&
           (document.getElementById("combo_"+i)!=null)) {
         son = document.getElementById("combo_"+i);
	     // I empty all options except the first one (it isn't allowed)
	     for (m=son.options.length-1;m>0;m--) son.options[m]=null;
	     // I reset the first option
	     son.options[0]=new Option(displaywhenempty,valuewhenempty)
	     i=i+1
    }


// create the string with the "base" name ("stringa"), ie. "data_1_0"
// to which I'll add _0,_1,_2,_3 etc to obtain the name of the combo box to fill

    stringa='data'
    i=0
    while ((eval("typeof(document.getElementById(\"combo_"+i+"\"))!='undefined'")) &&
           (document.getElementById("combo_"+i)!=null)) {
           eval("stringa=stringa+'_'+document.getElementById(\"combo_"+i+"\").selectedIndex")
           if (i==currentbox) break;
           i=i+1
    }


// filling the "son" combo (if exists)

    following=parseInt(currentbox)+1

    if ((eval("typeof(document.getElementById(\"combo_"+following+"\"))!='undefined'")) &&
       (document.getElementById("combo_"+following)!=null)) {
       son = document.getElementById("combo_"+following);
       stringa=stringa+"_"
       i=0
       while ((eval("typeof("+stringa+i+")!='undefined'")) || (i==0)) {

       // if there are no options, empty the first option of the "son" combo
	   // otherwise  put "-select-" in it

	   	  if ((i==0) && eval("typeof("+stringa+"0)=='undefined'"))
	   	      if (eval("typeof("+stringa+"1)=='undefined'"))
	   	         eval("son.options[0]=new Option(displaywhenempty,valuewhenempty)")
	   	      else
	             eval("son.options[0]=new Option(displaywhennotempty,valuewhennotempty)")
	      else
              eval("son.options["+i+"]=new Option("+stringa+i+".text,"+stringa+i+".value)")
	      i=i+1
	   }
       //son.focus()
       i=1
       combostatus=''
       cstatus=stringa.split("_")
       while (cstatus[i]!=null) {
          combostatus=combostatus+cstatus[i]
          i=i+1
          }
       return combostatus;
    }
}

//-->
