<!--
function setDynaListGQ(arrDL){

 var oList1GQ = document.forms[arrDL[2]].elements[arrDL[1]];
 var oList2GQ = document.forms[arrDL[4]].elements[arrDL[3]];
 var arrListGQ = arrDL[5];
 
 clearDynaListGQ(oList2GQ);
 
 if (oList1GQ.selectedIndex == -1){
  oList1GQ.selectedIndex = 0;
 }

 populateDynaListGQ(oList2GQ, oList1GQ[oList1GQ.selectedIndex].value, arrListGQ);
 return true;
}
 
function clearDynaListGQ(oList1){

 for (var i = oList1.options.length; i >= 0; i--){
  oList1.options[i] = null;
 }
 
 oList1.selectedIndex = -1;
}
 
/*This is a modified function from the original MM script. Mick White 
added the first line of oList so there would be an initial selection.
Needed this if there is only 1 child menu item, otherwise, the single
child menu item would be already hihghlighted and you can not select 
it. Also good for validation purposes so you can set the .js 
validation to not allow the first selection.
*/

function populateDynaListGQ(oList1, nIndex1, aArray1){
oList1[oList1.length]= new Option("Choose Model");
 for (var i = 0; i < aArray1.length; i= i + 3){
  if (aArray1[i] == nIndex1){
   oList1.options[oList1.options.length] = new Option(aArray1[i + 1], aArray1[i + 2]);
  }
  //oList.size=oList.length //You need to comment out this line of the function if you use this mod
 }

//A quick mod here, I changed the ==0 to ==1 so that the length 
//takes into account the Please select option from above.
 if (oList1.options.length == 1){
  //oList.options[oList.options.length] = new Option("Models not listed");
 }
 oList1.selectedIndex = 0; 
 //oList.focus();
}


//=====================================================
function val_getquote(theForm)
{

 if (theForm.CatKeyGQ.selectedIndex == 0)
  {
    alert("GET QUOTE \n____________________________\n\nPlease choose car type");
    theForm.CatKeyGQ.focus();
    return (false);
  }

 if (theForm.ModelIDGQ.selectedIndex == 0)
  {
    alert("GET QUOTE \n____________________________\n\nPlease choose model");
    theForm.ModelIDGQ.focus();
    return (false);
  }
 if (theForm.RentalGQ.selectedIndex == 0)
  {
    alert("GET QUOTE \n____________________________\n\nPlease choose rental Period");
    theForm.RentalGQ.focus();
    return (false);
  }


return (true);
}

//-->
