function obj( obj_id ) {return document.getElementById(obj_id)}

/* Education level populating programs*/

function category_array() {

		var edu = new Array();

		var educheck=0;

			switch ( obj('level').value ){

			case '1':
				edu[edu.length] = "-1|Select a Category|"
				edu[edu.length] = "1/Arts|Arts & Humanities"
				edu[edu.length] = "1/Business|Business & MBA"
				edu[edu.length] = "1/Computers|Computers & I.T."
				edu[edu.length] = "1/Education|Education & Teaching"
				edu[edu.length] = "1/Health|Health & Medicine / Nursing"
				edu[edu.length] = "1/Sciences|Science & Technology"
				edu[edu.length] = "1/Society|Social Sciences / Criminal Justice"			
				edu[edu.length] = "1/Trades|Trades & Careers"
				
			break;
			
			case '2':

				edu[edu.length] = "-1|Select a Category|"
				edu[edu.length] = "2/Arts|Arts & Humanities"
				edu[edu.length] = "2/Business|Business & MBA"
				edu[edu.length] = "2/Computers|Computers & I.T."
				edu[edu.length] = "2/Education|Education & Teaching"
				edu[edu.length] = "2/Health|Health & Medicine / Nursing"
				edu[edu.length] = "2/Sciences|Science & Technology"
				edu[edu.length] = "2/Society|Social Sciences / Criminal Justice"

			break;
			
			case '3':
				
				edu[edu.length] = "-1|Select a Category|"
				edu[edu.length] = "3/Arts|Arts & Humanities"
				edu[edu.length] = "3/Business|Business & MBA"
				edu[edu.length] = "3/Computers|Computers & I.T."
				edu[edu.length] = "3/Education|Education & Teaching"
				edu[edu.length] = "3/Health|Health & Medicine / Nursing"
				edu[edu.length] = "3/Sciences|Science & Technology"
				edu[edu.length] = "3/Society|Social Sciences / Criminal Justice"
				
			break;
			
			case '4':

				edu[edu.length] = "-1|Select a Category|"
				edu[edu.length] = "4/Arts|Arts & Humanities"
				edu[edu.length] = "4/Business|Business & MBA"
				edu[edu.length] = "4/Computers|Computers & I.T."
				edu[edu.length] = "4/Education|Education & Teaching"
				edu[edu.length] = "4/Health|Health & Medicine / Nursing"
				edu[edu.length] = "4/Sciences|Science & Technology"	
				edu[edu.length] = "4/Society|Social Sciences / Criminal Justice"				
				edu[edu.length] = "4/Trades|Trades & Careers"
				
			break;
				
			case '5':
				
				edu[edu.length] = "-1|Select a Category|"
				edu[edu.length] = "5/Arts|Arts & Humanities"
				edu[edu.length] = "5/Business|Business & MBA"
				edu[edu.length] = "5/Computers|Computers & I.T."
				edu[edu.length] = "5/Education|Education & Teaching"
				edu[edu.length] = "5/Health|Health & Medicine / Nursing"
				edu[edu.length] = "5/Sciences|Science & Technology"
				edu[edu.length] = "5/Society|Social Sciences / Criminal Justice"

			break;

			default:

				edu[edu.length] = '-1|Select a Category|'

			break;

		}

		newPopSelect( obj('category'), edu, obj('memEducation').value  );

	}


