qList = new Array(true, true, true, true, true, true, true);
qListString = new Array ("qDiv_CAPUEDUCTN_01","qDiv_CAPPROGRAM_01","qDiv_CAPSPECIALTY_01","qDiv_CAPAGE_01","qDiv_MILITARY_01", "qDiv_CAPUTODATE_MONTH_01", "qDiv_EMAIL_01");

function validateForm(form) {
  noPopup=true;
  return false;
}

function initF() {
  formSubmitted=false;
  hide("backbutton");
  hideAll();
  show(qListString[curQ]);
  resetAll();
  preloadImages();
}

function initNote() {
}

function preloadImages() {
  image01= new Image(156,12)
  image01.src='/images/capella/001/prog_0.gif'
    image02= new Image(156,12)
  image02.src='/images/capella/001/prog_01.gif'
    image03= new Image(156,12)
  image03.src='/images/capella/001/prog_02.gif'
    image04= new Image(156,12)
  image04.src='/images/capella/001/prog_03.gif'
    image05= new Image(156,12)
  image05.src='/images/capella/001/prog_04.gif'
    image06= new Image(156,12)
  image06.src='/images/capella/001/prog_05.gif'
    image07= new Image(156,12)
  image07.src='/images/capella/001/prog_06.gif'
    image08= new Image(156,12)
  image08.src='/images/capella/001/prog_07.gif'
}

function displayNextQ(field)
{
  if(field==window.document.form1.CAPUTODATE_MONTH_01) {
    window.document.form1.CAPUTODATE_YEAR_01.options[0].selected = true;
    return;
  }
  if(field==window.document.form1.CAPSPECIALTY_01) {
    var value = getFieldValueLB(field);
    if(value == "370" || value == "622") {
      alert("Thank you for your interest in Capella University.  The specialization you have selected is for current K-12 professionals interested in extending their education with a graduate degree.  Please be aware that this specialization does not lead to initial teacher licensure.");
    } 
  }
  showNextQ(field);
  if(formSubmitted!=true) {
    updateProgressBar();
  }
}

function displayPreviousQ()
{
  showPreviousQ();
  //reset value on curQ
  updateProgressBar();
}

function updateProgressBar()
{
  if(curQ==0) {
    giftoshow = '/images/capella/001/prog_0.gif';
  } else if(curQ==1) {
    giftoshow = '/images/capella/001/prog_01.gif';
  } else if(curQ==2) {
    giftoshow = '/images/capella/001/prog_02.gif';
  } else if(curQ==3) {
    giftoshow = '/images/capella/001/prog_03.gif';
  } else if(curQ==4) {
    giftoshow = '/images/capella/001/prog_04.gif';
  } else if(curQ==5) {
    giftoshow = '/images/capella/001/prog_05.gif';
  } else if(curQ==6) {
    giftoshow = '/images/capella/001/prog_06.gif';
  } else if(curQ==7) {
    giftoshow = '/images/capella/001/prog_07.gif';
  }

  if(curQ==0) {
    hide("backbutton");
  } else {
    show("backbutton");
  }

  window.document.form1.complete.src = giftoshow;
}

function showPreviousQ(field) {
  if(curQ == 0) {
    alert("Already at beginning of form");
    return;
  }
  hide(qListString[curQ]);
  show(qListString[lastQ]);
  curQ = lastQ;
  resetFieldValue();
  lastQ--;
  while(lastQ>0) {
    if(qList[lastQ]) {
      return;
    }
    lastQ--;
  }
}

function resetFieldValue() {
  if(curQ == 0) {
    window.document.form1.CAPUEDUCTN_01.options[0].selected = true;
  } else if(curQ == 1) {
    window.document.form1.CAPPROGRAM_01.options[0].selected = true;
  } else if(curQ == 2) {
    window.document.form1.CAPSPECIALTY_01.options[0].selected = true;
  } else if(curQ == 3) {
    window.document.form1.CAPAGE_01.options[0].selected = true;
  } else if(curQ ==4) {
    window.document.form1.MILITARY_01[0].checked = false;
    window.document.form1.MILITARY_01[1].checked = false;
  } else if(curQ == 5) {
    window.document.form1.CAPUTODATE_MONTH_01.options[0].selected = true;
    window.document.form1.CAPUTODATE_YEAR_01.options[0].selected = true;
  } else if(curQ == 6) {
    window.document.form1.EMAIL_01.value = "";
  }
}

function resetAll() {
  window.document.form1.CAPUEDUCTN_01.options[0].selected = true;
  window.document.form1.CAPPROGRAM_01.options[0].selected = true;
  window.document.form1.CAPSPECIALTY_01.options[0].selected = true;
  window.document.form1.CAPAGE_01.options[0].selected = true;
  window.document.form1.MILITARY_01[0].checked = false;
  window.document.form1.MILITARY_01[1].checked = false;
  window.document.form1.CAPUTODATE_MONTH_01.options[0].selected = true;
  window.document.form1.CAPUTODATE_YEAR_01.options[0].selected = true;
  window.document.form1.EMAIL_01.value = "";
}


