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 == "368" || value == "370" || value == "353" || 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.");
    } else if (value == "1410") {
      alert("Thank you for your interest in Capella University. Please be aware that the specialization you have selected is for current licensed registered nurses with a master's degree in Nursing.");
    }  
  }
  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");   
    field.options[field.length] = new Option("Criminal Justice","2248");

    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");
    
    if(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("Public Safety","2258");	
    }
    
    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 == 352) {
    return q2.options[q2.length] = new Option("MBA - General Business","352");
  }
  else if (programNumber == 353) {
    return q2.options[q2.length] = new Option("MS - Leadership in Educational Administration","353");
  }
  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 == 360) {
    return q2.options[q2.length] = new Option("BS - Finance","360");
  }
  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 == 366) {
    return q2.options[q2.length] = new Option("MBA - Finance","366");
  }
  else if (programNumber == 367) {
    return q2.options[q2.length] = new Option("MBA - Marketing","367");
  }
  else if (programNumber == 368) {
    return q2.options[q2.length] = new Option("MS - K-12 Studies in Education","368");
  }
  else if (programNumber == 370) {
    return q2.options[q2.length] = new Option("MS - Curriculum and Instruction","370");
  }
  else if (programNumber == 371) {
    return q2.options[q2.length] = new Option("MS - Enrollment Management","371");
  }
  else if (programNumber == 372) {
    return q2.options[q2.length] = new Option("MS - Instructional Design for Online Learning","372");
  }
  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 == 378) {
    return q2.options[q2.length] = new Option("MS - Training and Performance Improvement","378");
  }
  else if (programNumber == 379) {
    return q2.options[q2.length] = new Option("MS - General Human Services","379");
  }
  else if (programNumber == 380) {
    return q2.options[q2.length] = new Option("MS - Counseling Studies","380");
  }
  else if (programNumber == 382) {
    return q2.options[q2.length] = new Option("MS - Health Care Administration","382");
  }
  else if (programNumber == 383) {
    return q2.options[q2.length] = new Option("MS - Marriage and Family 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 == 390) {
    return q2.options[q2.length] = new Option("MS - Leadership","390");
  }
  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 == 400) {
    return q2.options[q2.length] = new Option("MS - Network Architecture","400");
  }
  else if (programNumber == 404) {
    return q2.options[q2.length] = new Option("PhD - Instructional Design for Online Learning","404");
  }
  else if (programNumber == 405) {
    return q2.options[q2.length] = new Option("PhD - Leadership in Educational Administration","405");
  }
  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 == 412) {
    return q2.options[q2.length] = new Option("PhD - General Human Services","412");
  }
  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 == 416) {
    return q2.options[q2.length] = new Option("PhD - General Org and Mgmt","416");
  }
  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 == 429) {
    return q2.options[q2.length] = new Option("MS - Professional Studies in Education","429");
  }
  else if (programNumber == 430) {
    return q2.options[q2.length] = new Option("MS - Clinical Psychology","430");
  }
  else if (programNumber == 431) {
    return q2.options[q2.length] = new Option("MS - Project Management","431");
  }
  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 == 674) {
    return q2.options[q2.length] = new Option("MBA - Accounting","674");
  }
  else if (programNumber == 740) {
    return q2.options[q2.length] = new Option("MBA - Health Care Management","740");
  }
  else if (programNumber == 741) {
    return q2.options[q2.length] = new Option("BS - Information Assurance and Security","741");
  }
  else if (programNumber == 742) {
    return q2.options[q2.length] = new Option("MBA - Information Technology Management","742");
  }
  else if (programNumber == 743) {
    return q2.options[q2.length] = new Option("MBA - Project Management","743");
  }
  else if (programNumber == 744) {
    return q2.options[q2.length] = new Option("PhD - Curriculum and Instruction","744");
  }
  else if (programNumber == 745) {
    return q2.options[q2.length] = new Option("PhD - K-12 Studies in Education","745");
  }
  else if (programNumber == 746) {
    return q2.options[q2.length] = new Option("Graduate Cert - College Teaching","746");
  }
  else if (programNumber == 850) {
    return q2.options[q2.length] = new Option("PhD - Management Education","850");
  }
  else if (programNumber == 851) {
    return q2.options[q2.length] = new Option("PhD - Information Technology Education","851");
  }
  else if (programNumber == 852) {
    return q2.options[q2.length] = new Option("Graduate Cert - Enrollment Management","852");
  }
  else if (programNumber == 853) {
    return q2.options[q2.length] = new Option("MS - Criminal Justice","853");
  }
  else if (programNumber == 854) {
    return q2.options[q2.length] = new Option("MS - Public Safety Leadership","854");
  }
  else if (programNumber == 855) {
    return q2.options[q2.length] = new Option("MS - Emergency Management","855");
  }
  else if (programNumber == 856) {
    return q2.options[q2.length] = new Option("PhD - Criminal Justice","856");
  }
  else if (programNumber == 857) {
    return q2.options[q2.length] = new Option("PhD - Public Safety Leadership","857");
  }
  else if (programNumber == 858) {
    return q2.options[q2.length] = new Option("PhD - Emergency Management","858");
  }
  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 == 882) {
    return q2.options[q2.length] = new Option("MS - Organizational Leader Development","882");
  }
  else if (programNumber == 883) {
    return q2.options[q2.length] = new Option("MS - Evaluation, Research, and Measurement","883");
  }
  else if (programNumber == 884) {
    return q2.options[q2.length] = new Option("MS - Leadership Coaching Psychology","884");
  }
  else if (programNumber == 885) {
    return q2.options[q2.length] = new Option("PhD - General Information Technology","885");
  }
  else if (programNumber == 890) {
    return q2.options[q2.length] = new Option("EdS - Curriculum and Instruction","890");
  }
  else if (programNumber == 891) {
    return q2.options[q2.length] = new Option("EdS - Leadership in Educational Administration","891");
  }
  else if (programNumber == 892) {
    return q2.options[q2.length] = new Option("PhD - Information Security","892");
  }
  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 == 895) {
    return q2.options[q2.length] = new Option("MS - Health Information Management","895");
  }
  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 == 899) {
    return q2.options[q2.length] = new Option("MBA - Human Resource Management","899");
  }
  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 == 939) {
    return q2.options[q2.length] = new Option("MS - Early Childhood Education","939");
  }
  else if (programNumber == 1403) {
    return q2.options[q2.length] = new Option("MS - Business Analysis", "1403");
  }
  else if (programNumber == 1404) {
    return q2.options[q2.length] = new Option("MS - Enterprise Software Architecture", "1404");
  }
  else if (programNumber == 1405) {
    return q2.options[q2.length] = new Option("MS - Human Resource Management","1405");
  }
  else if (programNumber == 1406) {
    return q2.options[q2.length] = new Option("MS - Human Capital Management","1406");
  }
  else if (programNumber == 1407) {
    return q2.options[q2.length] = new Option("MS - Industrial and Labor Relations","1407");
  }
  else if (programNumber == 1408) {
    return q2.options[q2.length] = new Option("MS - Legal Studies","1408");
  }
  else if (programNumber == 1409) {
    return q2.options[q2.length] = new Option("MS - Organizational Development","1409");
  }
  else if (programNumber == 1410) {
    return q2.options[q2.length] = new Option("PhD - Nursing Education","1410");
  }
  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 == 1414) {
    return q2.options[q2.length] = new Option("EdD - Educational Leadership and Management","1414");
  }
  else if (programNumber == 1415) {
    return q2.options[q2.length] = new Option("MBA - Global Operations and Supply Chain Management","1415");
  }
  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 == 1423) {
    return q2.options[q2.length] = new Option("BPA - General Public Administration","1423");
  }
  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 == 1427) {
    return q2.options[q2.length] = new Option("BSN - RN-to-BSN Completion ","1427");
  }
  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");
	  }
}

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, 360, 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", "360", "357", "359", "877", "901");    
    for(x in myOptions) {
      createOption(q2, myOptions[x]);    	
    }	
  }	

  //673, 351, 360, 357, 359, 877, 901, 390, 1409, 1405, 1406,  1407, 1408, 674, 366, 352, 740, 899, 742, 367, 743, 1415 --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", "360", "357", "359", "877", "901", "674", "366", "352", "1415", "740", "899", "742", "367", "743", "1441", "1440", "1439", "1406", "1405", "1407", "390", "1408", "1409");
    for(x in myOptions) {
      createOption(q2, myOptions[x]);    	
    }	
  }

  //673, 351, 360, 357, 359, 877, 901, 390, 1409, 1405, 1406,  1407, 1408, 674, 366, 352, 740, 899, 742, 367, 743, 1415,1418, 416, 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", "360", "357", "359", "877", "901", "674", "366", "352", "1415", "740", "899", "742", "367", "743", "1441", "1440", "1439", "1406", "1405", "1407", "390", "1408", "1409", "1418", "1417", "416", "417", "418", "419", "850", "894");
    for(x in myOptions) {
      createOption(q2, myOptions[x]);    	
    }	
  }

  /*********************************2247*************************************/	  //380, 379, 383, 384, 898, 623, 1416 --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", "380", "379", "383", "384", "898", "623");
    for(x in myOptions) {
      createOption(q2, myOptions[x]);    	
    }	
  }

  //380, 379, 383, 384, 898, 623, 1416,410, 1412, 412, 415, 421, 420, 422 --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", "380", "379", "383", "384", "898", "623", "410", "1412", "421", "412", "420", "422", "415");
    for(x in myOptions) {
      createOption(q2, myOptions[x]);    	
    }	
  }

  /*********************************2248*************************************/	
  //853 --alphabetized
  else if((eduValue == "3 Yr Bacca Non-US" || eduValue == "1 Sem from Bach" || eduValue == "Bachelors Degree" || eduValue == "Some Graduate") && aosValue == "2248") {
    var myOptions = new Array("853");
    for(x in myOptions) {
      createOption(q2, myOptions[x]);    	
    }	
  }    

  //853, 856 --alphabetized
  else if((eduValue == "1 Yr from Masters" || eduValue == "Masters Degree" || eduValue == "EdS" || eduValue == "Some Doctoral" || eduValue == "All but Dissertation" 
    || eduValue == "Doctoral Degree")  && aosValue == "2248") {
    var myOptions = new Array("853","856");
    for(x in myOptions) {
      createOption(q2, myOptions[x]);    	
    }	
  }
  /*********************************2249*************************************/	
  //371, 372, 373, 374, 429, 378, 370, 393, 368, 353, 622, 898, 1411, 396, 939, 883, 397, 1419, 1421, 1422 -- alphabetized
  else if((eduValue == "3 Yr Bacca Non-US") && aosValue == "2249") {    	
    var myOptions = new Array("1411", "370", "939", "393", "371", "883", "372", "368", "373", "353", "374", "429", "622", "898", "396", "1419", "397", "378", "1421", "1422");
    for(x in myOptions) {
      createOption(q2, myOptions[x]);    	
    }	
  }    

  //371, 372, 373, 374, 429, 378, 370, 393, 368, 353, 622, 898, 1411, 396, 939, 883, 397, 1419, 1421, 1422, 746, 852 --alphabetized
  else if((eduValue == "1 Sem from Bach" || eduValue == "Bachelors Degree" || eduValue == "Some Graduate") && aosValue == "2249") {
    var myOptions = new Array("746", "852", "1411", "370", "939", "393", "371", "883", "372", "368", "373", "353", "374", "429", "622", "898", "396", "1419", "397", "378", "1421", "1422");
    for(x in myOptions) {
      createOption(q2, myOptions[x]);    	
    }	
  }
  //371, 372, 373, 374, 429, 378, 370, 393, 368, 353, 622, 898, 1411, 396, 939, 883, 397, 1419, 1421, 1422, 746, 852, 744, 404, 406, 1410, 407, 408, 881, 409, 745, 405, 1412, 421, 850, 851, 1414, 890, 891 --alphabetized
  else if((eduValue == "1 Yr from Masters" || eduValue == "Masters Degree" || eduValue == "EdS" || eduValue == "Some Doctoral" || eduValue == "All but Dissertation" 
    || eduValue == "Doctoral Degree")  && aosValue == "2249") {
    var myOptions = new Array("1414", "890", "891", "746", "852", "1411", "370", "939", "393", "371", "883", "372", "368", "373", "353", "374", "429", "622", "898", "396", "1419", "397", "378", "1421", "1422", "1412", "744", 					"421", "404", "851", "745", "406", "405", "850", "1410", "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, 382, 896, 385, 897, 740 --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", "740", "1441", "1440", "1439", "938", "1428", "382", "896", "385", "897");
    for(x in myOptions) {
      createOption(q2, myOptions[x]);    	
    }	
  }    
  //1420, 938, 382, 896, 385, 897, 740, 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", "740", "1441", "1440", "1439", "938", "382", "896", "385", "897", "413", "414");
    for(x in myOptions) {
      createOption(q2, myOptions[x]);    	
    }	
  }    
  /*********************************2251*************************************/	
  //371, 372, 373, 374, 429, 378, 393, 883, 1421, 1422 --alphabetized
  else if((eduValue == "3 Yr Bacca Non-US" ) && aosValue == "2251") {
    var myOptions = new Array("393", "371", "883", "372", "373", "374", "429", "378", "1421", "1422");
    for(x in myOptions) {
      createOption(q2, myOptions[x]);    	
    }	
  }    
  //371, 372, 373, 374, 429, 378, 393, 883, 1421, 1422, 746, 852--alphabetized
  else if((eduValue == "1 Sem from Bach" || eduValue == "Bachelors Degree" || eduValue == "Some Graduate") && aosValue == "2251") {
    var myOptions = new Array("746", "852", "393", "371", "883", "372", "373", "374", "429", "378", "1421", "1422");
    for(x in myOptions) {
      createOption(q2, myOptions[x]);    	
    }	
  }    
  //371, 372, 373, 374, 429, 378, 393, 883, 1421, 1422, 746, 852, 744, 404, 406, 1410, 407, 408, 881, 409, 1412, 421, 850, 851, 1414 --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("1414", "746", "852", "393", "371", "883", "372", "373", "374", "429", "378", "1421", "1422", "1412", "744", "421", "404", "851", "406", "850", "1410", "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, 1405, 1406, 1407, 1408, 899--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", "899", "1406", "1405", "1407", "1408");
    for(x in myOptions) {
      createOption(q2, myOptions[x]);    	
    }	
  }    

  //357, 1405, 1406, 1407, 1408, 899, 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", "899", "1406", "1405", "1407", "1408", "417");
    for(x in myOptions) {
      createOption(q2, myOptions[x]);    	
    }	
  }
  /*********************************2253*************************************/	
  //370, 939, 372, 368, 353, 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", "939", "393", "372", "368", "353", "622", "898", "396", "1419", "397");
    for(x in myOptions) {
      createOption(q2, myOptions[x]);    	
    }	
  }    

  //370, 939, 372, 368, 353, 622, 898, 1411, 393, 396, 397, 1419,744, 404, 745, 405, 881, 421, 1414, 890, 891
  else if((eduValue == "1 Yr from Masters" || eduValue == "Masters Degree" || eduValue == "EdS" || eduValue == "Some Doctoral" || eduValue == "All but Dissertation" 
    || eduValue == "Doctoral Degree")  && aosValue == "2253") {
    var myOptions = new Array("1414", "890", "891", "1411", "370", "939", "393", "372", "368", "353", "622", "898", "396", "1419", "397", "744", "421", "404", "745", "405", "881");
    for(x in myOptions) {
      createOption(q2, myOptions[x]);    	
    }	
  }
  /*********************************2254*************************************/	
  //1421, 1422, 1427
  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", "1427");
    for(x in myOptions) {
      createOption(q2, myOptions[x]);    	
    }	
  }

  //1427
  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 == "2254") {
    var myOptions = new Array("1427");
    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, 431, 743--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", "743", "431");
    for(x in myOptions) {
      createOption(q2, myOptions[x]);    	
    }	
  }   

  //877, 364, 431, 743, 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", "743", "431", "893", "894");
    for(x in myOptions) {
      createOption(q2, myOptions[x]);    	
    }	
  }
  /*********************************2256*************************************/	
  //1411, 430, 392, 393, 883, 394, 395, 884, 882, 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", "884", "882", "396", "397", "1429");
    for(x in myOptions) {
      createOption(q2, myOptions[x]);    	
    }	
  }    

  //1411, 430, 392, 393, 883, 394, 395, 884, 882, 396, 397, 421, 420, 422, 1429--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", "884", "882", "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*************************************/	
  //1423
  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 == "2257") {
    var myOptions = new Array("1423");
    for(x in myOptions) {
      createOption(q2, myOptions[x]);    	
    }	
  }    
  //1423, 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("1423", "1424");
    for(x in myOptions) {
      createOption(q2, myOptions[x]);    	
    }	

  }

  //1423, 1424, 1425	--alphabetized
  else if((eduValue == "Masters Degree" || eduValue == "Some Doctoral" || eduValue == "All but Dissertation" 
    || eduValue == "Doctoral Degree")  && aosValue == "2257") {
    var myOptions = new Array("1423","1425","1424");
    for(x in myOptions) {
      createOption(q2, myOptions[x]);    	
    }	
  }


  /*********************************2258*************************************/
  //853, 855, 854--alphabetized
  else if((eduValue == "3 Yr Bacca Non-US" || eduValue == "1 Sem from Bach" || eduValue == "Bachelors Degree" || eduValue == "Some Graduate") && aosValue == "2258") {
    var myOptions = new Array("853", "855", "854");
    for(x in myOptions) {
      createOption(q2, myOptions[x]);    	
    }	
  }    

  //853, 855, 854, 856, 858, 857--alphabetized
  else if((eduValue == "1 Yr from Masters" || eduValue == "Masters Degree" || eduValue == "EdS" || eduValue == "Some Doctoral" || eduValue == "All but Dissertation" 
    || eduValue == "Doctoral Degree")  && aosValue == "2258") {
    var myOptions = new Array("853", "855", "854", "856", "858", "857");
    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, 1403, 1404, 398, 895, 399, 400, 431--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", "1403", "1404", "398", "895", "399", "400", "431");
    for(x in myOptions) {
      createOption(q2, myOptions[x]);    	
    }	
  }    

  //361, 878, 741, 363, 364, 879, 1403, 1404, 398, 895, 399, 400, 431, 885, 892, 851, 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", "1403", "1404", "398", "895", "399", "400", "431", "885", "892", "851", "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;
}



