<!--
function populateReferral() {

   var CityList = document.mainform.city;
   
   // Clear out the list of referral choices
   ClearOptions(document.mainform.referral);
   
   if (CityList[CityList.selectedIndex].value == "seattlem1")
   {
			AddToOptionList(document.mainform.referral, "");
      AddToOptionList(document.mainform.referral, "Google Search");
      AddToOptionList(document.mainform.referral, "Ruby Slipper Guide");
      AddToOptionList(document.mainform.referral, "Red Tricycle");
      AddToOptionList(document.mainform.referral, "Other Internet Search");
      AddToOptionList(document.mainform.referral, "Facebook");
      AddToOptionList(document.mainform.referral, "Teachstreet");
      AddToOptionList(document.mainform.referral, "Steinway.com");
      AddToOptionList(document.mainform.referral, "Seattle's Child Magazine");
      AddToOptionList(document.mainform.referral, "ParentMap Magazine");
      AddToOptionList(document.mainform.referral, "I.S. and Beyond Magazine");
      AddToOptionList(document.mainform.referral, "Valpak");
      AddToOptionList(document.mainform.referral, "Postcard in the Mail");
      AddToOptionList(document.mainform.referral, "Bellevue Reporter Newspaper");
      AddToOptionList(document.mainform.referral, "Redmond Reporter Newspaper");
      AddToOptionList(document.mainform.referral, "Mercer Island Reporter Newspaper");
      AddToOptionList(document.mainform.referral, "Issaquah/Sammamish Reporter Newspaper");
      AddToOptionList(document.mainform.referral, "Issaquah Press Newspaper");
      AddToOptionList(document.mainform.referral, "Sammamish Review Newspaper");
      AddToOptionList(document.mainform.referral, "Newcastle News Newspaper");
      AddToOptionList(document.mainform.referral, "Seattle Children's Theatre Playbill");
      AddToOptionList(document.mainform.referral, "Tradeshow Booth");
      AddToOptionList(document.mainform.referral, "Referral from Another Student");
      AddToOptionList(document.mainform.referral, "Referral from a Music Store");
      AddToOptionList(document.mainform.referral, "Referral from a Music Instructor");
      AddToOptionList(document.mainform.referral, "Other");
   }
   else if (CityList[CityList.selectedIndex].value == "orangem1")
   {
			AddToOptionList(document.mainform.referral, "");
      AddToOptionList(document.mainform.referral, "Google Search");
      AddToOptionList(document.mainform.referral, "Youth Expo");
      AddToOptionList(document.mainform.referral, "Yahoo Search");
      AddToOptionList(document.mainform.referral, "Yahoo Local");
      AddToOptionList(document.mainform.referral, "Craig's List");
      AddToOptionList(document.mainform.referral, "Other Internet Search");
      AddToOptionList(document.mainform.referral, "OC Parenting Magazine");
      AddToOptionList(document.mainform.referral, "OC Family Magazine");
      AddToOptionList(document.mainform.referral, "Caring Kids & Communities");
      AddToOptionList(document.mainform.referral, "OC Symphony Program");
      AddToOptionList(document.mainform.referral, "School News Roll Call");
      AddToOptionList(document.mainform.referral, "TeachStreet.com");
      AddToOptionList(document.mainform.referral, "OrangeCounty.net");
      AddToOptionList(document.mainform.referral, "Steinway.com");
      AddToOptionList(document.mainform.referral, "LearningMusician.com");
      AddToOptionList(document.mainform.referral, "Facebook or MySpace Pages");
      AddToOptionList(document.mainform.referral, "Postcard in the Mail");
      AddToOptionList(document.mainform.referral, "Referral from Another Student");
      AddToOptionList(document.mainform.referral, "Referral from a Music Store");
      AddToOptionList(document.mainform.referral, "Referral from a Music Instructor");
      AddToOptionList(document.mainform.referral, "Other");
   }
   else
   {
   		AddToOptionList(document.mainform.referral, "");
      AddToOptionList(document.mainform.referral, "Google Search");
      AddToOptionList(document.mainform.referral, "Other Internet Search");
      AddToOptionList(document.mainform.referral, "Magazine Ad");
      AddToOptionList(document.mainform.referral, "Newspaper Ad");
      AddToOptionList(document.mainform.referral, "Yellow Pages");
      AddToOptionList(document.mainform.referral, "Sign or Flyer");
      AddToOptionList(document.mainform.referral, "Postcard in the Mail");
      AddToOptionList(document.mainform.referral, "Radio Ad");
      AddToOptionList(document.mainform.referral, "Referral from Another Student");
      AddToOptionList(document.mainform.referral, "Referral from a Music Store");
      AddToOptionList(document.mainform.referral, "Referral from a Music Instructor");
      AddToOptionList(document.mainform.referral, "Other");
   }
}


function ClearOptions(OptionList) {

   // Always clear an option list from the last entry to the first
   for (x = OptionList.length; x >= 0; x = x - 1) {
      OptionList[x] = null;
   }
}


function AddToOptionList(OptionList, OptionValue) {
   
   // Option's text will equal its value
   var OptionText=OptionValue;
   
   // Add option to the bottom of the list
   OptionList[OptionList.length] = new Option(OptionText, OptionValue);
}




//-->