function initPrograms() {
  var field = window.document.form1.CAPPROGRAM_01;
  var value = getFieldValueLB(field);

  var eduField = window.document.form1.CAPUEDUCTN_01;
  var eduValue = getFieldValueLB(eduField);

  field.length = 0;
  field.innerHTML = "";

  field.options[field.length] = new Option("Please select one...","");

  if(eduValue == "GED" || eduValue == "Homeschool" || eduValue == "High School" || eduValue == "0-1 Yrs/1-29 Sem Cr" || eduValue == "1-2 Yrs/30-59 Sem Cr"
    || eduValue == "Assoc Deg AA/AS/AAS" || eduValue == "2-3 Yrs/60-89 Sem Cr" || eduValue == "3-4 Yrs/90+ Sem Cr" || eduValue == "3 Yr Bacca Non-US" || eduValue == "1 Sem from Bach"
      || eduValue == "Bachelors Degree" || eduValue == "Some Graduate" || eduValue == "1 Yr from Masters" || eduValue == "Masters Degree" || eduValue == "EdS" || eduValue == "Some Doctoral"
        || eduValue == "All but Dissertation" || eduValue == "Doctoral Degree") {

    field.options[field.length] = new Option("Business", "2246");   

    if(eduValue == "3 Yr Bacca Non-US" || eduValue == "1 Sem from Bach"	|| eduValue == "Bachelors Degree" || eduValue == "Some Graduate" || 
        eduValue == "1 Yr from Masters" || eduValue == "Masters Degree" || eduValue == "EdS" || eduValue == "Some Doctoral" 	|| eduValue == "All but Dissertation" || eduValue == "Doctoral Degree") {
      field.options[field.length] = new Option("Counseling", "2247");   
      field.options[field.length] = new Option("Education", "2249");
    }
    
    field.options[field.length] = new Option("Health Care","2250");
    
    if(eduValue == "3 Yr Bacca Non-US" || eduValue == "1 Sem from Bach"	|| eduValue == "Bachelors Degree" || eduValue == "Some Graduate" || 
        eduValue == "1 Yr from Masters" || eduValue == "Masters Degree" || eduValue == "EdS" || eduValue == "Some Doctoral" 	|| eduValue == "All but Dissertation" || eduValue == "Doctoral Degree") {
      field.options[field.length] = new Option("Higher Education","2251");
    }

    field.options[field.length] = new Option("Human Resources","2252");
    
    if(eduValue == "3 Yr Bacca Non-US" || eduValue == "1 Sem from Bach"	|| eduValue == "Bachelors Degree" || eduValue == "Some Graduate" || 
        eduValue == "1 Yr from Masters" || eduValue == "Masters Degree" || eduValue == "EdS" || eduValue == "Some Doctoral" 	|| eduValue == "All but Dissertation" || eduValue == "Doctoral Degree") {
      field.options[field.length] = new Option("K-12 Education","2253");
      field.options[field.length] = new Option("Nursing","2254");
    }

    field.options[field.length] = new Option("Project Management","2255");
    field.options[field.length] = new Option("Public Administration","2257");
    field.options[field.length] = new Option("Technology","2259");
    
    if(eduValue == "3 Yr Bacca Non-US" || eduValue == "1 Sem from Bach"	|| eduValue == "Bachelors Degree" || eduValue == "Some Graduate" || 
        eduValue == "1 Yr from Masters" || eduValue == "Masters Degree" || eduValue == "EdS" || eduValue == "Some Doctoral" 	|| eduValue == "All but Dissertation" || eduValue == "Doctoral Degree") {
      field.options[field.length] = new Option("Psychology","2256");	
    }
  }
  if(eduValue == "Masters Degree" || eduValue == "Some Doctoral" || eduValue == "All but Dissertation" || eduValue == "Doctoral Degree") {
    field.options[field.length] = new Option("Social Work","2818");    
  }



  selectValue(field, value);
  return;
}


