/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Rick Johnson :: http://www.vistaviews.net/myPage/ */

function otherSelected() {
	var str = "Other";
	if (document.contact_us["00N40000001UHKW"].value.match(str)) {
		document.getElementById('leadSourceOther').style.display = "inline";
		document.getElementById('txtOther').innerHTML = "Please be more specific:";
	} else {
		document.getElementById('leadSourceOther').style.display = "none";
		document.getElementById('00N40000001UHKl').value = "";
	}
}

function buildSelect(x) { //alert(x) ; //return
	document.getElementById('moreSpecific').style.display = "inline";
	document.getElementById('leadSourceOther').style.display = "none";

	clearList();

if (x == "1") {
  changeIt("Which Advertisement/Publication?");
  
  option0 = new Option("Please Select","");
  /*
  option1 = new Option("Chef Educator Today","Chef Educator Today");
  option2 = new Option("Chef Magazine","Chef Magazine");
  option3 = new Option("Chicago Reader","Chicago Reader");
  option4 = new Option("Chicago Sun-Times","Chicago Sun-Times");
  option5 = new Option("Chicago Tribune","Chicago Tribune");
  option6 = new Option("Chocolatier","Chocolatier");
  option7 = new Option("Daily Candy","Daily Candy");
  option8 = new Option("Frozen Desserts","Frozen Desserts");
  option9 = new Option("Modern Baking","Modern Baking");
  option10 = new Option("Pastry Art & Design","Pastry Art & Design");
  option11 = new Option("Radio","Radio");
  option12 = new Option("RedEye","RedEye");
  option13 = new Option("Television","Television");
  option14 = new Option("Other Advertisement/Publication","Other Advertisement/Publication");
  */
  
  option1 = new Option("American Cake Decorating Magazine","American Cake Decorating Magazine");
  option2 = new Option("Blog","Blog");
  option3 = new Option("Bon Appetit","Bon Appetit");
  option4 = new Option("Candy Industry News","Candy Industry News");
  option5 = new Option("Chef Educator Today","Chef Educator Today");
  option6 = new Option("Chef Magazine","Chef Magazine");
  option7 = new Option("Chicago Magazine","Chicago Magazine");
  option8 = new Option("Chicago Reader","Chicago Reader");
  option9 = new Option("Chicago Sun-Times","Chicago Sun-Times");
  option10 = new Option("Chicago Tribune","Chicago Tribune");
  option11 = new Option("Chocolatier","Chocolatier");
  option12 = new Option("CLTV - metromix","CLTV - metromix");
  option13 = new Option("Daily Candy","Daily Candy");
  option14 = new Option("Excitations.com","Excitations.com");
  option15 = new Option("Food Arts","Food Arts");
  option16 = new Option("Food Channel","Food Channel");
  option17 = new Option("Food Network","Food Network");
  option18 = new Option("Food & Wine","Food & Wine");
  option19 = new Option("Frozen Desserts","Frozen Desserts");
  option20 = new Option("Gourmet","Gourmet");
  option21 = new Option("Ladies' Home Journal","Ladies' Home Journal");
  option22 = new Option("Modern Baking","Modern Baking");
  option23 = new Option("Pasticceria Internazionale","Pasticceria Internazionale");
  option24 = new Option("Pastry Art & Design","Pastry Art & Design");
  option25 = new Option("Pastry & Baking","Pastry & Baking");
  option26 = new Option("Pastry Professional","Pastry Professional");
  option27 = new Option("Radio","Radio");
  option28 = new Option("RedEye","RedEye");
  option29 = new Option("Television","Television");
  option30 = new Option("Today's Chicago Woman","Today's Chicago Woman");
  option31 = new Option("Other Advertisement/Publication","Other Advertisement/Publication");

  
  // write them;
  document.contact_us["00N40000001UHKW"].options[0] = option0;
  document.contact_us["00N40000001UHKW"].options[1] = option1;
  document.contact_us["00N40000001UHKW"].options[2] = option2;
  document.contact_us["00N40000001UHKW"].options[3] = option3;
  document.contact_us["00N40000001UHKW"].options[4] = option4;
  document.contact_us["00N40000001UHKW"].options[5] = option5;
  document.contact_us["00N40000001UHKW"].options[6] = option6;
  document.contact_us["00N40000001UHKW"].options[7] = option7;
  document.contact_us["00N40000001UHKW"].options[8] = option8;
  document.contact_us["00N40000001UHKW"].options[9] = option9;
  document.contact_us["00N40000001UHKW"].options[10] = option10;
  document.contact_us["00N40000001UHKW"].options[11] = option11;
  document.contact_us["00N40000001UHKW"].options[12] = option12;
  document.contact_us["00N40000001UHKW"].options[13] = option13;
  document.contact_us["00N40000001UHKW"].options[14] = option14;
  document.contact_us["00N40000001UHKW"].options[15] = option15;
  document.contact_us["00N40000001UHKW"].options[16] = option16;
  document.contact_us["00N40000001UHKW"].options[17] = option17;
  document.contact_us["00N40000001UHKW"].options[18] = option18;
  document.contact_us["00N40000001UHKW"].options[19] = option19;
  document.contact_us["00N40000001UHKW"].options[20] = option20;
  document.contact_us["00N40000001UHKW"].options[21] = option21;
  document.contact_us["00N40000001UHKW"].options[22] = option22;
  document.contact_us["00N40000001UHKW"].options[23] = option23;
  document.contact_us["00N40000001UHKW"].options[24] = option24;
  document.contact_us["00N40000001UHKW"].options[25] = option25;
  document.contact_us["00N40000001UHKW"].options[26] = option26;
  document.contact_us["00N40000001UHKW"].options[27] = option27;
  document.contact_us["00N40000001UHKW"].options[28] = option28;
  document.contact_us["00N40000001UHKW"].options[29] = option29;
  document.contact_us["00N40000001UHKW"].options[30] = option30;
  document.contact_us["00N40000001UHKW"].options[31] = option31;
  return;
  }

if (x == "22") { 
  changeIt("Which Event/Trade Show?");
  
  option0 = new Option("Please Select","");
  option1 = new Option("College Fair","College Fair");
  option2 = new Option("For the Love of Chocolate","For the Love of Chocolate");
  option3 = new Option("National Restaurant Association Show","National Restaurant Association Show");
  option4 = new Option("French Pastry Experience","French Pastry Experience");
  option5 = new Option("Open House","Open House");
  option6 = new Option("Pastry Chicago","Pastry Chicago");
  option7 = new Option("World Pastry Forum","World Pastry Forum");
  option8 = new Option("Other Event/Trade Show","Other Event/Trade Show");
  // write them;
  document.contact_us["00N40000001UHKW"].options[0] = option0;
  document.contact_us["00N40000001UHKW"].options[1] = option1;
  document.contact_us["00N40000001UHKW"].options[2] = option2;
  document.contact_us["00N40000001UHKW"].options[3] = option3;
  document.contact_us["00N40000001UHKW"].options[4] = option4;
  document.contact_us["00N40000001UHKW"].options[5] = option5;
  document.contact_us["00N40000001UHKW"].options[6] = option6;
  document.contact_us["00N40000001UHKW"].options[7] = option7;
  document.contact_us["00N40000001UHKW"].options[8] = option8;
  return;
  }
  
if (x == "33") { 

  changeIt("Which search engine?");
  
  /* set choices to none */
  option0 = new Option("Please Select","");
  option1 = new Option("AOL","AOL");
  option2 = new Option("Blog","Blog");
  option3 = new Option("Google","Google");
  option4 = new Option("Yahoo!","Yahoo!");
  option5 = new Option("Other Internet Search","Other Internet Search");
  // write them;
  document.contact_us["00N40000001UHKW"].options[0] = option0;
  document.contact_us["00N40000001UHKW"].options[1] = option1;
  document.contact_us["00N40000001UHKW"].options[2] = option2;
  document.contact_us["00N40000001UHKW"].options[3] = option3;
  document.contact_us["00N40000001UHKW"].options[4] = option4;
  document.contact_us["00N40000001UHKW"].options[5] = option5;
  return;
  } 
  
 if (x == "44") { 
 
   changeIt("Which online school listing?");
 
  /* set choices to none */ 
  option0 = new Option("Please Select","");
  option1 = new Option("Cookingschools.com","Cookingschools.com");
  option2 = new Option("Culinaryed.com","Culinaryed.com");
  option3 = new Option("Shawsguide.com","Shawsguide.com");
  option4 = new Option("Other Online Cooking School Search","Other Online Cooking School Search");
  // write them;
  document.contact_us["00N40000001UHKW"].options[0] = option0;
  document.contact_us["00N40000001UHKW"].options[1] = option1;
  document.contact_us["00N40000001UHKW"].options[2] = option2;
  document.contact_us["00N40000001UHKW"].options[3] = option3;
  document.contact_us["00N40000001UHKW"].options[4] = option4;
  return;
  } 
  
 if (x == "55") { 
   changeIt("Who did you hear about us from?");
  /* set choices to none */ 
  option0 = new Option("Please Select","");
  option1 = new Option("Alumni Referral","Alumni Referral");
  option2 = new Option("Chef Referral","Chef Referral");
  option3 = new Option("Family","Family");
  option4 = new Option("Friend","Friend");
  option5 = new Option("Other Word of Mouth","Other Word of Mouth");
  // write them;
  document.contact_us["00N40000001UHKW"].options[0] = option0;
  document.contact_us["00N40000001UHKW"].options[1] = option1;
  document.contact_us["00N40000001UHKW"].options[2] = option2;
  document.contact_us["00N40000001UHKW"].options[3] = option3;
  document.contact_us["00N40000001UHKW"].options[4] = option4;
  document.contact_us["00N40000001UHKW"].options[5] = option5;
  return;
  } 
}

function clearList(){
	document.contact_us["00N40000001UHKW"].options.length = 0;
	document.getElementById('00N40000001UHKl').value = "";
}

function chefSelect(){
	document.getElementById('moreSpecific').style.display = "none";
	document.getElementById('leadSourceOther').style.display = "block";
		document.getElementById('txtOther').innerHTML = "What Chef Demonstration?";
	clearList();
}
function changeIt(newText){
	document.getElementById('txtSpecific').innerHTML = newText;
}
