// 1- 2 Week or One-Month Lenses
var onemonthlense	 = 	[
			["AIR OPTIX AQUA",'AIR OPTIX&reg; AQUA'],
			["AIR OPTIX NIGHT & DAY AQUA","AIR OPTIX&reg; NIGHT & DAY&reg; AQUA"],
			["O2OPTIX","O2OPTIX&reg;"],
			["ACUVUE ADVANCE","ACUVUE&reg; ADVANCE&reg;"],
			["ACUVUE 2","ACUVUE&reg; 2&trade;"],
			["ACUVUE OASYS","ACUVUE&reg; OASYS&trade;"], 		
            ["Biofinity","Biofinity&reg;"],
            ["SofLens","SofLens&reg;"],
            ["Other","other"]
          ];
  
// 2- one-day lenses
//Array #2
var onedaylense	 = 	[	
            ["DAILIES AquaComfort Plus","DAILIES&reg; AquaComfort Plus&reg;"],
            ["Focus DAILIES","Focus&reg; DAILIES&reg;"],
			["DAY ACUVUE","1-DAY ACUVUE&reg;"],
			["1-day-acuvue-trueye","1-DAY ACUVUE&reg; TruEye&trade;"], 
			["1-Day ACUVUE MOIST","1-DAY ACUVUE&reg; MOIST&reg;"],            
			["ClearSIght 1-Day","ClearSight&trade; 1-Day"],
			["Proclear 1-Day","Proclear&reg; 1-Day"],
			["SoftLens Daily Disposable","SoftLens&reg; Daily Disposable"],
			["Other","Other"]
          ];

// 3- Contact Lenses for Astigmatism/Toric
//Array #3
var astiglense	 = 	[	
            ["AIR OPTIX for ASTIGMATISM","AIR OPTIX&reg; for ASTIGMATISM"],
			["Focus DAILIES Toric","Focus&reg; DAILIES&reg; Toric"],
			["FreshLook Colorblends Toric","FreshLook Colorblends Toric"], 
			["ACUVUE ADVANCE for ASTIGMATISM","ACUVUE&reg; ADVANCE&reg; for ASTIGMATISM"],
			["ACUVUE OASYS for ASTIGMATISM","ACUVUE&reg; OASYS&trade; for ASTIGMATISM"],
			["ClearSight 1-Day Toric","ClearSight&trade; 1-Day Toric"],
			["Proclear Toric","Proclear&reg; Toric"],
			["PureVision Toric","PureVision&reg; Toric"],
			["SofLens for Astigmatism","SofLens&reg; for Astigmatism"],
			["Other","Other"]
          ];

// 4- Contact Lenses for Presbyopia/Multi-focal/Progressives
// Array #4
var presbylense = [
            ["AIR OPTIX AQUA Multifocal","AIR OPTIX&reg; AQUA Multifocal"],
			["Focus DAILIES Progressives","Focus&reg; DAILIES&reg; Progressives"],
			["ACUVUE OASYS for PRESBYOPIA","ACUVUE&reg; OASYS&trade; for PRESBYOPIA"],
			["ACUVUE BIFOCAL","ACUVUE&reg; BIFOCAL"],
			["Proclear Multifocal","Proclear&reg; Multifocal"],
			["PureVision Multi-focal","PureVision&reg; Multi-focal"],
			["SofLens Multi-focal","SofLens&reg; Multi-focal"],
			["Other","Other"]
          ];	
		  

// 5- Color Contact Lenses
// Array #5
var colorlense = [
            ["FreshLook","FreshLook&reg;"],
            ["FreshLook ONE-DAY","FreshLook&reg; ONE-DAY"],
            ["FreshLook Colorblends Toric","FreshLook&reg; Colorblends Toric"],
            ["ACUVUE 2 COLOURS","ACUVUE&reg; 2 COLOURS&trade;"],
			["Other","Other"]
          ];







//gets the colors based on product
function getColors( id )
{
  var form = document.form;
  var eachOption;
  //when ever user changes the selection we have to override the passed values of product and model
   useJSForProduct = true;

  //reset the current color option list
  form.b3_Product_Name.options.length = null;
  form.b3_Product_Name.style.display = "block";
  document.getElementById('contlensbrand').style.display = "block";
  if (id==0){
	form.b3_Product_Name.style.display = "none";
  }
  else if (id == "2 Week or One-Month Lenses")
  {
    colorArray = onemonthlense;
    pName = "onemonthlense";
  }
  else if (id == "One-Day Lenses")
  {
    colorArray = onedaylense;
    pName = "onedaylense";
  }
  else if (id == "Contact Lenses for AstigmatismToric")
  {
    colorArray = astiglense;
    pName = "astiglense";
  }
  else if (id == "Contact Lenses for PresbyopiaMultifocalProgressives")
  {
    colorArray = presbylense;
    pName = "presbylense";
  }

   else if (id == "Color Contact Lenses")
  {
    colorArray = colorlense;
    pName = "colorlense";
  }

   else if (id == "dont know")
  {
	colorArray = "";
   form.b3_Product_Name.style.display = "none";
   document.getElementById('contlensbrand').style.display = "none";
  }

   else if (id == "Dont Wear Contacts")
  {
	   colorArray = "";
   form.b3_Product_Name.style.display = "none";
   document.getElementById('contlensbrand').style.display = "none";
  }
  form.b3_Product_Name.options[0] = new Option("Select one","None");
  for (var i = 0; i < colorArray.length; i++)
  {
    eachOption = colorArray[i];
    form.b3_Product_Name.options[i+1] = new Option(eachOption[1],eachOption[0]);
	form.b3_Product_Name.options[i+1].innerHTML = eachOption[1];
  }
}