function createOption(q2, programNumber) {
  if (programNumber == 351) {
    return q2.options[q2.length] = new Option("BS - Business Administration","351");
  }
  else if (programNumber == 357) {
    return q2.options[q2.length] = new Option("BS - Human Resource Management","357");
  }
  else if (programNumber == 359) { 
    return q2.options[q2.length] = new Option("BS - Management and Leadership","359");
  }
  else if (programNumber == 361) {
    return q2.options[q2.length] = new Option("BS - General Information Technology","361");
  }
  else if (programNumber == 363) {
    return q2.options[q2.length] = new Option("BS - Network Technology","363");
  }
  else if (programNumber == 364) {
    return q2.options[q2.length] = new Option("BS - Information Technology Project Management","364");
  }
  else if (programNumber == 370) {
    return q2.options[q2.length] = new Option("MS - Curriculum and Instruction","370");
  }
  else if (programNumber == 373) {
    return q2.options[q2.length] = new Option("MS - Leadership for Higher Education","373");
  }
  else if (programNumber == 374) {
    return q2.options[q2.length] = new Option("MS - Post-secondary and Adult Education","374");
  }
  else if (programNumber == 383) {
    return q2.options[q2.length] = new Option("MS - General Marriage and Family Counseling Therapy","383");
  }
  else if (programNumber == 384) {
    return q2.options[q2.length] = new Option("MS - Mental Health Counseling","384");
  }
  else if (programNumber == 385) {
    return q2.options[q2.length] = new Option("MS - Management of Nonprofit Agencies","385");
  }
  else if (programNumber == 392) {
    return q2.options[q2.length] = new Option("MS - Counseling Psychology","392");
  }
  else if (programNumber == 393) {
    return q2.options[q2.length] = new Option("MS - Educational Psychology","393");
  }
  else if (programNumber == 394) {
    return q2.options[q2.length] = new Option("MS - General Psychology","394");
  }
  else if (programNumber == 395) {
    return q2.options[q2.length] = new Option("MS - Industrial/Organizational Psychology","395");
  }
  else if (programNumber == 396) {
    return q2.options[q2.length] = new Option("MS - School Psychology","396");
  }
  else if (programNumber == 397) {
    return q2.options[q2.length] = new Option("MS - Sport Psychology","397");
  }
  else if (programNumber == 398) {
    return q2.options[q2.length] = new Option("MS - General Information Technology","398");
  }
  else if (programNumber == 399) {
    return q2.options[q2.length] = new Option("MS - Information Assurance and Security","399");
  }
  else if (programNumber == 404) {
    return q2.options[q2.length] = new Option("PhD - Instructional Design for Online Learning","404");
  }
  else if (programNumber == 406) {
    return q2.options[q2.length] = new Option("PhD - Leadership for Higher Education","406");
  }
  else if (programNumber == 407) {
    return q2.options[q2.length] = new Option("PhD - Post-secondary and Adult Education","407");
  }
  else if (programNumber == 408) {
    return q2.options[q2.length] = new Option("PhD - Professional Studies in Education","408");
  }
  else if (programNumber == 409) {
    return q2.options[q2.length] = new Option("PhD - Training and Performance Improvement","409");
  }
  else if (programNumber == 410) {
    return q2.options[q2.length] = new Option("PhD - Counseling Studies","410");
  }
  else if (programNumber == 413) {
    return q2.options[q2.length] = new Option("PhD - Health Care Administration","413");
  }
  else if (programNumber == 414) {
    return q2.options[q2.length] = new Option("PhD - Management of Nonprofit Agencies","414");
  }
  else if (programNumber == 415) {
    return q2.options[q2.length] = new Option("PhD - Social and Community Services","415");	
  }	
  else if (programNumber == 417) {
    return q2.options[q2.length] = new Option("PhD - Human Resource Management","417");
  }
  else if (programNumber == 418) {
    return q2.options[q2.length] = new Option("PhD - Information Technology Management","418");
  }
  else if (programNumber == 419) {
    return q2.options[q2.length] = new Option("PhD - Leadership","419");
  }
  else if (programNumber == 420) {
    return q2.options[q2.length] = new Option("PhD - General Psychology","420");
  }
  else if (programNumber == 421) {
    return q2.options[q2.length] = new Option("PhD - Educational Psychology","421");
  }
  else if (programNumber == 422) {
    return q2.options[q2.length] = new Option("PhD - Industrial/Organizational Psychology","422");
  }
  else if (programNumber == 430) {
    return q2.options[q2.length] = new Option("MS - Clinical Psychology","430");
  }
  else if (programNumber == 622) { 
    return q2.options[q2.length] = new Option("MS - Reading and Literacy","622");
  }
  else if (programNumber == 623) {
    return q2.options[q2.length] = new Option("MS - Social and Community Services","623");
  }
  else if (programNumber == 673) {
    return q2.options[q2.length] = new Option("BS - Accounting","673");
  }
  else if (programNumber == 741) {
    return q2.options[q2.length] = new Option("BS - Information Assurance and Security","741");
  }
  else if (programNumber == 850) {
    return q2.options[q2.length] = new Option("PhD - Management Education","850");
  }
  else if (programNumber == 877) {
    return q2.options[q2.length] = new Option("BS - Project Management","877");
  }
  else if (programNumber == 878) {
    return q2.options[q2.length] = new Option("BS - Health Informatics","878");
  }
  else if (programNumber == 879) {
    return q2.options[q2.length] = new Option("BS - Software Architecture","879");
  }
  else if (programNumber == 881) {
    return q2.options[q2.length] = new Option("PhD - Special Education Leadership","881");
  }
  else if (programNumber == 883) {
    return q2.options[q2.length] = new Option("MS - Evaluation, Research, and Measurement","883");
  }
  else if (programNumber == 893) {
    return q2.options[q2.length] = new Option("PhD - Information Technology Project Management","893");
  }
  else if (programNumber == 894) {
    q2.options[q2.length] = new Option("PhD - Project Management","894");
    q2.options[q2.length] = new Option("DBA - Business Intelligence","1432");
    q2.options[q2.length] = new Option("DBA - Global Operations and Supply Chain Management","1433");
    return q2.options[q2.length] = new Option("DBA - Strategy and Innovation","1434");
  }
  else if (programNumber == 896) {
    return q2.options[q2.length] = new Option("MPH - Health Management and Policy","896");
  }
  else if (programNumber == 897) {
    return q2.options[q2.length] = new Option("MPH - Social and Behavioral Sciences","897");
  }
  else if (programNumber == 898) {
    return q2.options[q2.length] = new Option("MS - School Counseling","898");
  }
  else if (programNumber == 901) {
    return q2.options[q2.length] = new Option("BS - Retail Management","901");
  }
  else if (programNumber == 938) {
    return q2.options[q2.length] = new Option("MS - Gerontology","938");
  }
  else if (programNumber == 1411) {
    return q2.options[q2.length] = new Option("MS - Child and Adolescent Development","1411");
  }
  else if (programNumber == 1412) {
    return q2.options[q2.length] = new Option("PhD - Counselor Education and Supervision","1412");
  }
  else if (programNumber == 1416) {
    q2.options[q2.length] = new Option("MS - Addiction Counseling","1416");
    return q2.options[q2.length] = new Option("MS - General Career Counseling","1436");
  }
  else if (programNumber == 1417) {
    return q2.options[q2.length] = new Option("PhD - General Business","1417");
  }
  else if (programNumber == 1418) {
    return q2.options[q2.length] = new Option("PhD - Accounting","1418");
  }
  else if (programNumber == 1419) {
    return q2.options[q2.length] = new Option("MS - Special Education Teaching","1419");
  }
  else if (programNumber == 1420) {
    return q2.options[q2.length] = new Option("BS - Health Care Management","1420");
  }	
  else if (programNumber == 1421) {
    return q2.options[q2.length] = new Option("MSN - Nurse Educator","1421");
  }	
  else if (programNumber == 1422) {
    return q2.options[q2.length] = new Option("MSN - Nurse Educator Bridge","1422");
  }
  else if (programNumber == 1424) {
    return q2.options[q2.length] = new Option("MPA - General Public Administration","1424");
  }
  else if (programNumber == 1425) {
    return q2.options[q2.length] = new Option("DPA - General Public Administration","1425");
  }
  else if (programNumber == 1428) {
    return q2.options[q2.length] = new Option("MPH - General Public Health","1428");
  }
  else if (programNumber == 1429) {
    return q2.options[q2.length] = new Option("BS - General Psychology","1429");
  }
  else if (programNumber == 2818) {
    return q2.options[q2.length] = new Option("DSW - General Social Work","1435");
  }
  else if (programNumber == 1430) {
	return q2.options[q2.length] = new Option("DrPH - Epidemiology","1430");
  } 
  else if (programNumber == 1431) {
	return q2.options[q2.length] = new Option("DrPH - Health Advocacy and Leadership","1431");
  }
  else if (programNumber == 1439) {
    return q2.options[q2.length] = new Option("MHA - Health Policy","1439");
  } 
  else if (programNumber == 1440) {
	    return q2.options[q2.length] = new Option("MHA - Health Care Operations","1440");
	  } 
  else if (programNumber == 1441) {
	    return q2.options[q2.length] = new Option("MHA - General Health Administration","1441");
	  }   
  else if (programNumber == 1442) {
	    return q2.options[q2.length] = new Option("DHA - Health Policy and Advocacy","1442");
	  } 
  else if (programNumber == 1443) {
	    return q2.options[q2.length] = new Option("DHA - Health Care Leadership","1443");
	  }
  else if (programNumber == 1444) {
	    return q2.options[q2.length] = new Option("DHA - General Health Administration","1444");
	  }
  else if (programNumber == 1445) {
	    return q2.options[q2.length] = new Option("EdD - Reading and Literacy","1445");
	  }
  else if (programNumber == 1461) {
	    return q2.options[q2.length] = new Option("Graduate Certificate in Play Therapy","1461");
  }
  else if (programNumber == 1462) {
	    return q2.options[q2.length] = new Option("MS - General Studies in Human Behavior","1462");
  }
  else if (programNumber == 1473) {
        return q2.options[q2.length] = new Option("MS - Multidisciplinary Human Services","1473");
  }
  else if (programNumber == 1474) {
        return q2.options[q2.length] = new Option("PhD - Multidisciplinary Human Services","1474");
  } else if (programNumber == 1475) {
        return q2.options[q2.length] = new Option("MSN - Nursing Leadership and Administration","1475");
  } else if (programNumber == 1476) {
        return q2.options[q2.length] = new Option("MSN - Diabetes Nursing","1476");
  } else if (programNumber == 1477) {
        return q2.options[q2.length] = new Option("MSN - Gerontology Nursing","1477");
  } else if (programNumber == 1478) {
        return q2.options[q2.length] = new Option("DBA - Finance","1478");
  } else if (programNumber == 1479) {
        return q2.options[q2.length] = new Option("DBA - Marketing","1479");
  }	  
}

