/*
datasets=new Array();
datasets[0]=", Please select a ForkLift type...".split(",");
datasets[1]="Toyota, Battery Electric, Internal Combustion, Skid Steer Loader, Towing Tractor".split(",");
datasets[2]="BT, Hand Pallet Trucks, Low Lifters, Stackers, Reach Trucks, Narrow Aisles Trucks, Order Pickers, Counterbalance".split(",");
datasets[3]="Raymond, Pallet Trucks, Stackers, Reach Trucks, Order Pickers, Swing Reach, Side Loaders, Counterbalance, Fiddler 4-D Trucks".split(",");
*/

datasets		= new Array();
datasets[0] = "Toyota, Battery Electric, Internal Combustion, Skid Steer Loader, Towing Tractor".split(", ");
datasets[1] = "BT, Hand Pallet Trucks, Low Lifters, Stackers, Reach Trucks, Narrow Aisles Trucks, Order Pickers, Counterbalance".split(",");
datasets[2] = "Raymond, Pallet Trucks, Stackers, Reach Trucks, Order Pickers, Swing Reach, Side Loaders, Counterbalance, Fiddler 4-D Trucks".split(",");

function populateselect(){
	/* Define Form elements (lesser typing)
	 * myForm is the form name, select1 and select 2 the selectboxes.
	 * Change this to your names in the HTML document
	 */
	theform=document.Form1;
	sel1 = theform.Manufacturer;
	sel2 = theform.Type;

	sel1.options.length = 0;
	sel1.options.length = datasets.length;
	for (i=0;i<datasets.length;i++){
		sel1.options[i].text = datasets[i][0];
		sel1.options[i].value = datasets[i][0];
		}
	sel1.selectedIndex=0;
	changeselect(0);
	}

function changeselect(){
	/* Define Form elements (lesser typing)
	 * myForm is the form name, select1 and select 2 the selectboxes.
	 * Change this to your names in the HTML document
	 */
	theform=document.Form1;
	sel1 = theform.Manufacturer
	sel2 = theform.Type

	dataset=sel1.selectedIndex;
	sel2.options.length = 0;
	sel2.options.length = datasets[dataset].length-1;
	for (i=1;i<((datasets[dataset].length));i++){
		sel2.options[i-1].text = datasets[dataset][i];
		sel2.options[i-1].value = datasets[dataset][i];
		}
	sel2.selectedIndex=0;
}

