/*Special Drop Down Code */
//place the following code at the bottom of the stylesheet
/*
populateTwoOptions('FIRSTOPTIONID');
document.getElementById('SECONDOPTIONID').onclick = function(){populateTwoOptions('FIRSTOPTIONID');}
document.getElementById('SECONDOPTIONID').onchange = function(){populateTwoOptions('FIRSTOPTIONID');}
*/
function populateFirstOptions(dropDownName1,dropDownName2,dropDownName3) {
//Paste in the variables from the excel worksheet
var textList1=document.getElementById("text41");
var textList2=document.getElementById("text45");
var textlist3=document.getElementById("text43");
	
	//Clear the existing options to start fresh
	ClearOptions(document.getElementById(dropDownName1));
	ClearOptions(document.getElementById(dropDownName2));
	ClearOptions(document.getElementById(dropDownName3));
	/*Paste your code that is generated from Excel in this placeholder*/
if (textList1[textList1.selectedIndex].value == "MS") { 
 	AddToOptionList(document.getElementById(dropDownName1), "","Select One");
 	AddToOptionList(document.getElementById(dropDownName1), "Full-time","Full-time");
 	AddToOptionList(document.getElementById(dropDownName1), "Part-time","Part-time");
	
	AddToOptionList(document.getElementById(dropDownName2), "","Select One");
	AddToOptionList(document.getElementById(dropDownName2), "accountancy","Accountancy");
	AddToOptionList(document.getElementById(dropDownName2), "busadm-genmgmt","Business Admin.-General Management");
	AddToOptionList(document.getElementById(dropDownName2), "busadm-mktng","Business Admin.-Marketing");
	AddToOptionList(document.getElementById(dropDownName2), "busadm-medmgmt","Business Admin. Medical Managment");
	AddToOptionList(document.getElementById(dropDownName2), "busadm-techtrans","Business Admin. Technology Transfer");
	AddToOptionList(document.getElementById(dropDownName2), "busadm-finance","Business Admin.-Finance");
	AddToOptionList(document.getElementById(dropDownName2), "busadm-srvcmgmt","Business Admin. - Service Management");
	AddToOptionList(document.getElementById(dropDownName2), "busadm-infosys","Business Admin. - Info. Systems Management");
	
	AddToOptionList(document.getElementById(dropDownName3), "","Select One");
	AddToOptionList(document.getElementById(dropDownName3), "olar","MS Marketing Alumni Profile");
	AddToOptionList(document.getElementById(dropDownName3), "maezawa","MS in Finance Alumni Profile");
	AddToOptionList(document.getElementById(dropDownName3), "mccue","MS in Accounting Alumni Profile");
	

}
if (textList1[textList1.selectedIndex].value == "MBA") {
 AddToOptionList(document.getElementById(dropDownName1), "","Select One"); 
 AddToOptionList(document.getElementById(dropDownName1), "Full-time","Full-time");
 AddToOptionList(document.getElementById(dropDownName1), "Part-time","Part-time");
 
	AddToOptionList(document.getElementById(dropDownName2), "","Select One");
	AddToOptionList(document.getElementById(dropDownName2), "accountingandinfosys","Accounting and Info Systems");
	AddToOptionList(document.getElementById(dropDownName2), "brandmgmt","Brand Management");
	AddToOptionList(document.getElementById(dropDownName2), "busandpubpolicy","Business Environment and Public Policy");
	AddToOptionList(document.getElementById(dropDownName2), "compandorgstrategy","Competitive and Organizational Strategy");
	AddToOptionList(document.getElementById(dropDownName2), "compandinfosys","Computers and Info Systems");
	AddToOptionList(document.getElementById(dropDownName2), "corpaccounting","Corporate Accounting");
	AddToOptionList(document.getElementById(dropDownName2), "ecommerce","E-Commerce");
	AddToOptionList(document.getElementById(dropDownName2), "entrepreneurship","Entrepreneurship");
	AddToOptionList(document.getElementById(dropDownName2), "finance","Finance");
	AddToOptionList(document.getElementById(dropDownName2), "healthsciencesmgmt","Health Sciences Management");
	AddToOptionList(document.getElementById(dropDownName2), "intnlmktng","International Management");
	AddToOptionList(document.getElementById(dropDownName2), "marketing","Marketing");
	AddToOptionList(document.getElementById(dropDownName2), "opmgmtsrvs","Operations Management-Services");
	AddToOptionList(document.getElementById(dropDownName2), "opmgmtmanf","Operations Management-Manufacturing");
	AddToOptionList(document.getElementById(dropDownName2), "pubaccounting","Public Accounting");
	
	AddToOptionList(document.getElementById(dropDownName3), "","Select One");
	AddToOptionList(document.getElementById(dropDownName3), "cannuciarri","MBA Accounting Alumni Profile");
	AddToOptionList(document.getElementById(dropDownName3), "kalla1","MBA Strategy Alumni Profile");
	AddToOptionList(document.getElementById(dropDownName3), "buck1","MBA CIS Alumni Profile");
	AddToOptionList(document.getElementById(dropDownName3), "buck2","MBA E-Commerce Alumni Profile");
	AddToOptionList(document.getElementById(dropDownName3), "bates","MBA Entrepreneurship Alumni Profile");
	AddToOptionList(document.getElementById(dropDownName3), "cody","MBA Finance Alumni Profile");
	AddToOptionList(document.getElementById(dropDownName3), "alam","MBA Health Sciences Alumni Profile");
	AddToOptionList(document.getElementById(dropDownName3), "kalla2","MBA Operations Alumni Profile");
	AddToOptionList(document.getElementById(dropDownName3), "fertinel","MBA Marketing Alumni Profile");
	AddToOptionList(document.getElementById(dropDownName3), "torres","MBA Brand Managment Alumni Profile");
	AddToOptionList(document.getElementById(dropDownName3), "stone","MBA International Management Alumni Profile");


}


	
	/* In the space below, be sure to call all the following dropdown functions.  Always work DOWN the list, not up the list.*/
	//Example populateNAMEOption2(inputName,inputName2,dropDownName)
}