function initQ2() {
  var eduField = window.document.form1.CAPUEDUCTN_01;
  var eduValue = getFieldValueLB(eduField);
  var aosField = window.document.form1.CAPPROGRAM_01;
  var aosValue = getFieldValueLB(aosField);
  q1 = window.document.form1.CAPPROGRAM_01
  q2 = window.document.form1.CAPSPECIALTY_01
  value = q2.options[q2.selectedIndex].value
  q2.length=0;

  // Listbox options no longer need to be manually alphabetized by listing their programNumbers based on program name.
  // A new method has been added at the end of this method which automatically does this.

  /*********************************2246*************************************/	
  //673, 351, 357, 359, 877, 901 --alphabetized
  if((eduValue == "GED" || eduValue == "Homeschool" || eduValue == "High School" || eduValue == "0-1 Yrs/1-29 Sem Cr" || eduValue == "1-2 Yrs/30-59 Sem Cr"
    || eduValue == "Assoc Deg AA/AS/AAS" || eduValue == "2-3 Yrs/60-89 Sem Cr" || eduValue == "3-4 Yrs/90+ Sem Cr" )  && aosValue == "2246") {
    var myOptions = new Array("673", "351", "357", "359", "877", "901");    
    for(x in myOptions) {
      createOption(q2, myOptions[x]);    	
    }	
  }	

  //673, 351, 357, 359, 877, 901 --alphabetized
  else if((eduValue == "3 Yr Bacca Non-US" || eduValue == "1 Sem from Bach" || eduValue == "Bachelors Degree" || eduValue == "Some Graduate") && aosValue == "2246") {
    var myOptions = new Array("673", "351", "357", "359", "877", "901", "1441", "1440", "1439");
    for(x in myOptions) {
      createOption(q2, myOptions[x]);    	
    }	
  }

  //673, 351, 357, 359, 877, 901, 1418, 1417, 417, 418, 419, 850, 894 --alphabetized
  else if((eduValue == "1 Yr from Masters" || eduValue == "Masters Degree" || eduValue == "EdS" || eduValue == "Some Doctoral" || eduValue == "All but Dissertation" 
    || eduValue == "Doctoral Degree")  && aosValue == "2246") {
    var myOptions = new Array("673", "351", "357", "359", "877", "901", "1441", "1440", "1439", "1418", "1417", "417", "418", "419", "850", "894", "1478", "1479");
    for(x in myOptions) {
      createOption(q2, myOptions[x]);    	
    }	
  }

  /*********************************2247*************************************/	
  //383, 384, 898, 623, 1416, 1462 --alphabetized
  else if((eduValue == "3 Yr Bacca Non-US" || eduValue == "1 Sem from Bach" || eduValue == "Bachelors Degree" || eduValue == "Some Graduate") && aosValue == "2247") {
    var myOptions = new Array("1416", "383", "384", "898", "623", "1462");
    for(x in myOptions) {
      createOption(q2, myOptions[x]);    	
    }	
  }

  //383, 384, 898, 623, 1416,410, 1412, 415, 421, 420, 422, 1461, 1462 --alphabetized
  else if((eduValue == "1 Yr from Masters" || eduValue == "Masters Degree" || eduValue == "EdS" || eduValue == "Some Doctoral" || eduValue == "All but Dissertation" 
    || eduValue == "Doctoral Degree")  && aosValue == "2247") {
    var myOptions = new Array("1416", "383", "384", "898", "623", "410", "1412", "421", "420", "422", "415", "1461", "1462");
    for(x in myOptions) {
      createOption(q2, myOptions[x]);    	
    }	
  }

  /*********************************2249*************************************/	
  //373, 374, 370, 393, 622, 898, 1411, 396, 883, 397, 1419, 1421, 1422 -- alphabetized
  else if((eduValue == "3 Yr Bacca Non-US") && aosValue == "2249") {    	
    var myOptions = new Array("1411", "370", "393", "883", "373", "374", "622", "898", "396", "1419", "397", "1421", "1422");
    for(x in myOptions) {
      createOption(q2, myOptions[x]);    	
    }	
  }    

  //373, 374, 370, 393, 622, 898, 1411, 396, 883, 397, 1419, 1421, 1422 --alphabetized
  else if((eduValue == "1 Sem from Bach" || eduValue == "Bachelors Degree" || eduValue == "Some Graduate") && aosValue == "2249") {
    var myOptions = new Array("1411", "370", "393", "883", "373", "374", "622", "898", "396", "1419", "397", "1421", "1422", "1475");
    for(x in myOptions) {
      createOption(q2, myOptions[x]);    	
    }	
  }
  
  //373, 374, 370, 393, 622, 898, 1411, 396, 883, 397, 1419, 1421, 1422, 404, 406, 407, 408, 881, 409, 1412, 421, 850 --alphabetized
  else if(eduValue == "1 Yr from Masters" && aosValue == "2249") {
    var myOptions = new Array("1411", "370", "393", "883", "373", "374", "622", "898", "396", "1419", "397", "1421", "1422", "1412", "421", "404", "406", "850", "407", "408", "881", "409", "1475");
    for(x in myOptions) {
      createOption(q2, myOptions[x]);    	
    }	
  }
  
  //373, 374, 370, 393, 622, 898, 1411, 396, 883, 397, 1419, 1421, 1422, 404, 406, 407, 408, 881, 409, 1412, 421, 850 --alphabetized
  else if((eduValue == "Masters Degree" || eduValue == "EdS" || eduValue == "Some Doctoral" || eduValue == "All but Dissertation" || eduValue == "Doctoral Degree")  && aosValue == "2249") {
    var myOptions = new Array("1445", "1411", "370", "393", "883", "373", "374", "622", "898", "396", "1419", "397", "1421", "1422", "1412", "421", "404", "406", "850", "407", "408", "881", "409");
    for(x in myOptions) {
      createOption(q2, myOptions[x]);    	
    }	
  }  

  /*********************************2250*************************************/	
  //1420
  else if((eduValue == "GED" || eduValue == "Homeschool" || eduValue == "High School" || eduValue == "0-1 Yrs/1-29 Sem Cr" || eduValue == "1-2 Yrs/30-59 Sem Cr"
    || eduValue == "Assoc Deg AA/AS/AAS" || eduValue == "2-3 Yrs/60-89 Sem Cr" || eduValue == "3-4 Yrs/90+ Sem Cr" )  && aosValue == "2250") {
    var myOptions = new Array("1420");
    for(x in myOptions) {
      createOption(q2, myOptions[x]);    	
    }	
  }    
  //1420, 938, 896, 385, 897 --alphabetized
  else if((eduValue == "3 Yr Bacca Non-US" || eduValue == "1 Sem from Bach" || eduValue == "Bachelors Degree" || eduValue == "Some Graduate") && aosValue == "2250") {
    var myOptions = new Array("1420", "1441", "1440", "1439", "938", "1428", "896", "385", "897");
    for(x in myOptions) {
      createOption(q2, myOptions[x]);    	
    }	
  }    
  //1420, 938, 896, 385, 897, 413, 414 --alphabetized
  else if((eduValue == "1 Yr from Masters" || eduValue == "Masters Degree" || eduValue == "EdS" || eduValue == "Some Doctoral" || eduValue == "All but Dissertation" 
    || eduValue == "Doctoral Degree")  && aosValue == "2250") {
    var myOptions = new Array("1420", "1443", "1442", "1444", "1430", "1431", "1441", "1440", "1439", "938", "896", "385", "897", "413", "414");
    for(x in myOptions) {
      createOption(q2, myOptions[x]);    	
    }	
  }    
  /*********************************2251*************************************/	
  //373, 374, 393, 883, 1421, 1422 --alphabetized
  else if((eduValue == "3 Yr Bacca Non-US" ) && aosValue == "2251") {
    var myOptions = new Array("393", "883", "373", "374", "1421", "1422");
    for(x in myOptions) {
      createOption(q2, myOptions[x]);    	
    }	
  }    
  //373, 374, 393, 883, 1421, 1422--alphabetized
  else if((eduValue == "1 Sem from Bach" || eduValue == "Bachelors Degree" || eduValue == "Some Graduate") && aosValue == "2251") {
    var myOptions = new Array("393", "883", "373", "374", "1421", "1422");
    for(x in myOptions) {
      createOption(q2, myOptions[x]);    	
    }	
  }    
  //373, 374, 393, 883, 1421, 1422, 404, 406, 407, 408, 881, 409, 1412, 421, 850 --alphabetized
  else if((eduValue == "1 Yr from Masters" || eduValue == "Masters Degree" || eduValue == "EdS" || eduValue == "Some Doctoral" || eduValue == "All but Dissertation" 
    || eduValue == "Doctoral Degree")  && aosValue == "2251") {
    var myOptions = new Array("393", "883", "373", "374", "1421", "1422", "1412", "421", "404", "406", "850", "407", "408", "881", "409");
    for(x in myOptions) {
      createOption(q2, myOptions[x]);    	
    }	
  }    
  /*********************************2252*************************************/	
  //357	
  else if((eduValue == "GED" || eduValue == "Homeschool" || eduValue == "High School" || eduValue == "0-1 Yrs/1-29 Sem Cr" || eduValue == "1-2 Yrs/30-59 Sem Cr"
    || eduValue == "Assoc Deg AA/AS/AAS" || eduValue == "2-3 Yrs/60-89 Sem Cr" || eduValue == "3-4 Yrs/90+ Sem Cr" )  && aosValue == "2252") {
    var myOptions = new Array("357");
    for(x in myOptions) {
      createOption(q2, myOptions[x]);    	
    }	
  }    

  //357--alphabetized
  else if((eduValue == "3 Yr Bacca Non-US" || eduValue == "1 Sem from Bach" || eduValue == "Bachelors Degree" || eduValue == "Some Graduate") && aosValue == "2252") {
    var myOptions = new Array("357");
    for(x in myOptions) {
      createOption(q2, myOptions[x]);    	
    }	
  }    

  //357, 417 --alphabetized	
  else if((eduValue == "1 Yr from Masters" || eduValue == "Masters Degree" || eduValue == "EdS" || eduValue == "Some Doctoral" || eduValue == "All but Dissertation" 
    || eduValue == "Doctoral Degree")  && aosValue == "2252") {
    var myOptions = new Array("357", "417");
    for(x in myOptions) {
      createOption(q2, myOptions[x]);    	
    }	
  }
  /*********************************2253*************************************/	
  //370, 622, 898, 1411, 393, 396, 397, 1419--alphabetized
  else if((eduValue == "3 Yr Bacca Non-US" || eduValue == "1 Sem from Bach" || eduValue == "Bachelors Degree" || eduValue == "Some Graduate") && aosValue == "2253") {
    var myOptions = new Array("1411", "370", "393", "622", "898", "396", "1419", "397");
    for(x in myOptions) {
      createOption(q2, myOptions[x]);    	
    }	
  }    

  //370, 622, 898, 1411, 393, 396, 397, 1419, 404, 881, 421
  else if((eduValue == "1 Yr from Masters")  && aosValue == "2253") {
    var myOptions = new Array("1411", "370", "393", "622", "898", "396", "1419", "397", "421", "404", "881");
    for(x in myOptions) {
      createOption(q2, myOptions[x]);    	
    }	
  }
  
  else if (( eduValue == "Masters Degree" || eduValue == "EdS" || eduValue == "Some Doctoral" || eduValue == "All but Dissertation" || eduValue == "Doctoral Degree")  && aosValue == "2253") {
	  var myOptions = new Array("1445", "1411", "370", "393", "622", "898", "396", "1419", "397", "421", "404", "881");
	  for(x in myOptions) {
	    createOption(q2, myOptions[x]);    	
	  }		  
  }
  
  /*********************************2254*************************************/	
  //1421, 1422
  else if((eduValue == "3 Yr Bacca Non-US" || eduValue == "1 Sem from Bach" || eduValue == "Bachelors Degree" || eduValue == "Some Graduate" ||
      eduValue == "1 Yr from Masters" || eduValue == "Masters Degree" || eduValue == "EdS" || eduValue == "Some Doctoral" || eduValue == "All but Dissertation" 
        || eduValue == "Doctoral Degree")  && aosValue == "2254") {
    var myOptions = new Array("1421", "1422", "1475", "1476", "1477");
    for(x in myOptions) {
      createOption(q2, myOptions[x]);    	
    }	
  }

  /*********************************2255*************************************/	
  //877, 364
  else if((eduValue == "GED" || eduValue == "Homeschool" || eduValue == "High School" || eduValue == "0-1 Yrs/1-29 Sem Cr" || eduValue == "1-2 Yrs/30-59 Sem Cr"
    || eduValue == "Assoc Deg AA/AS/AAS" || eduValue == "2-3 Yrs/60-89 Sem Cr" || eduValue == "3-4 Yrs/90+ Sem Cr" )  && aosValue == "2255") {
    var myOptions = new Array("364", "877");
    for(x in myOptions) {
      createOption(q2, myOptions[x]);    	
    }	
  }    

  //877, 364--alphabetized
  else if((eduValue == "3 Yr Bacca Non-US" || eduValue == "1 Sem from Bach" || eduValue == "Bachelors Degree" || eduValue == "Some Graduate") && aosValue == "2255") {
    var myOptions = new Array("364", "877");
    for(x in myOptions) {
      createOption(q2, myOptions[x]);    	
    }	
  }   

  //877, 364, 894, 893--alphabetized
  else if((eduValue == "1 Yr from Masters" || eduValue == "Masters Degree" || eduValue == "EdS" || eduValue == "Some Doctoral" || eduValue == "All but Dissertation" 
    || eduValue == "Doctoral Degree")  && aosValue == "2255") {
    var myOptions = new Array("364", "877", "893", "894");
    for(x in myOptions) {
      createOption(q2, myOptions[x]);    	
    }	
  }
  /*********************************2256*************************************/	
  //1411, 430, 392, 393, 883, 394, 395, 396, 397, 1429--alphabetized
  else if((eduValue == "3 Yr Bacca Non-US" || eduValue == "1 Sem from Bach" || eduValue == "Bachelors Degree" || eduValue == "Some Graduate") && aosValue == "2256") {
    var myOptions = new Array("1411", "430", "392", "393", "883", "394", "395", "396", "397", "1429");
    for(x in myOptions) {
      createOption(q2, myOptions[x]);    	
    }	
  }    

  //1411, 430, 392, 393, 883, 394, 395, 396, 397, 421, 420, 422, 1429, 1421--alphabetized
  else if((eduValue == "1 Yr from Masters" || eduValue == "Masters Degree" || eduValue == "EdS" || eduValue == "Some Doctoral" || eduValue == "All but Dissertation" 
    || eduValue == "Doctoral Degree")  && aosValue == "2256") {
    var myOptions = new Array("1411", "430", "392", "393", "883", "394", "395", "396", "397", "421", "420", "422", "1429");
    for(x in myOptions) {
      createOption(q2, myOptions[x]);    	
    }	
  }

  //1429
  else if((eduValue == "GED" || eduValue == "High School" || eduValue == "0-1 Yrs/1-29 Sem Cr" || eduValue == "1-2 Yrs/30-59 Sem Cr" || eduValue == "Assoc Deg AA/AS/AAS" 
    || eduValue == "2-3 Yrs/60-89 Sem Cr" || eduValue == "3-4 Yrs/90+ Sem Cr")  && aosValue == "2256") {
    var myOptions = new Array("1429");
    for(x in myOptions) {
      createOption(q2, myOptions[x]);    	
    }	
  }


  /*********************************2257*************************************/	    
  //1424
  else if((eduValue == "3 Yr Bacca Non-US" || eduValue == "1 Sem from Bach" || eduValue == "Bachelors Degree" || eduValue == "Some Graduate" 
    || eduValue == "1 Yr from Masters" || eduValue == "EdS" ) && aosValue == "2257") {
    var myOptions = new Array("1424", "1473");
    for(x in myOptions) {
      createOption(q2, myOptions[x]);    	
    }	

  }

  //1424, 1425	--alphabetized
  else if((eduValue == "Masters Degree" || eduValue == "Some Doctoral" || eduValue == "All but Dissertation" 
    || eduValue == "Doctoral Degree")  && aosValue == "2257") {
    var myOptions = new Array("1425","1424", "1474");
    for(x in myOptions) {
      createOption(q2, myOptions[x]);    	
    }	
  }

  /*********************************2259*************************************/
  //361, 878, 741, 363, 364, 879--alphabetized
  else if((eduValue == "GED" || eduValue == "Homeschool" || eduValue == "High School" || eduValue == "0-1 Yrs/1-29 Sem Cr" || eduValue == "1-2 Yrs/30-59 Sem Cr"
    || eduValue == "Assoc Deg AA/AS/AAS" || eduValue == "2-3 Yrs/60-89 Sem Cr" || eduValue == "3-4 Yrs/90+ Sem Cr" )  && aosValue == "2259") {
    var myOptions = new Array("361", "878", "741", "364", "363", "879");
    for(x in myOptions) {
      createOption(q2, myOptions[x]);    	
    }	
  }    

  //361, 878, 741, 363, 364, 879, 398, 399--alphabetized
  else if((eduValue == "3 Yr Bacca Non-US" || eduValue == "1 Sem from Bach" || eduValue == "Bachelors Degree" || eduValue == "Some Graduate") && aosValue == "2259") {
    var myOptions = new Array("361", "878", "741", "364", "363", "879", "398", "399");
    for(x in myOptions) {
      createOption(q2, myOptions[x]);    	
    }	
  }    

  //361, 878, 741, 363, 364, 879, 398, 399, 893
  else if((eduValue == "1 Yr from Masters" || eduValue == "Masters Degree" || eduValue == "EdS" || eduValue == "Some Doctoral" || eduValue == "All but Dissertation" 
    || eduValue == "Doctoral Degree")  && aosValue == "2259") {
    var myOptions = new Array("361", "878", "741", "364", "363", "879", "398", "399", "893");
    for(x in myOptions) {
      createOption(q2, myOptions[x]);    	
    }	
  }
  else if (aosValue == "2818") {
    createOption(q2, 2818);
  }

  sortListBox(q2, "Please select one...")
  selectValue(q2,value);
  return;
}

