function showSmokeFreq()
{
  var smoke;
  var oForm;
  oForm = document.myForm;
   smoke = oForm.SMOKE.selectedIndex;
  if(smoke == 1 || smoke == 2)
  document.getElementById('SMOKEFREQ').className = 'showMe';
  else
  {
  oForm.SMOKEFREQ.selectedIndex = 0;
  document.getElementById('SMOKEFREQ').className = 'hideMe';
  }
}

function showConsumptionAverageSpend(){
var oForm;
 oForm = document.myForm;
  if((oForm.CONSUMPTIONTYPE[3].checked == true) || (oForm.CONSUMPTIONTYPE[4].checked == true) || (oForm.CONSUMPTIONTYPE[5].checked == true))
  document.getElementById('CONSUMPTIONAVERAGESPEND').className = 'showMe';
  else
  {
  oForm.CONSUMPTIONAVERAGESPEND.selectedIndex = 0;
  document.getElementById('CONSUMPTIONAVERAGESPEND').className = 'hideMe';
  }
}

function showPayWave(){
      var oForm;
  oForm = document.myForm;
  if(oForm.FINANCIALSERVICES[2].checked == true)
  document.getElementById('FINANCIALPAYWAVE').className = 'showMe';
  else
  {
  oForm.FINANCIALPAYWAVE.selectedIndex = 0;
  document.getElementById('FINANCIALPAYWAVE').className = 'hideMe';
  }
}

function showVehicleItems()
{
var veh;
var oForm;
  oForm = document.myForm;
veh = oForm.VEHICLE.selectedIndex;
 if(veh == 1)

 {
    document.getElementById('VEHICLESTYLE').className = 'showMe';
    document.getElementById('VEHICLEENGINE').className = 'showMe'; 
    document.getElementById('VEHICLENEWSECONDHAND').className = 'showMe';

 }


 else
 {
 oForm.VEHICLESTYLE.selectedIndex = 0;
 oForm.VEHICLEENGINE.selectedIndex = 0;
 oForm.VEHICLENEWSECONDHAND.selectedIndex = 0;
 document.getElementById('VEHICLESTYLE').className = 'hideMe';
 document.getElementById('VEHICLEENGINE').className = 'hideMe';  
 document.getElementById('VEHICLENEWSECONDHAND').className = 'hideMe'; 
 }
}

function showBusinessTravelItems()
{
 var TravelBus;
 var oForm;
  oForm = document.myForm;
 TravelBus = oForm.TRAVELBUS.selectedIndex;
 if (TravelBus > 1)
 {
  document.getElementById('TRAVELBUSNIGHTS').className = 'showMe';
  document.getElementById('TRAVELBUSHOTEL').className = 'showMe';
  document.getElementById('TRAVELBUSDESTINATION').className = 'showMe';
  }

  else
  {
  oForm.TRAVELBUSNIGHTS.selectedIndex = 0;
  oForm.TRAVELBUSHOTEL.selectedIndex = 0;
  document.getElementById('TRAVELBUSNIGHTS').className = 'hideMe';
  document.getElementById('TRAVELBUSHOTEL').className = 'hideMe';
   for(var i=0;i<oForm.TRAVELBUSDESTINATION.length;i++)
   {
    oForm.TRAVELBUSDESTINATION[i].checked = false;
   }
    document.getElementById('TRAVELBUSDESTINATION').className = 'hideMe';

  }

 }



 function showLeisureTravelItems()

 {
 var TravelLeis;
 var oForm;
  oForm = document.myForm;
 TravelLeis = oForm.TRAVELLEIS.selectedIndex;
 if (TravelLeis > 1)
 {
  document.getElementById('TRAVELLEISNIGHTS').className = 'showMe';
  document.getElementById('TRAVELLEISHOTEL').className = 'showMe';
  document.getElementById('TRAVELLEISDESTINATION').className = 'showMe';
  }
  else
  {
  oForm.TRAVELLEISNIGHTS.selectedIndex = 0;
  oForm.TRAVELLEISHOTEL.selectedIndex = 0;
  document.getElementById('TRAVELLEISNIGHTS').className = 'hideMe';
  document.getElementById('TRAVELLEISHOTEL').className = 'hideMe';
  for(var i=0;i<oForm.TRAVELLEISDESTINATION.length;i++)
   {
    oForm.TRAVELLEISDESTINATION[i].checked = false;
   }
   document.getElementById('TRAVELLEISDESTINATION').className = 'hideMe';
 }

 }

function collectionLoad()
{
 if(document.getElementById('VEHICLE') != null)
 showVehicleItems();
 if(document.getElementById('TRAVELBUS') != null)
 showBusinessTravelItems();
 if(document.getElementById('TRAVELLEIS') != null)
 showLeisureTravelItems();
 if(document.getElementById('SMOKEFREQ') != null)
 showSmokeFreq();
 if(document.getElementById('FINANCIALPAYWAVE') != null)
 showPayWave();
 if(document.getElementById('CONSUMPTIONAVERAGESPEND') != null)
 showConsumptionAverageSpend();
}