function populateSecondOptions(dropDownName) {
//Paste in the variables from the excel worksheet
var textList1=document.getElementById("text41");
var textList2=document.getElementById("text45");
	
	//Clear the existing options to start fresh
	ClearOptions(document.getElementById(dropDownName));

	/*Paste your code that is generated from Excel in this placeholder*/
if (textList1[textList1.selectedIndex].value == "MS") { 
	if (textList2[textList2.selectedIndex].value == "Full-time") {
	AddToOptionList(document.getElementById(dropDownName), "September","September");
	}
	if (textList2[textList2.selectedIndex].value == "Part-time") {
	AddToOptionList(document.getElementById(dropDownName), "","Select One");
	AddToOptionList(document.getElementById(dropDownName), "January","January");
	AddToOptionList(document.getElementById(dropDownName), "March","March");
	AddToOptionList(document.getElementById(dropDownName), "June","June");
	AddToOptionList(document.getElementById(dropDownName), "September","September");	
	}
}
if (textList1[textList1.selectedIndex].value == "MBA") { 
	if (textList2[textList2.selectedIndex].value == "Full-time") {
	AddToOptionList(document.getElementById(dropDownName), "","Select One");
	AddToOptionList(document.getElementById(dropDownName), "September","September");
	AddToOptionList(document.getElementById(dropDownName), "January","January");
	}
	if (textList2[textList2.selectedIndex].value == "Part-time") {
	AddToOptionList(document.getElementById(dropDownName), "","Select One");
	AddToOptionList(document.getElementById(dropDownName), "January","January");
	AddToOptionList(document.getElementById(dropDownName), "March","March");
	AddToOptionList(document.getElementById(dropDownName), "June","June");
	AddToOptionList(document.getElementById(dropDownName), "September","September");	
	}
}

	/* In the space below, be sure to call all the following dropdown functions.  Always work DOWN the list, not up the list.*/
	//Example populateNAMEOption2(inputName,inputName2,dropDownName)
}
/*function populateYearOptions(dropDownName) {
//Paste in the variables from the excel worksheet
var textList1=document.getElementById("text47");
var textList2=document.getElementById("text49");	
	//Clear the existing options to start fresh
	ClearOptions(document.getElementById(dropDownName));
	if (textList1[textList1.selectedIndex].value == "January") {
	AddToOptionList(document.getElementById(dropDownName), "","Select One");
	AddToOptionList(document.getElementById(dropDownName), "2007","2007");
	AddToOptionList(document.getElementById(dropDownName), "2008","2008");
	AddToOptionList(document.getElementById(dropDownName), "2009","2009");
	}
	if (textList1[textList1.selectedIndex].value == "March") {
	AddToOptionList(document.getElementById(dropDownName), "","Select One");
	AddToOptionList(document.getElementById(dropDownName), "2007","2007");
	AddToOptionList(document.getElementById(dropDownName), "2008","2008");
	AddToOptionList(document.getElementById(dropDownName), "2009","2009");

	}
	if (textList1[textList1.selectedIndex].value == "June") {
	AddToOptionList(document.getElementById(dropDownName), "","Select One");
	AddToOptionList(document.getElementById(dropDownName), "2007","2007");
	AddToOptionList(document.getElementById(dropDownName), "2008","2008");
	AddToOptionList(document.getElementById(dropDownName), "2009","2009");

	}
	if (textList1[textList1.selectedIndex].value == "September") {
	AddToOptionList(document.getElementById(dropDownName), "","Select One");
	AddToOptionList(document.getElementById(dropDownName), "2007","2007");
	AddToOptionList(document.getElementById(dropDownName), "2008","2008");
	AddToOptionList(document.getElementById(dropDownName), "2009","2009");
	}
}*/
