// <!--

   // This function will populate the class drop down when a make is chosen
   function populateClass() {
      
	  var ECArray = new Array('EC101 - Auto Responder Best Practices','EC102 - Communication Skills','EC103 - Engage Your Internet Client','EC104 - Critical Skills to Engage Your Internet Client','EC105 - Recognizing Personalities via E-mail','EC106 - Re-Engaging Your Internet Leads','EC107 - Maximizing Your Internet Opportunites','EC108 - The 35-Day Relationship');
      var BDArray = new Array('BD101 - Gathering Guest Information','BD102 - Communication Skills for Today\'s Customers','BD103 - Incoming Phone-up Mastery','BD104 - Why FUFU?','BD105 - Objection Mastery I','BD106 - Objections II','BD107 - Owner Base I','BD108 - Owner Base II');
      var LDArray = new Array('LD101 - Become a Top-Tier COACH','LD102 - Implementing Positive Change','LD103 - Players of Pretenders','LD104 - Conflict Resolution Made Easy','LD105 - The ABC\'s of the Unified Team','LD106 - Driving Achievement through Your Team','LD107 - Creating Team Synergies','LD108 - The Secrets to Increasing Contribution');
      var SDArray = new Array('SD101 - Implementing the Service Appointment Model','SD102 - Top 10 Service Objections','SD103 - Mastering the Incoming Service Call','SD104 - First-Time Service Scheduling','SD105 - Increase Customer Satisfaction','SD106 - Creating Service Loyalty','SD107 - Implementing the Complaint Resolution Plan','SD108 - Re-delivery Mastery');
      var SPArray = new Array('SP101 - Survival Skills &amp; Automotive Basics','SP102 - Establishing a Business Relationship (EBR) Meet &amp; Greet','SP103 - Needs Fulfillment (Fact Finding)','SP104 - Picture Perfect Presentation (Walk Around)','SP105 - Value Building Demo (Demonstration)','SP106 - Funnel to the &quot;One Thing&quot; (Close)','SP107 - Apply the Proper Close','SP108 - Negotiations Made Easy','SP109 - Finalizing the Deal','SP110 - Delivery &amp; the 3-Day Call');
	  
	  var courseNameLoc = document.getElementById("courseName");	// Grab the <select> element for 'year'
      var courseTitleLoc = document.getElementById("courseTitle");	// Grab the <select> element for 'make'
      var courseTitleType = courseTitleLoc.options[courseTitleLoc.selectedIndex].value;	// Grab selected make

      courseNameLoc.disabled = false;	// activate drop down list
      //document.getElementById("chooseClass").style.color = "#000088";	// Activate choose year header
      //document.getElementById("compareModel").innerHTML = "";	// Remove comparision button

      //document.getElementById("model").disabled = true;	// De-activate model drop down
      //document.getElementById("chooseCourse").style.color = "#bbbbff";	// De-activae model header

      // Clear the year drop down list
      courseNameLoc.innerHTML = "";

      // Populate the first <option> with a 'Choose your year' default
      var optionCode = document.createElement("option");
      optionCode.setAttribute("value","none");
      optionCode.innerHTML = "Choose a class";
      courseNameLoc.appendChild( optionCode );


      // Run script to populate years based on the make choosen
      switch (courseTitleType) {
         case "e-Commerce": if (courseTitleLoc.selectedIndex != 0) {
                          for (var i = 0; i < 8 ; i++) {
                                optionCode = document.createElement("option");
                                optionCode.setAttribute("value","EC10" +(i+1));
                                optionCode.innerHTML = ECArray[i];
                                courseNameLoc.appendChild( optionCode );
                             }	// end for
                       }	// end if
                       break;
         case "Business Development": if (courseTitleLoc.selectedIndex != 0) {
                         for (var i = 0; i < 8 ; i++) {
                               optionCode = document.createElement("option");
                               optionCode.setAttribute("value","BD10" +(i+1));
                               optionCode.innerHTML = BDArray[i];
                               courseNameLoc.appendChild( optionCode );
                         }	// end for
                      }	// end if
                      break;
         case "Leadership Development": if (courseTitleLoc.selectedIndex != 0) {
                        for (var i = 0; i < 8 ; i++) {
                              optionCode = document.createElement("option");
                              optionCode.setAttribute("value","LD10" +(i+1));
                              optionCode.innerHTML = LDArray[i];
                              courseNameLoc.appendChild( optionCode );
                        }	// end for
                     }	// end if
                     break;
         case "Service Development": if (courseTitleLoc.selectedIndex != 0) {
                          for (var i = 0; i < 8 ; i++) {
                                optionCode = document.createElement("option");
                                optionCode.setAttribute("value","SD10" +(i+1));
                                optionCode.innerHTML = SDArray[i];
                                courseNameLoc.appendChild( optionCode );
                          }	// end for
                       }	// end if
                       break;
         case "Sales Path": if (courseTitleLoc.selectedIndex != 0) {
                             for (var i = 0; i < 10 ; i++) {
                                   optionCode = document.createElement("option");
                                   if (i==9) { optionCode.setAttribute("value","SP110");}
									else{ optionCode.setAttribute("value","SP10" +(i+1));}
                                   optionCode.innerHTML = SPArray[i];
                                   courseNameLoc.appendChild( optionCode );
                             }	// end for
                          }	// end if
                          break;
         default: window.alert("No Course Selected!\nPlease select a course.");
                  break;
      }	// end switch
   }	// end populateYears



// -->