// <!--

   // 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 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 RTSArray = new Array('RTS101 - Survival Skills &amp; Automotive Basics','RTS102 - Establishing a Business Relationship','RTS103 - Needs Fulfillment','RTS104 - Picture Perfect Presentation','RTS105 - Value Building Demo','RTS106 - Negotiation Basics','RTS107 - Apply the Proper Close','RTS108 - Finalizing the Deal and Delivery');
	  var LPArray = new Array('LP101  Introduction to Leasing','LP102  Leasing Terminology and Calculations','LP103  Benefits of Leasing for Your Customer','LP104  Integrating Leasing into the Sales Presentation ','LP105  Presenting the Leasing Alternative ','LP106  Objections and Concerns','LP107  Generating Lease Renewals ','LP108  The Lease End Process');
	  var LDArray = new Array('LD101 Building a Winning Team ','LD102 Implementing Positive Change ','LD103 10 Styles of Effective Leadership ','LD104 Motivating a Winning Team ','LD105 Coaching vs. Managing ','LD106 Leading by Objectives ','LD107 The Clock & The Compass','LD108 Most Common Mistakes');
	  var FIArray = new Array('FI101 Vision & Strategy ','FI102 Gaining Rapid Rapport ','FI103 Rediscovering Motive and Decision ','FI104 Best Ideas ','FI105 Telling a Compelling Story and F&amp;I Map ','FI106 Overcoming F&amp;I Objections I ','FI106 Overcoming F&amp;I Objections II ','FI108 Preventing Buyer\'s Remorse');
	  
	  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 "FI": if (courseTitleLoc.selectedIndex != 0) {
                        for (var i = 0; i < 8 ; i++) {
                              optionCode = document.createElement("option");
                              optionCode.setAttribute("value","FI10" +(i+1));
                              optionCode.innerHTML = FIArray[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 "Leasing Presentation": if (courseTitleLoc.selectedIndex != 0) {
                        for (var i = 0; i < 8 ; i++) {
                              optionCode = document.createElement("option");
                              optionCode.setAttribute("value","LP10" +(i+1));
                              optionCode.innerHTML = LPArray[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 "Road to the Sale": if (courseTitleLoc.selectedIndex != 0) {
                             for (var i = 0; i < 8 ; i++) {
                                   optionCode = document.createElement("option");
                                   optionCode.setAttribute("value","RTS10" +(i+1));
                                   optionCode.innerHTML = RTSArray[i];
                                   courseNameLoc.appendChild( optionCode );
                             }	// end for
                          }	// end if
                          break;
         default: window.alert("No Course Selected!\nPlease select a course.");
                  break;
      }	// end switch
   }	// end populateYears



// -->
