
var arrayData = new Array();

arrayData[0]    = '|'
arrayData[1]	= 'Associate Degree|General Aviation Flight Technology|'
arrayData[2]	= 'Bachelor Degree-Completion|Business Administration|'
arrayData[3]	= 'Bachelor Degree-Completion|Career and Technical Education|'
arrayData[4]	= 'Bachelor Degree-Completion|Community Health Promotion|'
arrayData[5]	= 'Bachelor Degree-Completion|Criminology|'
arrayData[6]	= 'Bachelor Degree-Completion|Electronics Technology|'
arrayData[7]	= 'Bachelor Degree-Completion|Human Resource Development|'
arrayData[8]	= 'Bachelor Degree-Completion|Industrial Supervision|'
arrayData[9]	= 'Bachelor Degree-Completion|Industrial Technology|'
arrayData[10]	= 'Bachelor Degree-Completion|Insurance and Risk Management|'
arrayData[11]	= 'Bachelor Degree-Completion|Mechanical Design Technology|'
arrayData[12]	= 'Bachelor Degree-Completion|Nursing (RN to BSN)|'
arrayData[13]	= 'Bachelor Degree-Completion|Nursing (LPN to BSN)|'
arrayData[14]	= 'Master\'s Degrees|Criminology|'
arrayData[15]	= 'Master\'s Degrees|Electronics and Computer Technology|'
arrayData[16]	= 'Master\'s Degrees|Health and Safety|'
arrayData[17]	= 'Master\'s Degrees|Human Resource Development|'
arrayData[18]	= 'Master\'s Degrees|Nursing|'
arrayData[19]	= 'Master\'s Degrees|Student Affairs and Higher Education|'
arrayData[20]	= 'Doctoral Degree|Technology Management|'
arrayData[21]	= 'Certificates \/ Licensures|Undergrad : Corrections|'
arrayData[22]	= 'Certificates \/ Licensures|Undergrad : Driver Education|'
arrayData[23]	= 'Certificates \/ Licensures|Undergrad : Law Enforcement|'
arrayData[24]	= 'Certificates \/ Licensures|Undergrad : Private Security|'
arrayData[25]	= 'Certificates \/ Licensures|Grad : Driver Education|'
arrayData[26]	= 'Certificates \/ Licensures|Grad : Family Nurse Practitioner|'
arrayData[27]	= 'Certificates \/ Licensures|Grad : Library Media Services|'
arrayData[28]	= 'Certificates \/ Licensures|Grad : Public Administration \/ Public Personnel Administration|'
arrayData[29]	= 'Certificates \/ Licensures|Grad : School Administration|'
arrayData[30]	= 'Certificates \/ Licensures|Grad : Secondary Teachers|'
arrayData[31]	= 'Certificates \/ Licensures|Grad : Teaching ESL \/ EFL|'
arrayData[32]	= 'Certificates \/ Licensures|Grad : Visual Impairment|'
arrayData[33]	= 'Certificates \/ Licensures|Grad : Vocational Business Education|'

function populateData( name ) {

	select	= window.document.form.subcategory;
	string	= "";

		// 0 - will display the new options only
		// 1 - will display the first existing option plus the new options

	count	= 0;

		// Clear the old list (above element 0)

	select.options.length = count;

		// Place all matching categories into Options.

	for( i = 0; i < arrayData.length; i++ ) {
		string = arrayData[i].split( "|" );
		if( string[0] == name ) {
			select.options[count++] = new Option( string[1] );
		}
	}

		// Set which option from subcategory is to be selected

//	select.options.selectedIndex = 2;

		// Give subcategory focus and select it

//	select.focus();

}
