function fetchMake()
{
	var brand = document.getElementById("brand").options[document.getElementById("brand").selectedIndex].value;
	var model = document.getElementById("model");

	var spiperModels = new Array("--please select--", "29LRLBS","30LSTS","33LRLBS","33LCDTS","33LBHTS");
	var cedarModels = new Array("--please select--","34RLTS","32TK");
	var wModels = new Array("-please select-","24RL","27RLWB","27BHWB","28RK","29BHBP", "29RLBS","29RKBS", "30RLBS","31QBH");
	var sliteModels = new Array("-please select-","Spirit Slide-Out","Roper");

	clearOptions();

	if (brand == "Sandpiper")
	{
		for (var i = 0; i < spiperModels.length; i++)
		{
			var opt = document.createElement("OPTION");
			opt.text = spiperModels[i];
			opt.value = spiperModels[i];
			 try
   {
       model.add(opt, null); // standards compliant; doesn't work in IE
     }
     catch(ex)
   {
        model.add(opt); // IE only
     }

		}
	}
	else if (brand == "Cedar Creek")
	{
		for (var i = 0; i < cedarModels.length; i++)
		{
			var opt = document.createElement("OPTION");
			opt.text = cedarModels[i];
			opt.value = cedarModels[i];
			 try
   {
       model.add(opt, null); // standards compliant; doesn't work in IE
     }
     catch(ex)
   {
        model.add(opt); // IE only
     }

		}
	}
	else if (brand == "Wildcat")
	{
		for (var i = 0; i < wModels.length; i++)
		{
			var opt = document.createElement("OPTION");
			opt.text = wModels[i];
			opt.value = wModels[i];
			 try
   {
       model.add(opt, null); // standards compliant; doesn't work in IE
     }
     catch(ex)
   {
        model.add(opt); // IE only
     }

		}
	}
	else if (brand == "Silverlite")
	{
		for (var i = 0; i < sliteModels.length; i++)
		{
			var opt = document.createElement("OPTION");
			opt.text = sliteModels[i];
			opt.value = sliteModels[i];
			 try
   {
       model.add(opt, null); // standards compliant; doesn't work in IE
     }
     catch(ex)
   {
        model.add(opt); // IE only
     }

		}
	}
}


function clearOptions()
{
	var model = document.getElementById("model");
  	var i;
  	for (i = model.length - 1; i>=0; i--) 
	{
      		model.remove(i);
  	}
}