function Topic(){
	this.tpc;
	this.tpc_id = 0;
	this.topics = new Array();
	this.field_name = "select_tpc";
	this.default_label = "-- Select Topic --";
	
	this._init = function(){
		this.tpc = document.getElementById(this.field_name);
		// clear any initial children, needed for xhtml validation
		while(this.tpc.firstChild){
			this.tpc.removeChild(this.tpc.firstChild);
		}
		var opt = document.createElement("option");
		opt.appendChild(document.createTextNode(this.default_label));
		opt.value = 0;
		this.tpc.appendChild(opt);
	}
	
	this.add = function(sbj_id, tpc_id, tpc_name){
		if(this.topics[sbj_id] == undefined){
			this.topics[sbj_id] = new Array();		
		}
		this.topics[sbj_id].push({tpc_id:tpc_id,tpc_name:tpc_name});
	}
	
	this.populate = function(sbj_id, tpc_id){
		var opt = document.createElement("option");
		opt.appendChild(document.createTextNode(this.default_label));
		opt.value = 0;
		this.tpc.appendChild(opt);
		for(index in this.topics[sbj_id]){
			if(this.topics[sbj_id].hasOwnProperty(index)) {
				var opt = document.createElement("option");
				opt.appendChild(document.createTextNode(this.topics[sbj_id][index]["tpc_name"]));
				opt.value = this.topics[sbj_id][index]["tpc_id"]
				if(tpc_id != undefined && tpc_id == this.topics[sbj_id][index]["tpc_id"]){
					opt.selected = true;
				}
				this.tpc.appendChild(opt);
			}
		}
	}
	
	this.change = function(el){
		this.tpc_id = el.value;
	}
	
	this.clear = function(){
		try{
			while(this.tpc.hasChildNodes){
				this.tpc.removeChild(this.tpc.firstChild);	
			}
		}catch(e){}
	}
	
	this.getTopicID = function(){
		return this.tpc_id;	
	}
	
	this.setFieldName = function(name){
		this.field_name = name;
	}
	
	this.setDefaultLabel = function(label){
		this.default_label = label;
	}

}

function Subject(){
	this.subjects = {};
	this.sbj_id = 0;
	this.tpc_id = 0;
	this.topic = new Object();
	this.field_name = "select_sbj";
	this.default_label = "-- Select Subject --";
		
	this.add = function(sbj_id, sbj_name){
		this.subjects[sbj_id] = {sbj_id:sbj_id,sbj_name:sbj_name};	
	}
		
	this.populate = function(sbj_id, tpc_id){
		var sbj_id = sbj_id | this.sbj_id;
		var tpc_id = tpc_id | this.tpc_id;
		this.topic._init();
		var sbj = document.getElementById(this.field_name);
		// clear any initial children, needed for xhtml validation
		while(sbj.firstChild){
			sbj.removeChild(sbj.firstChild);
		}	
		if(sbj.length == 0){
			var opt = document.createElement("option");
			opt.appendChild(document.createTextNode(this.default_label));
			opt.value = 0;
			sbj.appendChild(opt);
			for(index in this.subjects){
				if(this.subjects.hasOwnProperty(index)) {
					var opt = document.createElement("option");
					opt.appendChild(document.createTextNode(this.subjects[index]["sbj_name"]));
					opt.value = this.subjects[index]["sbj_id"]
					if(sbj_id != undefined && sbj_id == this.subjects[index]["sbj_id"]){
						opt.selected = true;
						this.topic.clear();
						this.topic.populate(sbj_id, tpc_id);
						this.sbj_id = sbj_id;
					}
					sbj.appendChild(opt);
				}
			}
		}
	}
	
	this.change = function(el){
		if(el.options.selectedIndex > 0){
			this.topic.clear();
			this.sbj_id = this.subjects[el.options[el.options.selectedIndex].value]["sbj_id"];
			this.topic.populate(this.sbj_id);
		}else{
			this.sbj_id = 0;
		}
	}
	
	this.getSubjectID = function(){
		return this.sbj_id;	
	}
	
	this.setFieldName = function(name){
		this.field_name = name;
	}
	
	this.setDefaultLabel = function(label){
		this.default_label = label;
	}
	
	this.setTopicObject = function(topic){
		this.topic = topic;
	}
	
}