function subject_array() {

		var programs = new Array();

		var educheck=0;

			switch ( obj('category').value ){

			case '1/Arts':

				programs[programs.length] = "-1|Select a Subject|"
				programs[programs.length] = "Design|Design"
				programs[programs.length] = "Fashion|Fashion"
				programs[programs.length] = "General Arts|General Arts"
				programs[programs.length] = "Photography|Photography"
				programs[programs.length] = "Religion|Religion"
				programs[programs.length] = "Writing|Writing"

			break;
			
			case '2/Arts':

				programs[programs.length] = "-1|Select a Subject|"
				programs[programs.length] = "Communications|Communications"
				programs[programs.length] = "Design|Design"
				programs[programs.length] = "Humanities|Humanities"
				programs[programs.length] = "Liberal Arts|Liberal Arts"

			break;
			
			case '3/Arts':

				programs[programs.length] = "-1|Select a Subject|"
				programs[programs.length] = "Communications|Communications"
				programs[programs.length] = "Design|Design"
				programs[programs.length] = "Fashion|Fashion"
				programs[programs.length] = "General Arts|General Arts"
				programs[programs.length] = "Humanities|Humanities"
				programs[programs.length] = "Liberal Arts|Liberal Arts"
				programs[programs.length] = "Religion|Religion"
				programs[programs.length] = "Writing|Writing"				

			break;
			
			case '4/Arts':

				programs[programs.length] = "-1|Select a Subject|"
				programs[programs.length] = "Design|Design"
				programs[programs.length] = "Humanities|Humanities"
				programs[programs.length] = "Music|Music"
				programs[programs.length] = "Religion|Religion"

			break;
			
			
			case '5/Arts':

				programs[programs.length] = "-1|Select a Subject|"
				programs[programs.length] = "Humanities|Humanities"
				programs[programs.length] = "Music|Music"

			break;

			case '1/Business':

				programs[programs.length] = "-1|Select a Subject|"
				programs[programs.length] = "Accounting|Accounting"
				programs[programs.length] = "Business Administration and MBA|Business Administration and MBA"
				programs[programs.length] = "Business Communications|Business Communications"
				programs[programs.length] = "Business Information Systems|Business Information Systems"
				programs[programs.length] = "Business Leadership|Business Leadership"
				programs[programs.length] = "eBusiness and eCommerce|eBusiness and eCommerce"
				programs[programs.length] = "Finance|Finance"
				programs[programs.length] = "Financial Planning|Financial Planning"
				programs[programs.length] = "Hotel and Hospitality Management|Hotel and Hospitality Management"
				programs[programs.length] = "Human Resources|Human Resources"
				programs[programs.length] = "International Business|International Business"
				programs[programs.length] = "Management|Management"
				programs[programs.length] = "Marketing|Marketing"
				programs[programs.length] = "Organizational Management|Organizational Management"
				programs[programs.length] = "Project Management|Project Management"
				programs[programs.length] = "Real Estate|Real Estate"
				programs[programs.length] = "Risk Management|Risk Management"
				programs[programs.length] = "Small Business Management|Small Business Management"

			break;
			
			case '2/Business':

				programs[programs.length] = "-1|Select a Subject|"
				programs[programs.length] = "Accounting|Accounting"
				programs[programs.length] = "Applied Management|Applied Management"
				programs[programs.length] = "Business Administration and MBA|Business Administration and MBA"
				programs[programs.length] = "Business Information Systems|Business Information Systems"
				programs[programs.length] = "Finance|Finance"
				programs[programs.length] = "Human Resources|Human Resources"
				programs[programs.length] = "Finance|Finance"
				programs[programs.length] = "Management|Management"
				programs[programs.length] = "Marketing|Marketing"
				programs[programs.length] = "Human Resources|Human Resources"
				programs[programs.length] = "International Business|International Business"
				programs[programs.length] = "Management|Management"
				programs[programs.length] = "Marketing|Marketing"

			break;
			
			case '3/Business':

				programs[programs.length] = "-1|Select a Subject|"
				programs[programs.length] = "Accounting|Accounting"
				programs[programs.length] = "Applied Management|Applied Management"
				programs[programs.length] = "Business Administration and MBA|Business Administration and MBA"
				programs[programs.length] = "Business Communications|Business Communications"
				programs[programs.length] = "Business Information Systems|Business Information Systems"
				programs[programs.length] = "Business Leadership|Business Leadership"
				programs[programs.length] = "eBusiness and eCommerce|eBusiness and eCommerce"
				programs[programs.length] = "Finance|Finance"	
				programs[programs.length] = "Hotel and Hospitality Management|Hotel and Hospitality Management"
				programs[programs.length] = "Financial Planning|Financial Planning"
				programs[programs.length] = "Hotel and Hospitality Management|Hotel and Hospitality Management"
				programs[programs.length] = "Human Resources|Human Resources"
				programs[programs.length] = "International Business|International Business"
				programs[programs.length] = "Management|Management"
				programs[programs.length] = "Marketing|Marketing"
				programs[programs.length] = "Organizational Management|Organizational Management"
				programs[programs.length] = "Project Management|Project Management"
				programs[programs.length] = "Real Estate|Real Estate"
				programs[programs.length] = "Small Business Management|Small Business Management"
				programs[programs.length] = "Sports Management|Sports Management"

			break;
			
			case '4/Business':

				programs[programs.length] = "-1|Select a Subject|"
				programs[programs.length] = "Accounting|Accounting"
				programs[programs.length] = "Business Administration and MBA|Business Administration and MBA"
				programs[programs.length] = "Business Communications|Business Communications"
				programs[programs.length] = "Business Information Systems|Business Information Systems"
				programs[programs.length] = "Business Leadership|Business Leadership"
				programs[programs.length] = "eBusiness and eCommerce|eBusiness and eCommerce"
				programs[programs.length] = "Finance|Finance"
				programs[programs.length] = "Human Resources|Human Resources"
				programs[programs.length] = "International Business|International Business"
				programs[programs.length] = "Management|Management"
				programs[programs.length] = "Marketing|Marketing"
				programs[programs.length] = "Organizational Management|Organizational Management"
				programs[programs.length] = "Project Management|Project Management"
				programs[programs.length] = "Real Estate|Real Estate"
				programs[programs.length] = "Risk Management|Risk Management"
				programs[programs.length] = "Small Business Management|Small Business Management"
				programs[programs.length] = "Sports Management|Sports Management"

			break;
			
			case '5/Business':

				programs[programs.length] = "-1|Select a Subject|"
				programs[programs.length] = "Applied Management|Applied Management"
				programs[programs.length] = "Business Administration and MBA|Business Administration and MBA"
				programs[programs.length] = "Business Leadership|Business Leadership"
				programs[programs.length] = "eBusiness and eCommerce|eBusiness and eCommerce"
				programs[programs.length] = "Finance|Finance"
				programs[programs.length] = "Human Resources|Human Resources"
				programs[programs.length] = "International Business|International Business"
				programs[programs.length] = "Management|Management"
				programs[programs.length] = "Marketing|Marketing"
				programs[programs.length] = "Organizational Management|Organizational Management"
				programs[programs.length] = "Project Management|Project Management"
				programs[programs.length] = "Sports Management|Sports Management"

			break;
			
			case '1/Computers':

				programs[programs.length] = "-1|Select a Subject|"
				programs[programs.length] = "Computer Science and Engineering|Computer Science and Engineering"
				programs[programs.length] = "Computer Security|Computer Security"
				programs[programs.length] = "Graphics and Multimedia|Graphics and Multimedia"
				programs[programs.length] = "Information Systems|Information Systems"
				programs[programs.length] = "Information Technology|Information Technology"
				programs[programs.length] = "Networks|Networks"
				programs[programs.length] = "PC Repair|PC Repair"
				programs[programs.length] = "Programming|Programming"
				programs[programs.length] = "Software Engineering|Software Engineering"
				programs[programs.length] = "Telecommunications|Telecommunications"	
				programs[programs.length] = "Web Development|Web Development"

			break;

			case '2/Computers':

				programs[programs.length] = "-1|Select a Subject|"
				programs[programs.length] = "Computer Science and Engineering|Computer Science and Engineering"
				programs[programs.length] = "Graphics and Multimedia|Graphics and Multimedia"
				programs[programs.length] = "Information Systems|Information Systems"
				programs[programs.length] = "Information Technology|Information Technology"
				programs[programs.length] = "Networks|Networks"
				programs[programs.length] = "Programming|Programming"
				programs[programs.length] = "Software Engineering|Software Engineering"
				programs[programs.length] = "Telecommunications|Telecommunications"
				programs[programs.length] = "Web Development|Web Development"
				
			break;
			
			case '3/Computers':

				programs[programs.length] = "-1|Select a Subject|"
				programs[programs.length] = "Computer Science and Engineering|Computer Science and Engineering"
				programs[programs.length] = "Computer Security|Computer Security"
				programs[programs.length] = "Graphics and Multimedia|Graphics and Multimedia"
				programs[programs.length] = "Information Systems|Information Systems"
				programs[programs.length] = "Information Technology|Information Technology"
				programs[programs.length] = "Networks|Networks"
				programs[programs.length] = "Programming|Programming"
				programs[programs.length] = "Software Engineering|Software Engineering"
				programs[programs.length] = "Technology Management|Technology Management"	
				programs[programs.length] = "Telecommunications|Telecommunications"
				programs[programs.length] = "Web Development|Web Development"

			break;
			
			case '4/Computers':

				programs[programs.length] = "-1|Select a Subject|"
				programs[programs.length] = "Computer Science and Engineering|Computer Science and Engineering"
				programs[programs.length] = "Computer Security|Computer Security"
				programs[programs.length] = "Graphics and Multimedia|Graphics and Multimedia"
				programs[programs.length] = "Information Systems|Information Systems"
				programs[programs.length] = "Information Technology|Information Technology"
				programs[programs.length] = "Networks|Networks"
				programs[programs.length] = "Programming|Programming"
				programs[programs.length] = "Software Engineering|Software Engineering"		
				programs[programs.length] = "Technology Management|Technology Management"
				programs[programs.length] = "Telecommunications|Telecommunications"

			break;
			
			case '5/Computers':

				programs[programs.length] = "-1|Select a Subject|"
				programs[programs.length] = "Computer Science and Engineering|Computer Science and Engineering"
				programs[programs.length] = "Computer Security|Computer Security"
				programs[programs.length] = "Information Systems|Information Systems"
				programs[programs.length] = "Information Technology|Information Technology"
				programs[programs.length] = "Technology Management|Technology Management"

			break;
			
			case '1/Education':

				programs[programs.length] = "-1|Select a Subject|"
				programs[programs.length] = "Curriculum and Instruction|Curriculum and Instruction"
				programs[programs.length] = "Educational Technology|Educational Technology"
				programs[programs.length] = "General Education|General Education"
				programs[programs.length] = "K12 Education|K12 Education"
				programs[programs.length] = "Special Education|Special Education"
				programs[programs.length] = "Training|Training"
				
			break;
			
			case '2/Education':

				programs[programs.length] = "-1|Select a Subject|"
				programs[programs.length] = "Early Childhood Education|Early Childhood Education"
				programs[programs.length] = "General Education|General Education"
				programs[programs.length] = "K12 Education|K12 Education"
				
			break;
			
			case '3/Education':

				programs[programs.length] = "-1|Select a Subject|"
				programs[programs.length] = "Early Childhood Education|Early Childhood Education"
				programs[programs.length] = "Educational Technology|Educational Technology"
				programs[programs.length] = "General Education|General Education"
				programs[programs.length] = "K12 Education|K12 Education"
				programs[programs.length] = "Training|Training"
				
			break;
			
			case '4/Education':

				programs[programs.length] = "-1|Select a Subject|"
				programs[programs.length] = "Adult and Higher Education|Adult and Higher Education"
				programs[programs.length] = "Curriculum and Instruction|Curriculum and Instruction"
				programs[programs.length] = "Early Childhood Education|Early Childhood Education"
				programs[programs.length] = "Educational Administration|Educational Administration"
				programs[programs.length] = "Educational Leadership|Educational Leadership"	
				programs[programs.length] = "Educational Technology|Educational Technology"
				programs[programs.length] = "General Education|General Education"
				programs[programs.length] = "K12 Education|K12 Education"
				programs[programs.length] = "Library and Resource Management|Library and Resource Management"
				programs[programs.length] = "Special Education|Special Education"
				programs[programs.length] = "Training|Training"
				
			break;
			
			case '5/Education':

				programs[programs.length] = "-1|Select a Subject|"
				programs[programs.length] = "Adult and Higher Education|Adult and Higher Education"
				programs[programs.length] = "Curriculum and Instruction|Curriculum and Instruction"
				programs[programs.length] = "Early Childhood Education|Early Childhood Education"
				programs[programs.length] = "Educational Administration|Educational Administration"
				programs[programs.length] = "Educational Leadership|Educational Leadership"	
				programs[programs.length] = "Educational Technology|Educational Technology"
				programs[programs.length] = "General Education|General Education"
				programs[programs.length] = "K12 Education|K12 Education"
				programs[programs.length] = "Special Education|Special Education"
				programs[programs.length] = "Training|Training"
				
			break;
			
			case '1/Health':

				programs[programs.length] = "-1|Select a Subject|"
				programs[programs.length] = "Fitness|Fitness"
				programs[programs.length] = "Health Administration|Health Administration"
				programs[programs.length] = "Health Services|Health Services"
				programs[programs.length] = "Human Services|Human Services"
				programs[programs.length] = "Medical and Dental|Medical and Dental"	
				programs[programs.length] = "Medical Office|Medical Office"
				programs[programs.length] = "Nursing|Nursing"
				programs[programs.length] = "Nutrition|Nutrition"
				programs[programs.length] = "Pharmacy|Pharmacy"
				programs[programs.length] = "Psychology|Psychology"
				
			break;
			
			case '2/Health':

				programs[programs.length] = "-1|Select a Subject|"
				programs[programs.length] = "Alternative Medicine|Alternative Medicine"
				programs[programs.length] = "Health Administration|Health Administration"
				programs[programs.length] = "Health Services|Health Services"
				programs[programs.length] = "Human Services|Human Services"
				programs[programs.length] = "Medical and Dental|Medical and Dental"
				programs[programs.length] = "Psychology|Psychology"
				
			break;
			
			case '3/Health':

				programs[programs.length] = "-1|Select a Subject|"
				programs[programs.length] = "Health Administration|Health Administration"
				programs[programs.length] = "Health Services|Health Services"
				programs[programs.length] = "Human Services|Human Services"
				programs[programs.length] = "Medical and Dental|Medical and Dental"	
				programs[programs.length] = "Nursing|Nursing"
				programs[programs.length] = "Psychology|Psychology"
				programs[programs.length] = "Radiology|Radiology"
				
			break;
			
			case '4/Health':

				programs[programs.length] = "-1|Select a Subject|"
				programs[programs.length] = "Counseling|Counseling"
				programs[programs.length] = "Health Administration|Health Administration"
				programs[programs.length] = "Health Services|Health Services"
				programs[programs.length] = "Human Services|Human Services"
				programs[programs.length] = "Medical and Dental|Medical and Dental"	
				programs[programs.length] = "Nursing|Nursing"
				programs[programs.length] = "Psychology|Psychology"
				programs[programs.length] = "Public Health|Public Health"
				
			break;
			
			case '5/Health':

				programs[programs.length] = "-1|Select a Subject|"
				programs[programs.length] = "Counseling|Counseling"
				programs[programs.length] = "Health Administration|Health Administration"
				programs[programs.length] = "Health Services|Health Services"
				programs[programs.length] = "Human Services|Human Services"
				programs[programs.length] = "Nursing|Nursing"
				programs[programs.length] = "Pharmacy|Pharmacy"
				programs[programs.length] = "Psychology|Psychology"
				programs[programs.length] = "Public Health|Public Health"
				
			break;
			
			case '1/Sciences':

				programs[programs.length] = "-1|Select a Subject|"
				programs[programs.length] = "Engineering|Engineering"
				programs[programs.length] = "Environmental Sciences|Environmental Sciences"
				
			break;
			
			case '2/Sciences':

				programs[programs.length] = "-1|Select a Subject|"
				programs[programs.length] = "Aviation|Aviation"
				programs[programs.length] = "Engineering|Engineering"
				programs[programs.length] = "Science|Science"
				
			break;
			
			case '3/Sciences':

				programs[programs.length] = "-1|Select a Subject|"
				programs[programs.length] = "Aviation|Aviation"
				programs[programs.length] = "Engineering|Engineering"
				programs[programs.length] = "Environmental Sciences|Environmental Sciences"
				programs[programs.length] = "Science|Science"
				
			break;
			
			case '4/Sciences':

				programs[programs.length] = "-1|Select a Subject|"
				programs[programs.length] = "Aviation|Aviation"
				programs[programs.length] = "Engineering|Engineering"
				programs[programs.length] = "Engineering Management|Engineering Management"
				programs[programs.length] = "Environmental Sciences|Environmental Sciences"
				programs[programs.length] = "Science|Science"
				programs[programs.length] = "Technology|Technology"
				
			break;

			case '5/Sciences':

				programs[programs.length] = "-1|Select a Subject|"
				programs[programs.length] = "Engineering Management|Engineering Management"
				
			break;
			
			case '1/Society':

				programs[programs.length] = "-1|Select a Subject|"
				programs[programs.length] = "Criminal Justice|Criminal Justice"
				programs[programs.length] = "Homeland Security|Homeland Security"
				programs[programs.length] = "Paralegal|Paralegal"
				programs[programs.length] = "Public Administration|Public Administration"
				programs[programs.length] = "Public Safety|Public Safety"
				
			break;
			
			case '2/Society':

				programs[programs.length] = "-1|Select a Subject|"
				programs[programs.length] = "Criminal Justice|Criminal Justice"
				programs[programs.length] = "Homeland Security|Homeland Security"
				programs[programs.length] = "Legal Studies|Legal Studies"
				programs[programs.length] = "Paralegal|Paralegal"
				programs[programs.length] = "Public Safety|Public Safety"
				
			break;
			
			case '3/Society':

				programs[programs.length] = "-1|Select a Subject|"
				programs[programs.length] = "Criminal Justice|Criminal Justice"
				programs[programs.length] = "Homeland Security|Homeland Security"
				programs[programs.length] = "Law|Law"
				programs[programs.length] = "Legal Studies|Legal Studies"
				programs[programs.length] = "Paralegal|Paralegal"
				programs[programs.length] = "Political Science|Political Science"
				programs[programs.length] = "Public Administration|Public Administration"
				programs[programs.length] = "Public Safety|Public Safety"
				
			break;
			
			case '4/Society':

				programs[programs.length] = "-1|Select a Subject|"
				programs[programs.length] = "Criminal Justice|Criminal Justice"
				programs[programs.length] = "Homeland Security|Homeland Security"
				programs[programs.length] = "Law|Law"
				programs[programs.length] = "Paralegal|Paralegal"
				programs[programs.length] = "Political Science|Political Science"
				programs[programs.length] = "Public Administration|Public Administration"
				programs[programs.length] = "Public Safety|Public Safety"
				
			break;
			
			case '5/Society':

				programs[programs.length] = "-1|Select a Subject|"
				programs[programs.length] = "Criminal Justice|Criminal Justice"
				programs[programs.length] = "Homeland Security|Homeland Security"
				programs[programs.length] = "Public Administration|Public Administration"
				programs[programs.length] = "Public Safety|Public Safety"
				
			break;
			
			case '1/Trades':

				programs[programs.length] = "-1|Select a Subject|"
				programs[programs.length] = "Animal Care|Animal Care"
				programs[programs.length] = "Automotive and Mechanics|Automotive and Mechanics"
				programs[programs.length] = "Carpentry and Construction|Carpentry and Construction"
				programs[programs.length] = "Child Day Care|Child Day Care"
				programs[programs.length] = "Culinary|Culinary"
				programs[programs.length] = "Drafting|Drafting"			
				programs[programs.length] = "Electronics|Electronics"
				programs[programs.length] = "Forestry and Wildlife|Forestry and Wildlife"
				programs[programs.length] = "Landscaping|Landscaping"
				programs[programs.length] = "Plumbing and Electrical|Plumbing and Electrical"			
				programs[programs.length] = "Security|Security"
				programs[programs.length] = "Travel and Tourism|Travel and Tourism"
				
			break;
			
			case '4/Trades':
			
				programs[programs.length] = "-1|Select a Subject|"			
				programs[programs.length] = "Travel and Tourism|Travel and Tourism"
				
			break;
			

			default:

				programs[programs.length] = '-1|Select a Subject|'

			break;

		}

		newPopSelect( obj('subject'), programs, obj('memProgram').value  );

	}

	//Logic to setup OptGroups

	function newPopSelect(obj, arr, sel ) {



	  var i,s,selIndex=0,cog=''



	  if(!sel) { var sel = '' }



	  obj.length=0;



	  og_objs = new Array()



	  op_objs = new Array()







	  while ( obj.firstChild ) {



	 	obj.removeChild( obj.firstChild )



	  }



	  for ( i = 0; i < arr.length; i++ ){



	  	s = arr[i].split('|')



		if (s.length > 2 ) {



			if( String(s[2]) != String(cog) ) {



				cog = s[2]



				og_objs[i] = document.createElement('optgroup')



				og_objs[i].setAttribute('id', cog)



				og_objs[i].setAttribute('label', cog)



				obj.appendChild(og_objs[i])



			}



		}



				if ( String(cog) != '') {



				//document.getElementById(cog).options[document.getElementById(cog).options.length] = new Option( s[1], s[0] )



				op_objs[i] = document.createElement('option')



				op_objs[i].setAttribute('value', s[0])



				op_objs[i].appendChild( document.createTextNode( s[1] ) )





				document.getElementById(cog).appendChild( op_objs[i] )





			} else {





				//obj.options[obj.options.length] = new Option( s[1], s[0] )



				op_objs[i] = document.createElement('option')



				op_objs[i].setAttribute('value', s[0])



				op_objs[i].appendChild( document.createTextNode( s[1] ) )



				obj.appendChild( op_objs[i] )



			}



		if ( String(sel) == String(s[0]) ) { selIndex = i }



	  }



	  obj.selectedIndex = selIndex



	}



function getInputByName( nameAttrib ) {



	var inputs = document.getElementsByTagName('input')



	for( var ii=0; ii < inputs.length; ii++ ) {



		if ( inputs[ii].getAttribute('name') == nameAttrib ) {



			return inputs[ii]

		}



	}

}



   function doClick(){

    var optOne = document.myform.optone.options[document.myform.optone.selectedIndex].value;
   	var industry = document.myform.industry.options[document.myform.industry.selectedIndex].value;
   	var eduLvl = document.myform.eduLvl.options[document.myform.eduLvl.selectedIndex].value;
    var CID = document.myform.cid.value;
    var PostUrl = document.myform.PostUrl.value;
    document.myform.action=PostUrl;
   	if (eduLvl == "-1")
   	{
   		alert("Please choose a Degree Level.");
   		return false;
   	}
   	else if (optOne == "-1")
   	{
   		alert("Please choose a Category.");
   		return false;
   	}
   	else if (industry == "-1"){
   		alert("Please choose an Subject.");
   		return false;
   	}
   	else
   	{
   	    return true;
   	}


   }