function _initTopicSubject(subject, topic){
	topic.add(1, 1, "All Topics");
	topic.add(2, 2, "Andean Prehistory");
	topic.add(2, 3, "Anthropological Thought");
	topic.add(2, 4, "Anthropology of Food and Nutrition");
	topic.add(2, 5, "Anthropology of Health and Healing.");
	topic.add(2, 6, "Archaeology and World Prehistory");
	topic.add(2, 7, "Biological Anthropology");
	topic.add(2, 8, "Biological Anthropology and Archaeology");
	topic.add(2, 12, "Caribbean Cultures");
	topic.add(2, 9, "Contemporary First Nations Issues in Canada.");
	topic.add(2, 10, "Cultural Structures of First Nations Imagination.");
	topic.add(2, 14, "Discourse and Power");
	topic.add(2, 15, "Economic Anthropology");
	topic.add(2, 16, "Feminist Perspectives in Anthropology");
	topic.add(2, 17, "First Nations Traditional Cultures of Canada.");
	topic.add(2, 18, "Human Evolution");
	topic.add(2, 19, "Introduction to Syntax and Semantics");
	topic.add(2, 11, "Latin American Cultures");
	topic.add(2, 20, "Linguistics");
	topic.add(2, 647, "Middle Eastern Archaeology");
	topic.add(2, 21, "Native American Language and Culture");
	topic.add(2, 30, "Other");
	topic.add(2, 13, "Pacific Cultures");
	topic.add(2, 22, "Phonological Analysis");
	topic.add(2, 23, "Prehistoric Civilizations of Mesoamerica");
	topic.add(2, 24, "Primate and Human Paleontology");
	topic.add(2, 25, "Principles of Archaeology");
	topic.add(2, 26, "Skeletal Biology");
	topic.add(2, 27, "Society and Culture");
	topic.add(2, 28, "Sociocultural Anthropology");
	topic.add(2, 29, "Symbolic Anthropology");
	topic.add(3, 31, "All Topics");
	topic.add(4, 32, "18th-Century Art");
	topic.add(4, 33, "19th Century Art");
	topic.add(4, 34, "American Art");
	topic.add(4, 35, "Ancient Art");
	topic.add(4, 36, "Art & Mass Media");
	topic.add(4, 37, "Art Criticism");
	topic.add(4, 38, "Art Since 1945");
	topic.add(4, 39, "Baroque Art");
	topic.add(4, 40, "Canadian Art");
	topic.add(4, 41, "Early Mediaeval Art");
	topic.add(4, 42, "Etruscan and Roman Art");
	topic.add(4, 43, "Greek Art");
	topic.add(4, 44, "Historiography and Methodology in Art History");
	topic.add(4, 45, "Italian Renaissance Art");
	topic.add(4, 46, "Mediaeval Art");
	topic.add(4, 47, "Modern Art");
	topic.add(4, 48, "Museum Studies");
	topic.add(4, 49, "Northern Renaissance Art");
	topic.add(4, 53, "Other");
	topic.add(4, 50, "Romanesque and Gothic Art");
	topic.add(4, 51, "The Judaeo-Christian Tradition");
	topic.add(4, 52, "The Mythological-Magical Tradition");
	topic.add(5, 54, "Classical Astronomy");
	topic.add(5, 60, "Galactic Structure and Interstellar Matter");
	topic.add(5, 55, "General Astronomy");
	topic.add(5, 62, "Other");
	topic.add(5, 56, "Relativistic Astrophysics");
	topic.add(5, 61, "Stellar Atmospheres");
	topic.add(5, 57, "Stellar Structure and Evolution");
	topic.add(5, 58, "The Search for Life in the Universe");
	topic.add(5, 59, "The Solar System");
	topic.add(6, 63, "Analysis and Interpretation of Biological Data");
	topic.add(6, 64, "Animal Behavior");
	topic.add(6, 65, "Animal Physiology");
	topic.add(6, 66, "Animal Reproduction");
	topic.add(6, 67, "Aquatic Ecosystems");
	topic.add(6, 68, "Autecology");
	topic.add(6, 69, "Bacteria and Viruses");
	topic.add(6, 70, "Biochemistry");
	topic.add(6, 71, "Biology and the Human Environment");
	topic.add(6, 72, "Biophysical Analysis");
	topic.add(6, 73, "Biophysics");
	topic.add(6, 74, "Cell Biology");
	topic.add(6, 75, "Cellular Physiology");
	topic.add(6, 76, "Developmental Biology");
	topic.add(6, 77, "Ecology");
	topic.add(6, 78, "Environmental Biology");
	topic.add(6, 653, "Evolution");
	topic.add(6, 79, "Evolution of Plants");
	topic.add(6, 80, "Fungi Biology");
	topic.add(6, 630, "Genetics");
	topic.add(6, 81, "Human Biology");
	topic.add(6, 82, "Immunology");
	topic.add(6, 83, "Infection and Immunity");
	topic.add(6, 84, "Insect Biology");
	topic.add(6, 728, "Limnology");
	topic.add(6, 85, "Macromolecules");
	topic.add(6, 86, "Mammalian Histology");
	topic.add(6, 87, "Mammalian Physiology");
	topic.add(6, 88, "Microbiology");
	topic.add(6, 89, "Neuroscience");
	topic.add(6, 97, "Other");
	topic.add(6, 90, "Parasitology");
	topic.add(6, 91, "Pharmacology");
	topic.add(6, 92, "Plant Physiology and Biochemistry");
	topic.add(6, 93, "Plant Structure and Development");
	topic.add(6, 94, "The Evolution of Invertebrate Phyla");
	topic.add(6, 95, "Vertebrate Biology");
	topic.add(6, 96, "Vertebrate Histology");
	topic.add(7, 98, "Accounting/Business Analysis/Financial Reporting");
	topic.add(7, 99, "Advertising and Promotion");
	topic.add(7, 100, "Auditing");
	topic.add(7, 101, "Business Analysis");
	topic.add(7, 102, "Business Law");
	topic.add(7, 103, "Business Policy");
	topic.add(7, 104, "Data Communications");
	topic.add(7, 106, "E-Commerce/Internet");
	topic.add(7, 105, "Entrepreneurial Issues");
	topic.add(7, 642, "Finance");
	topic.add(7, 644, "Financial Markets and Services");
	topic.add(7, 774, "Informatics");
	topic.add(7, 107, "Information Systems");
	topic.add(7, 108, "International Business");
	topic.add(7, 109, "Management");
	topic.add(7, 110, "Marketing");
	topic.add(7, 112, "Other");
	topic.add(7, 776, "Project Management");
	topic.add(7, 111, "Taxation");
	topic.add(8, 113, "Air Pollution Control");
	topic.add(8, 114, "Biochemical Engineering");
	topic.add(8, 115, "Biochemical Separation Processes");
	topic.add(8, 116, "Catalytic Processes");
	topic.add(8, 119, "Chemical Process and Plant Design");
	topic.add(8, 641, "Control Systems");
	topic.add(8, 120, "Industrial Organic Chemistry");
	topic.add(8, 117, "Kinetics");
	topic.add(8, 121, "Momentum, Heat, and Mass Transfer");
	topic.add(8, 129, "Other");
	topic.add(8, 122, "Process Identification");
	topic.add(8, 123, "Process Material and Energy Balances");
	topic.add(8, 124, "Solid Waste Treatment");
	topic.add(8, 125, "Statistical Process Analysis");
	topic.add(8, 126, "Thermodynamics");
	topic.add(8, 118, "Thermodynamics");
	topic.add(8, 127, "Unit Operations");
	topic.add(8, 128, "Water Pollution Design");
	topic.add(9, 130, "Analytical Chemistry");
	topic.add(9, 131, "Biological Systems");
	topic.add(9, 132, "Bonding and Molecule Formation");
	topic.add(9, 133, "Chemistry of Biological and Bioactive Organic Comp");
	topic.add(9, 134, "Chemistry of Biological Macromolecules");
	topic.add(9, 135, "Dynamics");
	topic.add(9, 136, "Electrochemistry and Chemical Kinetics");
	topic.add(9, 137, "Environmental Chemistry");
	topic.add(9, 138, "General Chemistry");
	topic.add(9, 139, "Inorganic Chemistry");
	topic.add(9, 140, "Organic Chemistry");
	topic.add(9, 141, "Organometallic Chemistry");
	topic.add(9, 149, "Other");
	topic.add(9, 142, "Photochemistry");
	topic.add(9, 143, "Physical Chemistry");
	topic.add(9, 144, "Polymer Chemistry");
	topic.add(9, 771, "Properties of a Substance");
	topic.add(9, 145, "Quantum Chemistry/Chemical Kinetics");
	topic.add(9, 146, "Spectorscopy and Dynamics");
	topic.add(9, 147, "Statistical Mechanics");
	topic.add(9, 148, "Transition Metals");
	topic.add(10, 150, "Civil Engineering Systems");
	topic.add(10, 151, "Communications Systems");
	topic.add(10, 152, "Concrete Design");
	topic.add(10, 153, "Dynamics of Structures");
	topic.add(10, 154, "Engineering Fluid Mechanics");
	topic.add(10, 155, "Environmental Design for Waste Disposal");
	topic.add(10, 156, "Environmental Engineering");
	topic.add(10, 157, "Environmental Hydraulics Design");
	topic.add(10, 158, "Geotechnical Engineering Design");
	topic.add(10, 159, "Mechanics of Materials");
	topic.add(10, 160, "Municipal Engineering Design");
	topic.add(10, 166, "Other");
	topic.add(10, 161, "Soil Mechanics and Hydrogeologic Engineering");
	topic.add(10, 162, "Steel Design");
	topic.add(10, 163, "Structural Theory and Design");
	topic.add(10, 164, "Surveying");
	topic.add(10, 165, "Wood Design");
	topic.add(11, 167, "Ancient Literature");
	topic.add(11, 168, "Ancient Religion/Mythology");
	topic.add(11, 169, "Byzantine Civilization and Art");
	topic.add(11, 170, "Classical Civilization and Art");
	topic.add(11, 171, "Classics and the Modern World");
	topic.add(11, 172, "Epic Poetry");
	topic.add(11, 173, "Greek and Latin Elements in English");
	topic.add(11, 174, "Greek and Roman Archaeology");
	topic.add(11, 175, "Greek and Roman Drama");
	topic.add(11, 176, "Greek and Roman Thought");
	topic.add(11, 177, "Greek Archaeology: Prehistoric to Classical");
	topic.add(11, 178, "Greek History/Law");
	topic.add(11, 182, "Other");
	topic.add(11, 179, "Roman History/Law");
	topic.add(11, 180, "Roman Satire");
	topic.add(11, 181, "The Ancient Novel");
	topic.add(45, 632, "Forensics and Debate");
	topic.add(45, 636, "Other");
	topic.add(45, 633, "Public Speaking");
	topic.add(45, 634, "Rhetorical Criticism");
	topic.add(45, 635, "Theories of Human Communication");
	topic.add(12, 183, "Artificial Intelligence");
	topic.add(12, 184, "Compiler Theory");
	topic.add(12, 185, "Computer Architecture");
	topic.add(12, 186, "Computer Organization");
	topic.add(12, 187, "Computing and Communications Software");
	topic.add(12, 188, "Data Structures and Algorithms");
	topic.add(12, 189, "Databases");
	topic.add(12, 190, "Distributed and Parallel Systems");
	topic.add(12, 191, "File Processing");
	topic.add(12, 651, "HTML");
	topic.add(12, 775, "Informatics");
	topic.add(12, 192, "Information Systems and Design");
	topic.add(12, 193, "Multi-Media Methodology");
	topic.add(12, 194, "Networks");
	topic.add(12, 195, "Numerical Computing");
	topic.add(12, 196, "Operating Systems");
	topic.add(12, 201, "Other");
	topic.add(12, 197, "Software Design and Architecture");
	topic.add(12, 198, "Software Engineering");
	topic.add(12, 199, "Software Tools and Systems Programming.");
	topic.add(12, 200, "Systems Analysis");
	topic.add(12, 650, "Web Design");
	topic.add(13, 202, "All Topics");
	topic.add(14, 203, "All Topics");
	topic.add(16, 223, "Cost-Benefit Analysis");
	topic.add(16, 224, "Econometrics");
	topic.add(16, 225, "Economic Analysis of Law");
	topic.add(16, 226, "Economic Development");
	topic.add(16, 227, "Economic History");
	topic.add(16, 228, "Economic Policy");
	topic.add(16, 229, "Economic Systems");
	topic.add(16, 643, "Finance");
	topic.add(16, 230, "International Business");
	topic.add(16, 231, "International Economy In Historical Perspective");
	topic.add(16, 232, "International Trade");
	topic.add(16, 233, "Labor Economics");
	topic.add(16, 234, "Macroeconomics");
	topic.add(16, 235, "Microeconomics");
	topic.add(16, 236, "Monetary Theory/Policy");
	topic.add(16, 240, "Other");
	topic.add(16, 237, "Political Economy");
	topic.add(16, 238, "Principles of Mathematical Economics");
	topic.add(16, 239, "Public Finance");
	topic.add(17, 729, "Library and Information Studies");
	topic.add(17, 637, "Other");
	topic.add(18, 243, "Advanced Digital Systems");
	topic.add(18, 244, "Communication Electronics");
	topic.add(18, 245, "Communications Systems");
	topic.add(18, 246, "Communications Theory");
	topic.add(18, 247, "Computer Architectures");
	topic.add(18, 248, "Control Systems");
	topic.add(18, 249, "Digital Control");
	topic.add(18, 250, "Digital Logic Systems");
	topic.add(18, 251, "Electric Circuits");
	topic.add(18, 252, "Electrical and Electronic Circuits");
	topic.add(18, 253, "Electrical Energy Conversion");
	topic.add(18, 254, "Electrical Measurement and Instrumentation");
	topic.add(18, 255, "Electromagnetic Theory");
	topic.add(18, 259, "Electromagnetics");
	topic.add(18, 256, "Electromechanics and Power Systems");
	topic.add(18, 257, "Electronic Instrumentation and Measurement");
	topic.add(18, 258, "Electronics");
	topic.add(18, 260, "Microprocessors and Microcomputers");
	topic.add(18, 265, "Other");
	topic.add(18, 261, "Real-Time Systems");
	topic.add(18, 262, "Signal Processing");
	topic.add(18, 263, "Systems Optimization");
	topic.add(18, 264, "Telecommunications Engineering");
	topic.add(19, 266, "African and Asian Cultures Across the Ages");
	topic.add(19, 267, "Alienation, Protest and Rebellion in Modern Europe");
	topic.add(19, 268, "American Drama");
	topic.add(19, 269, "American Literature");
	topic.add(19, 270, "Baroque Literature and Culture");
	topic.add(19, 271, "British Drama: Restoration to Victorian");
	topic.add(19, 272, "Canadian Drama");
	topic.add(19, 273, "Canadian Literature");
	topic.add(19, 274, "Children's Literature");
	topic.add(19, 275, "Contemporary Poetry in English");
	topic.add(19, 276, "Creative Writing");
	topic.add(19, 277, "Culture of the Enlightenment");
	topic.add(19, 278, "Culture of the Renaissance in Europe");
	topic.add(19, 279, "Documents of German Intellectual History");
	topic.add(19, 280, "Dramatic Forms and Genres");
	topic.add(19, 281, "Forms of Fiction");
	topic.add(19, 282, "General Literature and Composition");
	topic.add(19, 283, "Greek and Roman Theatre and Drama");
	topic.add(19, 284, "Literary Theory");
	topic.add(19, 285, "Literature and Culture of the Middle Ages");
	topic.add(19, 286, "Literature of the Bible");
	topic.add(19, 287, "Medieval Language and Literature");
	topic.add(19, 288, "Medieval to Jacobean Drama (excluding Shakespeare)");
	topic.add(19, 289, "Modern Drama");
	topic.add(19, 290, "Modern Literature");
	topic.add(19, 291, "Nineteenth-century Literature and Culture");
	topic.add(19, 292, "Old English Language and Literature");
	topic.add(19, 305, "Other");
	topic.add(19, 293, "Renaissance Literature");
	topic.add(19, 294, "Restoration and Eighteenth-Century Literature");
	topic.add(19, 295, "Russian Literature and Culture");
	topic.add(19, 296, "Shakespeare");
	topic.add(19, 297, "Short Stories");
	topic.add(19, 298, "Spanish American Civilization");
	topic.add(19, 299, "Spanish Civilization");
	topic.add(19, 300, "Speculative Fiction");
	topic.add(19, 301, "The Grotesque");
	topic.add(19, 302, "Twentieth-Century British Literature");
	topic.add(19, 303, "Twentieth-century Culture");
	topic.add(19, 304, "Women and Literature");
	topic.add(20, 206, "All Topics");
	topic.add(20, 734, "Environmental Assessment");
	topic.add(20, 732, "Environmental Conservation and Restoration");
	topic.add(20, 736, "Environmental Health");
	topic.add(20, 731, "Environmental Management");
	topic.add(20, 735, "Environmental Management Systems");
	topic.add(20, 733, "Environmental Responsibilities");
	topic.add(20, 730, "Legal Issues in the Environment");
	topic.add(20, 737, "Natural Resource Administration");
	topic.add(21, 307, "Aesthetics");
	topic.add(21, 308, "American Film");
	topic.add(21, 309, "Avant-Garde Cinema");
	topic.add(21, 310, "Canadian Film");
	topic.add(21, 311, "Contemporary Film");
	topic.add(21, 312, "Documentary Film");
	topic.add(21, 313, "Film Theory");
	topic.add(21, 315, "Other");
	topic.add(21, 314, "World Cinema");
	topic.add(22, 316, "Art Criticism");
	topic.add(22, 317, "Contemporary Media");
	topic.add(22, 318, "Interactive Media.");
	topic.add(22, 319, "Mechanical Reproduction");
	topic.add(22, 320, "Museum Studies.");
	topic.add(22, 321, "New Media.");
	topic.add(22, 325, "Other");
	topic.add(22, 322, "Photography.");
	topic.add(22, 323, "Printmaking");
	topic.add(22, 324, "Sculpture");
	topic.add(41, 664, "Contemporary Feminist Thought");
	topic.add(41, 665, "Feminist Research Methodologies");
	topic.add(41, 663, "Feminist Thought to 1980");
	topic.add(41, 657, "Gender and Environment");
	topic.add(41, 666, "Gender and Legal Issues");
	topic.add(41, 659, "Gender and Music");
	topic.add(41, 667, "Gender, Culture and Contagion");
	topic.add(41, 669, "Gender, Health & Body");
	topic.add(41, 661, "Gender, Work and Society");
	topic.add(41, 662, "Gendered Perspectives on Cultural Issues");
	topic.add(41, 656, "Images of Women and Men in Popular Culture");
	topic.add(41, 621, "Other");
	topic.add(41, 660, "Sociological Perspectives on Gender and Sexuality");
	topic.add(41, 668, "Understanding Western Patriarchy");
	topic.add(41, 658, "Women and Development");
	topic.add(23, 326, "Biogeography");
	topic.add(23, 327, "Cartography");
	topic.add(23, 329, "Dendrochronology");
	topic.add(23, 328, "Developmental Issues");
	topic.add(23, 330, "Drainage Basin Geomorphology");
	topic.add(23, 331, "Economic and Resource Geography");
	topic.add(23, 332, "Environmental Issues");
	topic.add(23, 333, "Geographic Information Systems (GIS)");
	topic.add(23, 334, "Geography of Cultural Studies");
	topic.add(23, 335, "Geomorphology and Hydrology");
	topic.add(23, 336, "Glacial Geomorphology");
	topic.add(23, 337, "Global Change: Issues and Impacts");
	topic.add(23, 338, "Historical Geography");
	topic.add(23, 339, "Hydrology");
	topic.add(23, 340, "Leisure & Recreation Studies");
	topic.add(23, 341, "Location Theory");
	topic.add(23, 342, "Meteorology");
	topic.add(23, 343, "Micrometeorology");
	topic.add(23, 344, "Native Studies");
	topic.add(23, 638, "Other");
	topic.add(23, 345, "Periglacial Environments");
	topic.add(23, 346, "Political Geography");
	topic.add(23, 347, "Quantitative Analysis in Geography");
	topic.add(23, 348, "Remote Sensing");
	topic.add(23, 349, "Resource management");
	topic.add(23, 350, "Social Geography");
	topic.add(23, 351, "Spatial Analysis");
	topic.add(23, 352, "Urban Culture and Development");
	topic.add(23, 629, "World Regional Geography");
	topic.add(15, 204, "Crystallography");
	topic.add(15, 205, "Environmental Geology.");
	topic.add(15, 206, "Environmental Issues");
	topic.add(15, 207, "Field Mapping");
	topic.add(15, 208, "Geochemistry");
	topic.add(15, 209, "Geophysics");
	topic.add(15, 210, "Glacial Geology");
	topic.add(15, 211, "Hydrogeology");
	topic.add(15, 212, "Hydrology");
	topic.add(15, 213, "Mineral Chemistry and Physics");
	topic.add(15, 214, "Mineral Physics");
	topic.add(15, 215, "Mineralogy");
	topic.add(15, 222, "Other");
	topic.add(15, 216, "Paleontology");
	topic.add(15, 217, "Petroleum Geology and Geochemistry");
	topic.add(15, 218, "Petrology");
	topic.add(15, 219, "Plate Tectonic Geology and Lithology");
	topic.add(15, 220, "Stratigraphy and Sedimentology");
	topic.add(15, 221, "Structural Geology");
	topic.add(24, 353, "All Topics");
	topic.add(25, 356, "Ageing and Health");
	topic.add(25, 358, "Communications & Interpersonal Relationships");
	topic.add(25, 355, "Health Care Ethics");
	topic.add(25, 360, "Health Issues Throughout the Lifespan");
	topic.add(25, 361, "Health Promotion and Disease & Injury Prevention");
	topic.add(25, 357, "Human Anatomy");
	topic.add(25, 362, "Measurement, Research Methods and Evaluation");
	topic.add(25, 364, "Other");
	topic.add(25, 652, "Pathophysiology");
	topic.add(25, 363, "Professional Ethics");
	topic.add(25, 359, "Service Delivery");
	topic.add(25, 354, "Wellness/Lifestyle Analysis");
	topic.add(26, 365, "African History");
	topic.add(26, 366, "American Legal and Constitutional History");
	topic.add(26, 367, "Ancient and Mediaeval History");
	topic.add(26, 368, "Britain Since 1688");
	topic.add(26, 369, "Britain to 1688");
	topic.add(26, 370, "Canadian History");
	topic.add(26, 371, "Chinese History");
	topic.add(26, 372, "Colonial British America");
	topic.add(26, 373, "Crusaders and Moslems in the Twelfth Century");
	topic.add(26, 374, "European History since 1715");
	topic.add(26, 375, "European History to 1715");
	topic.add(26, 376, "European International Relations");
	topic.add(26, 377, "Foreign Policy of the United States since 1775");
	topic.add(26, 378, "France, 1715 to the Present");
	topic.add(26, 379, "German History, 1815 to the Present");
	topic.add(26, 380, "History of Christianity");
	topic.add(26, 381, "History of the Middle East");
	topic.add(26, 382, "Islamic History and Civilization");
	topic.add(26, 383, "Japanese History");
	topic.add(26, 384, "Latin American History");
	topic.add(26, 385, "Mediaeval Europe");
	topic.add(26, 386, "Medieval Studies");
	topic.add(26, 387, "Mediterranean History");
	topic.add(26, 388, "Museology");
	topic.add(26, 639, "Other");
	topic.add(26, 390, "Russia-USSR since 18th Century");
	topic.add(26, 389, "Russian History to 18th Century");
	topic.add(26, 649, "U.S. History since 1877");
	topic.add(26, 648, "U.S. History to 1877");
	topic.add(26, 391, "War Studies");
	topic.add(27, 392, "Athletic Injuries");
	topic.add(27, 393, "Biomechanical Analysis");
	topic.add(27, 394, "Biomechanics");
	topic.add(27, 395, "Bioscience");
	topic.add(27, 396, "Coaching");
	topic.add(27, 397, "Ethics and Sport");
	topic.add(27, 408, "Other");
	topic.add(27, 398, "Perceptual-Motor Performance/Learning");
	topic.add(27, 399, "Philosophy of Sport");
	topic.add(27, 400, "Physical Growth and Motor Development");
	topic.add(27, 401, "Practical Aspects of Athletic Injuries");
	topic.add(27, 402, "Psycho-Motor Behavior");
	topic.add(27, 403, "Social Issues in Sport");
	topic.add(27, 404, "Sport and Culture");
	topic.add(27, 405, "Sport History");
	topic.add(27, 406, "Sport Management");
	topic.add(27, 407, "Sport Psychology");
	topic.add(28, 409, "Arabic");
	topic.add(28, 410, "French");
	topic.add(28, 411, "German");
	topic.add(28, 412, "Greek");
	topic.add(28, 413, "Hebrew");
	topic.add(28, 414, "Italian");
	topic.add(28, 415, "Japanese");
	topic.add(28, 416, "Latin");
	topic.add(28, 419, "Other");
	topic.add(28, 417, "Polish");
	topic.add(28, 418, "Spanish");
	topic.add(43, 710, "Children and the Law");
	topic.add(43, 704, "Civil Procedure");
	topic.add(43, 711, "Clinical Administrative Law");
	topic.add(43, 707, "Commercial Law");
	topic.add(43, 691, "Comparative Criminology and Criminal Justice");
	topic.add(43, 695, "Constitutional Law");
	topic.add(43, 692, "Contracts");
	topic.add(43, 693, "Criminal Law and Procedure");
	topic.add(43, 690, "Criminology");
	topic.add(43, 701, "Debtors' and Creditors' Rights");
	topic.add(43, 712, "Dispute Resolution");
	topic.add(43, 694, "Drugs and Crime");
	topic.add(43, 717, "Employment Law");
	topic.add(43, 702, "Evidence");
	topic.add(43, 703, "Family Law");
	topic.add(43, 709, "Gender and the Law");
	topic.add(43, 773, "Human Rights");
	topic.add(43, 713, "Immigration and Refugee Law");
	topic.add(43, 714, "Insurance Law");
	topic.add(43, 721, "Intellectual Property");
	topic.add(43, 724, "International Law");
	topic.add(43, 725, "Jurisprudence");
	topic.add(43, 726, "Labour-Management Relations");
	topic.add(43, 723, "Land Titles");
	topic.add(43, 722, "Landlord and Tenant");
	topic.add(43, 718, "Law and Bio Ethics");
	topic.add(43, 698, "Legal Methods");
	topic.add(43, 705, "Legal Negotiation");
	topic.add(43, 715, "Limits of Law");
	topic.add(43, 716, "Natural Resource Administration and Law");
	topic.add(43, 624, "Other");
	topic.add(43, 697, "Property");
	topic.add(43, 719, "Restitution");
	topic.add(43, 772, "Restorative Justice");
	topic.add(43, 706, "Sales and Consumer Law");
	topic.add(43, 689, "Sociology of Law");
	topic.add(43, 696, "Torts and Compensation Systems");
	topic.add(43, 708, "Transportation Law");
	topic.add(43, 700, "Trusts");
	topic.add(43, 699, "Wills and Succession");
	topic.add(43, 727, "Youth, Crime, and Society");
	topic.add(29, 420, "Algebra");
	topic.add(29, 421, "Algebraic Number Theory");
	topic.add(29, 422, "Algebraic Topology");
	topic.add(29, 423, "Calculus");
	topic.add(29, 424, "Combinatorial Mathematics");
	topic.add(29, 425, "Complex Variables");
	topic.add(29, 770, "Consumer Mathematics");
	topic.add(29, 426, "Continuum Mechanics");
	topic.add(29, 427, "Discrete Optimization");
	topic.add(29, 428, "Discrete Structures");
	topic.add(29, 429, "Finite Element Methods");
	topic.add(29, 430, "Finite Mathematics");
	topic.add(29, 431, "Fluid Dynamics");
	topic.add(29, 435, "Fourier Series.");
	topic.add(29, 631, "Fractions");
	topic.add(29, 432, "Functional Analysis");
	topic.add(29, 433, "Geometry");
	topic.add(29, 434, "Group Theory");
	topic.add(29, 436, "Linear Operators");
	topic.add(29, 437, "Modelling and Simulation");
	topic.add(29, 438, "Numerical Analysis");
	topic.add(29, 439, "Numerical Methods");
	topic.add(29, 440, "Operations Research");
	topic.add(29, 441, "Optimization");
	topic.add(29, 442, "Ordinary Differential Equations");
	topic.add(29, 451, "Other");
	topic.add(29, 443, "Partial Differential Equations");
	topic.add(29, 444, "Particles");
	topic.add(29, 445, "Quantum Mechanics");
	topic.add(29, 446, "Real Variables");
	topic.add(29, 447, "Scientific Programming");
	topic.add(29, 448, "Solid Mechanics");
	topic.add(29, 449, "Theory of Numbers");
	topic.add(29, 450, "Topology");
	topic.add(29, 654, "Trigonometry");
	topic.add(30, 452, "Aerodynamics");
	topic.add(30, 453, "Aeronautical Engineering");
	topic.add(30, 454, "Computer Integrated Manufacturing (CIM)");
	topic.add(30, 455, "Computer Numerically Controlled (CNC) Machining");
	topic.add(30, 456, "Corrosion And Wear");
	topic.add(30, 457, "Dynamics and Vibrations");
	topic.add(30, 458, "Energy Conversion");
	topic.add(30, 459, "Engineering Design");
	topic.add(30, 460, "Fluid Mechanics");
	topic.add(30, 461, "Heat Transfer");
	topic.add(30, 462, "Heating, Ventilating and Air Conditioning");
	topic.add(30, 463, "Industrial Control Systems");
	topic.add(30, 464, "Kinematics");
	topic.add(30, 465, "Manufacturing Processes");
	topic.add(30, 466, "Materials Engineering");
	topic.add(30, 467, "Mechanical Components Design");
	topic.add(30, 468, "Mechanical Engineering Design (Industrial)");
	topic.add(30, 469, "Mechanical Vibrations");
	topic.add(30, 470, "Mechatronic System Design");
	topic.add(30, 471, "Metallurgical Engineering");
	topic.add(30, 472, "Microstructural Analysis");
	topic.add(30, 477, "Other");
	topic.add(30, 473, "Physical Metallurgy");
	topic.add(30, 474, "Robotics and Manufacturing Automation");
	topic.add(30, 475, "Solid Mechanics");
	topic.add(30, 476, "Thermodynamics");
	topic.add(31, 480, "Explosives");
	topic.add(31, 479, "Mine Design");
	topic.add(31, 478, "Mining Techniques");
	topic.add(31, 481, "Other");
	topic.add(32, 482, "Baroque and Classical Music");
	topic.add(32, 483, "Cantata and Oratorio Literature");
	topic.add(32, 484, "Chamber Music");
	topic.add(32, 485, "Choral Literature and Techniques");
	topic.add(32, 486, "Classical Music, 1760 to 1810");
	topic.add(32, 487, "Communication in Music");
	topic.add(32, 488, "Composition");
	topic.add(32, 489, "Diction");
	topic.add(32, 490, "General Integrated Musicianship (GIM)");
	topic.add(32, 491, "Instrumental Ensemble Techniques");
	topic.add(32, 492, "Jazz");
	topic.add(32, 493, "Kod�ly Concept");
	topic.add(32, 494, "Medieval Music");
	topic.add(32, 495, "Music Administrative Studies");
	topic.add(32, 496, "Music Education");
	topic.add(32, 497, "Music History: c.1600 to c.1800");
	topic.add(32, 498, "Music History: c.1800 to Present");
	topic.add(32, 499, "Music History: c.900 to c.1600");
	topic.add(32, 500, "Music of the Late 20th Century");
	topic.add(32, 501, "Music of the World");
	topic.add(32, 502, "Musical Theatre");
	topic.add(32, 503, "Musicology");
	topic.add(32, 504, "Opera c. 1830 to c. 1925");
	topic.add(32, 505, "Opera c.1925 to the Present");
	topic.add(32, 506, "Opera to c.1830");
	topic.add(32, 516, "Other");
	topic.add(32, 507, "Pedagogy");
	topic.add(32, 508, "Performance Practices");
	topic.add(32, 509, "Renaissance Music");
	topic.add(32, 510, "Research in Music Theory");
	topic.add(32, 511, "Romantic Music");
	topic.add(32, 512, "Schenkerian Analysis");
	topic.add(32, 513, "Score Preparation and Instrumental Arranging");
	topic.add(32, 514, "The Symphony 1750-1850");
	topic.add(32, 515, "The Symphony 1850 to Present");
	topic.add(33, 517, "Aesthetics");
	topic.add(33, 518, "Analytic Philosophy");
	topic.add(33, 519, "Ancient Philosophy");
	topic.add(33, 520, "Asian Philosophies");
	topic.add(33, 645, "Cognitive Science");
	topic.add(33, 521, "Decision Analysis");
	topic.add(33, 522, "Early Modern Philosophy");
	topic.add(33, 523, "Environmental Philosophy");
	topic.add(33, 524, "Epistemology");
	topic.add(33, 525, "Ethics and Value Theory");
	topic.add(33, 526, "Feminist Philosophy");
	topic.add(33, 527, "Great Philosophers");
	topic.add(33, 528, "Justice");
	topic.add(33, 529, "Logical Theory");
	topic.add(33, 530, "Mediaeval Philosophy");
	topic.add(33, 531, "Metaphysics");
	topic.add(33, 532, "Normative Reasoning");
	topic.add(33, 538, "Other");
	topic.add(33, 646, "Philosophy of Religion");
	topic.add(33, 533, "Philosophy of the Emotions");
	topic.add(33, 534, "Political Philosophy");
	topic.add(33, 535, "Reasoning and Critical Thinking");
	topic.add(33, 536, "Theory of Knowledge");
	topic.add(33, 537, "Theory of Rational Choice");
	topic.add(34, 539, "Atmospheric Physics");
	topic.add(34, 540, "Atomic and Nuclear Physics");
	topic.add(34, 541, "Classical Mechanics");
	topic.add(34, 542, "Development and Consumption of Energy");
	topic.add(34, 543, "Electricity, Magnetism and Waves");
	topic.add(34, 544, "Electromagnetic Theory");
	topic.add(34, 545, "Electronics");
	topic.add(34, 546, "Modern Physics");
	topic.add(34, 551, "Other");
	topic.add(34, 547, "Plasma Physics");
	topic.add(34, 628, "Quantum Mechanics");
	topic.add(34, 548, "Radiological Physics");
	topic.add(34, 549, "Solid State Physics");
	topic.add(34, 550, "Statistical Physics");
	topic.add(46, 768, "Cell Membrane Structure");
	topic.add(46, 766, "Cell Physiology");
	topic.add(46, 767, "General Principles and Homeostasis");
	topic.add(46, 627, "Other");
	topic.add(46, 769, "Solute Movement");
	topic.add(35, 552, "African Politics");
	topic.add(35, 553, "American Foreign Policy");
	topic.add(35, 554, "American Politics");
	topic.add(35, 555, "Business and Government");
	topic.add(35, 556, "Canadian Foreign Policy");
	topic.add(35, 557, "Canadian Politics");
	topic.add(35, 558, "Capitalism and Democracy");
	topic.add(35, 559, "Comparative Politics");
	topic.add(35, 560, "Eastern European Politics");
	topic.add(35, 561, "Environmental Politics");
	topic.add(35, 562, "European Politics");
	topic.add(35, 563, "International Law and Organization");
	topic.add(35, 564, "International Relations");
	topic.add(35, 565, "Latin American Politics");
	topic.add(35, 566, "Local Government");
	topic.add(35, 567, "Middle Eastern Politics");
	topic.add(35, 577, "Other");
	topic.add(35, 568, "Political Analysis");
	topic.add(35, 569, "Political Development in the Muslim World");
	topic.add(35, 570, "Political Psychology");
	topic.add(35, 571, "Political Theory");
	topic.add(35, 572, "Public Administration");
	topic.add(35, 573, "Socialist Revolution");
	topic.add(35, 574, "Third World Politics");
	topic.add(35, 575, "United Nations");
	topic.add(35, 576, "Western European Politics");
	topic.add(36, 578, "Animal Behavior");
	topic.add(36, 579, "Attention and Perceptual Cognition");
	topic.add(36, 580, "Clinical Psychology");
	topic.add(36, 581, "Cognitive Science");
	topic.add(36, 582, "Cross-Cultural Cognition");
	topic.add(36, 583, "Developmental Psychology");
	topic.add(36, 584, "Drugs and Behavior");
	topic.add(36, 585, "Early Childhood Education");
	topic.add(36, 586, "Educational Psychology");
	topic.add(36, 655, "Health Psychology");
	topic.add(36, 587, "History of Psychology");
	topic.add(36, 588, "Human Adjustment");
	topic.add(36, 589, "Human Neuropsychology");
	topic.add(36, 590, "Human Sexuality");
	topic.add(36, 591, "Industrial and Organizational Psychology");
	topic.add(36, 592, "Measurement Research");
	topic.add(36, 593, "Memory");
	topic.add(36, 601, "Other");
	topic.add(36, 594, "Personality Theory");
	topic.add(36, 595, "Psychobiology");
	topic.add(36, 596, "Psychological Statistics");
	topic.add(36, 597, "Psychopathology");
	topic.add(36, 598, "Psychopharmacology");
	topic.add(36, 599, "Sensation and Perception");
	topic.add(36, 600, "Social Psychology");
	topic.add(37, 602, "All Topics");
	topic.add(38, 603, "Atheism");
	topic.add(38, 604, "Buddhism");
	topic.add(38, 605, "Catholicism");
	topic.add(38, 606, "Christian Beliefs/Ethics");
	topic.add(38, 607, "Christian Bioethics");
	topic.add(38, 608, "Christian Social Teaching and Practice");
	topic.add(38, 609, "Feminist Spirituality");
	topic.add(38, 610, "Hinduism");
	topic.add(38, 611, "Islam");
	topic.add(38, 612, "Moral Theology");
	topic.add(38, 613, "New Testament");
	topic.add(38, 614, "New Testament Greek");
	topic.add(38, 615, "Old Testament");
	topic.add(38, 619, "Other");
	topic.add(38, 616, "Spirituality");
	topic.add(38, 617, "Theological History");
	topic.add(38, 618, "World Religion");
	topic.add(39, 623, "All Topics");
	topic.add(39, 764, "Advanced Sociological Theory");
	topic.add(39, 744, "Collective Behaviour");
	topic.add(39, 765, "Community and Social Reconstruction");
	topic.add(39, 756, "Contemporary Sociological Theory");
	topic.add(39, 750, "Criminology");
	topic.add(39, 746, "Ethnic Relations");
	topic.add(39, 754, "Feminist Sociological Theory");
	topic.add(39, 759, "Mass Communication");
	topic.add(39, 753, "Origins of Sociological Thought");
	topic.add(39, 758, "Political Sociology");
	topic.add(39, 748, "Population Problems");
	topic.add(39, 740, "Research Methods");
	topic.add(39, 745, "Small Group Interaction");
	topic.add(39, 752, "Social Change");
	topic.add(39, 763, "Social Inequality");
	topic.add(39, 742, "Social Organization");
	topic.add(39, 741, "Social Problems");
	topic.add(39, 743, "Socialization");
	topic.add(39, 761, "Society and Education");
	topic.add(39, 762, "Sociological Perspectives on Gender and Sexuality");
	topic.add(39, 738, "Sociological Theoretical Foundations");
	topic.add(39, 751, "Sociology of Aging");
	topic.add(39, 749, "Sociology of Health and Illness");
	topic.add(39, 760, "Sociology of Mental Disorder");
	topic.add(39, 747, "Sociology of Religion");
	topic.add(39, 755, "Sociology of Work");
	topic.add(39, 757, "The Child in Society");
	topic.add(39, 739, "Urban Sociology");
	topic.add(40, 620, "All Topics");
	topic.add(42, 672, "Animal Breeding and Genetics");
	topic.add(42, 686, "Animal Energetics");
	topic.add(42, 671, "Animal Nutrition and Feeding");
	topic.add(42, 688, "Applied Animal Biotechnology");
	topic.add(42, 685, "Behaviour of Domestic Animals");
	topic.add(42, 676, "Chordate Zoology");
	topic.add(42, 678, "Comparative Animal Histology");
	topic.add(42, 683, "Comparative Endocrinology");
	topic.add(42, 684, "Genes and Development");
	topic.add(42, 675, "Introductory Ecology");
	topic.add(42, 677, "Invertebrate Zoology");
	topic.add(42, 680, "Limnology");
	topic.add(42, 673, "Livestock Production Enterprises");
	topic.add(42, 670, "Livestock Production Science");
	topic.add(42, 687, "Nutritional Toxicology");
	topic.add(42, 622, "Other");
	topic.add(42, 679, "Parasitology");
	topic.add(42, 674, "Toxicology");
	topic.add(42, 681, "Wetland Ecology");
	topic.add(42, 682, "Wildlife Management");
	topic.add(44, 625, "All Topics");
	topic.add(45, 626, "All Topics");
	topic.add(52, 640, "All Topics");
	
	subject.add(1, "Anatomy");
	subject.add(2, "Anthropology");
	subject.add(3, "Architecture");
	subject.add(4, "Art History");
	subject.add(5, "Astronomy");
	subject.add(44, "Biochemistry");
	subject.add(6, "Biology");
	subject.add(7, "Business");
	subject.add(8, "Chemical and Biochemical Engineering");
	subject.add(9, "Chemistry");
	subject.add(10, "Civil and Environmental Engineering");
	subject.add(11, "Classical Studies");
	subject.add(45, "Communication and Rhetoric");
	subject.add(12, "Computer Science");
	subject.add(14, "Drama");
	subject.add(16, "Economics");
	subject.add(17, "Education");
	subject.add(18, "Electrical and Computer Engineering");
	subject.add(19, "English");
	subject.add(20, "Environment Studies");
	subject.add(21, "Film Studies");
	subject.add(22, "Fine Arts");
	subject.add(41, "Gender Studies");
	subject.add(23, "Geography");
	subject.add(24, "Geological Engineering");
	subject.add(15, "Geology");
	subject.add(25, "Health Sciences");
	subject.add(26, "History");
	subject.add(13, "International Development");
	subject.add(27, "Kinesiology");
	subject.add(28, "Languages");
	subject.add(43, "Law");
	subject.add(37, "Mass Communication");
	subject.add(29, "Mathematics");
	subject.add(30, "Mechanical and Materials Engineering");
	subject.add(31, "Mining Engineering");
	subject.add(32, "Music");
	subject.add(33, "Philosophy");
	subject.add(34, "Physics");
	subject.add(46, "Physiology");
	subject.add(35, "Political Science");
	subject.add(36, "Psychology");
	subject.add(38, "Religious Studies");
	subject.add(52, "Social Work");
	subject.add(39, "Sociology");
	subject.add(40, "Statistics");
	subject.add(42, "Zoology");			
}