// You can find instructions for this file at http://www.treeview.net

//Environment variables are usually set at the top of this file.
USETEXTLINKS = 0
STARTALLOPEN = 0
USEFRAMES = 0
USEICONS = 0
WRAPTEXT = 1
PRESERVESTATE = 0
function generateCheckBox(parentfolderObject, itemLabel, checkBoxDOMId) {
	var newObj;

	// Read the online documentation for an explanation of insDoc and gLnk,
    // they are the base of the simplest Treeview trees
	newObj = insDoc(parentfolderObject, gLnk("R", itemLabel, "javascript:parent.op()"))

    // The trick to show checkboxes in a tree that was made to display links is to 
	// use the prependHTML. There are general instructions about this member
    // in the online documentation
	newObj.prependHTML = "<td valign=middle><input type=checkbox id="+checkBoxDOMId+" onclick=prepare()></td>"
}

//foldersTree = gFld("<b>Tree Options</b>", "demoFrameless.html")
//  aux1 = insFld(foldersTree, gFld("Expand for example with pics and flags", "javascript:undefined"))
//    aux2 = insFld(aux1, gFld("United States", "demoFrameless.html?pic=%22beenthere_unitedstates%2Egif%22"))
// 			insDoc(aux2, gLnk("S", "Boston", "demoFrameless.html?pic=%22beenthere_boston%2Ejpg%22"))
// 			insDoc(aux2, gLnk("S", "Tiny pic of New York City", "demoFrameless.html?pic=%22beenthere_newyork%2Ejpg%22"))
// 			insDoc(aux2, gLnk("S", "Washington", "demoFrameless.html?pic=%22beenthere_washington%2Ejpg%22"))
//    aux2 = insFld(aux1, gFld("Europe", "demoFrameless.html?pic=%22beenthere_europe%2Egif%22"))
//      insDoc(aux2, gLnk("S", "London", "demoFrameless.html?pic=%22beenthere_london%2Ejpg%22"))
//      insDoc(aux2, gLnk("S", "Lisbon", "demoFrameless.html?pic=%22beenthere_lisbon%2Ejpg%22"))
//  aux1 = insFld(foldersTree, gFld("Types of node", "javascript:undefined"))
//    aux2 = insFld(aux1, gFld("Expandable with link", "demoFrameless.html?pic=%22beenthere_europe%2Egif%22"))
//      insDoc(aux2, gLnk("S", "London", "demoFrameless.html?pic=%22beenthere_london%2Ejpg%22"))
//   aux2 = insFld(aux1, gFld("Expandable without link", "javascript:undefined"))
//			insDoc(aux2, gLnk("S", "NYC", "demoFrameless.html?pic=%22beenthere_newyork%2Ejpg%22"))
//   insDoc(aux1, gLnk("B", "Opens in new window", "http://www.treeview.net/treemenu/demopics/beenthere_pisa.jpg"))
 foldersTree=gFld("", "javascript:parent.op()")
generateCheckBox(foldersTree, "ALL Causes", "BOX1")
	aux2=insFld(foldersTree, gFld("CERTAIN INFECTIOUS AND PARASITIC DISEASES (A00-B99)", "javascript:parent.op()"))
		generateCheckBox(aux2, "CERTAIN INFECTIOUS AND PARASITIC DISEASES (A00-B99)-ALL", "BOX2")
		generateCheckBox(aux2, "Salmonella Infections", "BOX3")
		generateCheckBox(aux2, "Shigellosis and Amebiasis", "BOX4")
		generateCheckBox(aux2, "Certain Other Intestinal Infections", "BOX5")
		aux6=insFld(aux2, gFld("Tuberculosis", "javascript:parent.op()"))
			generateCheckBox(aux6,"Tuberculosis-All", "BOX6")
			generateCheckBox(aux6,"Respiratory Tuberculosis", "BOX7")
			generateCheckBox(aux6,"Other Tuberculosis", "BOX8")
		generateCheckBox(aux2, "Whooping Cough", "BOX9")
		generateCheckBox(aux2, "Scarlet Fever and Erysipelas", "BOX10")
		generateCheckBox(aux2, "Meningococcal Infection", "BOX11")
		generateCheckBox(aux2, "Septicemia", "BOX12")
		generateCheckBox(aux2, "Syphilis", "BOX13")
		generateCheckBox(aux2, "Acute Poliomyelitis", "BOX14")
		generateCheckBox(aux2, "Arthropod-Borne Viral Encephalitis", "BOX15")
		generateCheckBox(aux2, "Measles", "BOX16")
		generateCheckBox(aux2, "Viral Hepatitis", "BOX17")
		generateCheckBox(aux2, "Human Immunodeficiency Virus (HIV) Disease", "BOX18")
		generateCheckBox(aux2, "Malaria", "BOX19")
		generateCheckBox(aux2, "Other and Unspecified Infectious and Parasitic Diseases and their sequelae", "BOX20")
	aux21=insFld(foldersTree, gFld("NEOPLASMS (C00-D48)", "javascript:parent.op()"))
		generateCheckBox(aux21, "NEOPLASMS (C00-D48)-ALL", "BOX21")
		aux22=insFld(aux21, gFld("Malignant Neoplasm", "javascript:parent.op()"))
			generateCheckBox(aux22, "Malignant Neoplasm-All", "BOX22")
			generateCheckBox(aux22, "Malignant Neoplasm of Lip, Oral Cavity and Pharynx", "BOX23")
			generateCheckBox(aux22, "Malignant Neoplasm of Esophagus", "BOX24")
			generateCheckBox(aux22, "Malignant Neoplasm of Stomach", "BOX25")
			generateCheckBox(aux22, "Malignant Neoplasm of Colon, Rectum and Anus", "BOX26")
			generateCheckBox(aux22, "Malignant Neoplasm of Liver and Intrahepatic Bile Ducts", "BOX27")
			generateCheckBox(aux22, "Malignant Neoplasm of Pancreas", "BOX28")
			generateCheckBox(aux22, "Malignant Neoplasm of Larynx", "BOX29")
			generateCheckBox(aux22, "Malignant Neoplasm of Trachea, Bronchus and Lung", "BOX30")
			generateCheckBox(aux22, "Malignant Neoplasm of Skin", "BOX31")
			generateCheckBox(aux22, "Malignant Neoplasm of Breast", "BOX32")
			generateCheckBox(aux22, "Malignant Neoplasm of Cervix Uteri", "BOX33")
			generateCheckBox(aux22, "Malignant Neoplasm of Corpus Uteri and Uterus, Part Unspecified", "BOX34")
			generateCheckBox(aux22, "Malignant Neoplasm of Ovary", "BOX35")
			generateCheckBox(aux22, "Malignant Neoplasm of Prostate", "BOX36")
			generateCheckBox(aux22, "Malignant Neoplasm of Kidney and Renal Pelvis", "BOX37")
			generateCheckBox(aux22, "Malignant Neoplasm of Bladder", "BOX38")
			generateCheckBox(aux22, "Malignant Neoplasm of Meninges, Brain and Other Parts of Central Nervous System", "BOX39")
			aux40=insFld(aux22, gFld("Malignant Neoplasm of Lymphoid, Hematopoietic and Related Tissue", "javascript:parent.op()"))
				generateCheckBox(aux40, "Malignant Neoplasm of Lymphoid, Hematopoietic and Related Tissue-All", "BOX40")
				generateCheckBox(aux40, "Hodgkin's Disease", "BOX41")
				generateCheckBox(aux40, "Non-Hodgkin's Lymphoma", "BOX42")
				generateCheckBox(aux40, "Leukemia", "BOX43")
				generateCheckBox(aux40, "Multiple Myeloma and Immunoproliferative Neoplasms", "BOX44")
				generateCheckBox(aux40, "Other and Unspecified Malignant Neoplasms of Lymphoid, Hematopoietic and Related Tissue", "BOX45")
			generateCheckBox(aux22, "All Other and Unspecified Malignant Neoplasms", "BOX46")
		generateCheckBox(aux21, "In Situ Neoplasms, Benign Neoplasms and Neoplasms of Uncertain or Unknown Behavior", "BOX47")
	aux48=insFld(foldersTree, gFld("DISEASES OF THE BLOOD AND BLOOD-FORMING ORGANS (D50-D89)", "javascript:parent.op()"))
		generateCheckBox(aux48, "DISEASES OF THE BLOOD AND BLOOD-FORMING ORGANS (D50-D89)", "BOX48")
		generateCheckBox(aux48, "Anemias", "BOX49")
	aux50=insFld(foldersTree, gFld("ENDOCRINE, NUTRITIONAL AND METABOLIC DISEASES (E00-E90)", "javascript:parent.op()"))
		generateCheckBox(aux50, "ENDOCRINE, NUTRITIONAL AND METABOLIC DISEASES (E00-E90)-ALL", "BOX50")
		generateCheckBox(aux50, "Diabetes Mellitus", "BOX51")
		aux52=insFld(aux50, gFld("Nutritional Deficiencies", "javascript:parent.op()"))
			generateCheckBox(aux52, "Nutritional Deficiencies-ALL", "BOX52")
			generateCheckBox(aux52, "Malnutrition", "BOX53")
			generateCheckBox(aux52, "Other Nutritional Deficiencies", "BOX54")
			generateCheckBox(foldersTree, "MENTAL AND BEHAVIOURAL DISORDERS (F00-F99)", "BOX55")
			aux56=insFld(foldersTree, gFld("DISEASES OF THE NERVOUS SYSTEM (G00-G99)", "javascript:parent.op()"))
				generateCheckBox(aux56, "DISEASES OF THE NERVOUS SYSTEM (G00-G99)-ALL", "BOX56")
				generateCheckBox(aux56, "Meningitis", "BOX57")
				generateCheckBox(aux56, "Parkinson's Disease", "BOX58")
				generateCheckBox(aux56, "Alzheimer's Disease", "BOX59")
	generateCheckBox(foldersTree, "DISEASES OF THE EYE AND ADNEXA (H00-H59)", "BOX60")
	generateCheckBox(foldersTree, "DISEASES OF THE EAR AND MASTOID PROCESS (H60-H95)", "BOX61")
	aux62=insFld(foldersTree, gFld("DISEASES OF THE CIRCULATORY SYSTEM (I00-I99)", "javascript:parent.op()"))
		generateCheckBox(aux62, "DISEASES OF THE CIRCULATORY SYSTEM (I00-I99)-ALL", "BOX62")
		aux63=insFld(aux62, gFld("Major Cardiovascular Diseases", "javascript:parent.op()"))
			generateCheckBox(aux63, "Major Cardiovascular Diseases-ALL", "BOX63")
			aux64=insFld(aux63, gFld("Diseases of Heart", "javascript:parent.op()"))
				generateCheckBox(aux64, "Diseases of Heart-ALL", "BOX64")
				generateCheckBox(aux64, "Acute Rheumatic Fever and Chronic Rheumatic Heart Diseases", "BOX65")
				generateCheckBox(aux64, "Hypertensive Heart Disease", "BOX66")
				generateCheckBox(aux64, "Hypertensive Heart and Renal Disease", "BOX67")
				aux68=insFld(aux64, gFld("Ischemic Heart Diseases", "javascript:parent.op()"))
					generateCheckBox(aux68, "Ischemic Heart Diseases-ALL", "BOX68")
					generateCheckBox(aux68, "Acute Myocardial Infarction", "BOX69")
					generateCheckBox(aux68, "Other Acute Ischemic Heart Diseases", "BOX70")
					aux71=insFld(aux68, gFld("Other Forms of Chronic Ischemic Heart Disease", "javascript:parent.op()"))
						generateCheckBox(aux71, "Other Forms of Chronic Ischemic Heart Disease-ALL", "BOX71")
						generateCheckBox(aux71, "Atherosclerotic Cardiovascular Disease, So Described", "BOX72")
						generateCheckBox(aux71, "All Other Forms of Chronic Ischemic Heart Disease ", "BOX73")
				aux74=insFld(aux64, gFld("Other Heart Diseases", "javascript:parent.op()"))
					generateCheckBox(aux74, "Other Heart Diseases-ALL", "BOX74")
					generateCheckBox(aux74, "Acute and Subacute Endocarditis", "BOX75")
					generateCheckBox(aux74, "Diseases of Pericardium and Acute Myocarditis", "BOX76")
					generateCheckBox(aux74, "Heart Failure", "BOX77")
					generateCheckBox(aux74, "All Other Forms of Heart Disease", "BOX78")
				generateCheckBox(aux64, "Essential (Primary) Hypertension and Hypertensive Renal Disease", "BOX79")
				generateCheckBox(aux64, "Cerebrovascular Diseases", "BOX80")
				generateCheckBox(aux64, "Atherosclerosis", "BOX81")
				aux82=insFld(aux64, gFld("Other Diseases of Circulatory System", "javascript:parent.op()"))
					generateCheckBox(aux82, "Other Diseases of Circulatory System-ALL", "BOX82")
					generateCheckBox(aux82, "Aortic Aneurysm and Dissection", "BOX83")
					generateCheckBox(aux82, "Other Diseases of Arteries, Arterioles and Capillaries", "BOX84")
			generateCheckBox(aux63, "Other Disorders of Circulatory System", "BOX85")








	aux86=insFld(foldersTree, gFld("DISEASES OF THE RESPIRATORY SYSTEM (J00-J99)", "javascript:parent.op()"))
		generateCheckBox(aux86, "DISEASES OF THE RESPIRATORY SYSTEM (J00-J99)-ALL", "BOX86")
		aux87=insFld(aux86, gFld("Influenza and Pneumonia", "javascript:parent.op()"))
			generateCheckBox(aux87, "Influenza and Pneumonia-ALL", "BOX87")
			generateCheckBox(aux87, "Influenza", "BOX88")
			generateCheckBox(aux87, "Pneumonia", "BOX89")
		aux90=insFld(aux86, gFld("Other Acute Lower Respiratory Infections", "javascript:parent.op()"))
			generateCheckBox(aux90, "Other Acute Lower Respiratory Infections-ALL", "BOX90")
			generateCheckBox(aux90, "Acute Bronchitis and Bronchiolitis", "BOX91")
			generateCheckBox(aux90, "Unspecified Acute Lower Respiratory Infection", "BOX92")
		aux93=insFld(aux86, gFld("Chronic Lower Respiratory Diseases", "javascript:parent.op()"))
			generateCheckBox(aux93, "Chronic Lower Respiratory Diseases-ALL", "BOX93")
			generateCheckBox(aux93, "Bronchitis, Chronic and Unspecified", "BOX94")
			generateCheckBox(aux93, "Emphysema", "BOX95")
			generateCheckBox(aux93, "Asthma", "BOX96")
			generateCheckBox(aux93, "Other Chronic Lower Respiratory Diseases", "BOX97")
		generateCheckBox(aux86, "Pneumoconioses and Chemical Effects", "BOX98")
		generateCheckBox(aux86, "Pneumonitis Due to Solids and Liquids", "BOX99")
		generateCheckBox(aux86, "Other Diseases of Respiratory System", "BOX100")








	aux101=insFld(foldersTree, gFld("DISEASES OF THE DIGESTIVE SYSTEM (K00-K93)", "javascript:parent.op()"))
		generateCheckBox(aux101, "DISEASES OF THE DIGESTIVE SYSTEM (K00-K93)-ALL", "BOX101")
		generateCheckBox(aux101, "Peptic Ulcer", "BOX102")
		generateCheckBox(aux101, "Diseases of Appendix", "BOX103")
		generateCheckBox(aux101, "Hernia", "BOX104")
		aux105=insFld(aux101, gFld("Chronic Liver Disease and Cirrhosis", "javascript:parent.op()"))
			generateCheckBox(aux105, "Chronic Liver Disease and Cirrhosis-ALL", "BOX105")
			generateCheckBox(aux105, "Alcoholic Liver Disease", "BOX106")
			generateCheckBox(aux105, "Other Chronic Liver Disease and Cirrhosis", "BOX107")
			generateCheckBox(aux101, "Cholelithiasis and Other Disorders of Gallbladder", "BOX108")








	generateCheckBox(foldersTree, "DISEASES OF THE SKIN AND SUBCUTANEOUS SYSTEM (L00-L99)", "BOX109")








	generateCheckBox(foldersTree, "DISEASES OF THE MUSCULOSKELETAL SYSTEM AND CONNECTIVE TISSUE (M00-M99)", "BOX110")








	aux111=insFld(foldersTree, gFld("DISEASES OF THE GENITOURINARY SYSTEM (N00-N99)", "javascript:parent.op()"))
		generateCheckBox(aux111, "DISEASES OF THE GENITOURINARY SYSTEM (N00-N99)-ALL", "BOX111")
			aux112=insFld(aux111, gFld("Nephritis, Nephrotic Syndrome and Nephrosis", "javascript:parent.op()"))
				generateCheckBox(aux112, "Nephritis, Nephrotic Syndrome and Nephrosis-ALL", "BOX112")
				generateCheckBox(aux112, "Acute and Rapidly Progressive Nephritic and Nephrotic Syndrome", "BOX113")
				generateCheckBox(aux112, "Chronic Glomerulonephritis, Nephritis and Nephritis Not Specified as Acute", "BOX114")
				generateCheckBox(aux112, "Renal Failure", "BOX115")
				generateCheckBox(aux112, "Other Disorders of Kidney", "BOX116")
			generateCheckBox(aux111, "Infections of Kidney", "BOX117")
			generateCheckBox(aux111, "Hyperplasia of Prostate", "BOX118")
			generateCheckBox(aux111, "Inflammatory Diseases of Female Pelvic Organs", "BOX119")








	aux120=insFld(foldersTree, gFld("PREGNANCY, CHILDBIRTH AND THE PUERPERIUM (O00-O99)", "javascript:parent.op()"))
		generateCheckBox(aux120, "PREGNANCY, CHILDBIRTH AND THE PUERPERIUM (O00-O99)-ALL", "BOX120")
		aux121=insFld(aux120, gFld("Pregnancy, Childbirth and Puerperium", "javascript:parent.op()"))
			generateCheckBox(aux121, "Pregnancy, Childbirth and Puerperium-ALL", "BOX121")
			generateCheckBox(aux121, "Pregnancy with Abortive Outcome", "BOX122")
			generateCheckBox(aux121, "Other Complications of Pregnancy, Childbirth and the Puerperium", "BOX123")








	aux124=insFld(foldersTree, gFld("CERTAIN CONDITIONS ORIGINATING IN THE PERINATAL PERIOD (P00-P96)", "javascript:parent.op()"))
		generateCheckBox(aux124, "CERTAIN CONDITIONS ORIGINATING IN THE PERINATAL PERIOD (P00-P96)-ALL", "BOX124")
			aux125=insFld(aux124, gFld("-------l Period --", "javascript:parent.op()"))
				generateCheckBox(aux125, "Certa----------ating in the Perinatal Period -- ALL", "BOX125")








	aux126=insFld(foldersTree, gFld("CONGENITAL MALFORMATIONS, DEFORMATIONS AND CHROMOSOMAL ABNORMALITIES (Q00-Q99)", "javascript:parent.op()"))
generateCheckBox(aux126, "CONGENITAL MALFORMATIONS, DEFORMATIONS AND CHROMOSOMAL ABNORMALITIES (Q00-Q99)-ALL", "BOX126")
aux127=insFld(aux124, gFld("Congenital -----------------------------s and Chromosomal Abnormalities --", "javascript:parent.op()"))
generateCheckBox(aux127, "Congenital Malfor-------------------------- Chromosomal Abnormalities -- ALL", "BOX127")








aux128=insFld(foldersTree, gFld("SYMPTOMS, SIGNS AND ABNORMAL CLINICAL AND LABORATORY FINDINGS, NOC (R00-R99)", "javascript:parent.op()"))
generateCheckBox(aux128, "SYMPTOMS, SIGNS AND ABNORMAL CLINICAL AND LABORATORY FINDINGS, NOC (R00-R99)-ALL", "BOX128")
aux129=insFld(aux124, gFld("Symptoms, S-----------------------al and Laboratory Findings, NOC --", "javascript:parent.op()"))
generateCheckBox(aux129, "Symptoms, ---------------------l and Laboratory Findings, NOC -- ALL", "BOX129")








generateCheckBox(foldersTree, "ALL OTHER DISEASES (Residual)", "BOX130")








generateCheckBox(foldersTree, "INJURY, P-----------------------------ES OF EXTERNAL CAUSES (S00-T98)", "BOX131")








aux132=insFld(foldersTree, gFld("EXTERNAL CAUSES OF MORBIDITY AND MORTALITY / INJURY (V01-Y98)", "javascript:parent.op()"))
generateCheckBox(aux132, "EXTERNAL CAUSES OF MORBIDITY AND MORTALITY / INJURY (V01-Y98)-ALL", "BOX132")
	aux133=insFld(aux132, gFld("Accidents", "javascript:parent.op()"))
		generateCheckBox(aux133, "Accidents-ALL", "BOX133")
			aux134=insFld(aux133, gFld("Transportation Accidents", "javascript:parent.op()"))
				generateCheckBox(aux134, "Transprotation Accidents-ALL", "BOX134")
				generateCheckBox(aux134, "Motor Vehicle Accidents", "BOX135")
				generateCheckBox(aux134, "Other Land Transport Accidents", "BOX136")
				generateCheckBox(aux134, "Water, Air and Space, and Other and Unspecified Transport Accidents and Their Sequelae", "BOX137")
		aux138=insFld(aux133, gFld("Nontransportation Accidents", "javascript:parent.op()"))
			generateCheckBox(aux138, "Nontransportation Accidents-ALL", "BOX138")
			generateCheckBox(aux138, "Falls", "BOX139")
			generateCheckBox(aux138, "Accidental Discharge of Firearms", "BOX140")
			generateCheckBox(aux138, "Accidental Drowning and Submersion", "BOX141")
			generateCheckBox(aux138, "Accidental Exposure to Smoke, Fire and Flames", "BOX142")
			generateCheckBox(aux138, "Accidental Poisoning and Exposure to Noxious Substances", "BOX143")
			generateCheckBox(aux138, "Other and Unspecified Nontransport Accidents and Their Sequelae", "BOX144")
	aux145=insFld(aux132, gFld("Intentional Self-Harm (Suicide)", "javascript:parent.op()"))
		generateCheckBox(aux145, "Intentional Self-Harm (Suicide)-ALL", "BOX145")
		generateCheckBox(aux145, "Intentional Self-Harm (Suicide) by Discharge of Firearms", "BOX146")
		generateCheckBox(aux145, "Intentional Self-Harm (Suicide) by Other and Unspecified Means and Their Sequelae", "BOX147")
	aux148=insFld(aux132, gFld("Assault (Homicide)", "javascript:parent.op()"))
		generateCheckBox(aux148, "Assault (Homicide)-ALL", "BOX148")
		generateCheckBox(aux148, "Assault (Homicide) by Discharge of Firearms", "BOX149")
		generateCheckBox(aux148, "Assault (Homicide) by Other and Unspecified Means and Their Sequelae", "BOX150")
	generateCheckBox(aux132, "Legal Intervention", "BOX151")
	aux152=insFld(aux132, gFld("Injury Events of Undetermined Intent", "javascript:parent.op()"))
		generateCheckBox(aux152, "Injury Events of Undetermined Intent-ALL", "BOX152")
		generateCheckBox(aux152, "Discharge of Firearms, Undetermined Intent", "BOX153")
		generateCheckBox(aux152, "Other and Unspecified Injury Events of Undetermined Intent and Their Sequelae", "BOX154")
		generateCheckBox(aux132, "Operations of War and Their Sequelae", "BOX155")
		generateCheckBox(aux132, "Complications of Medical and Surgical Care", "BOX156")








generateCheckBox(foldersTree, "ALL OTHER CAUSES, NOT IN THE LIST OF 113 SELECTED CAUSES OF DEATH", "BOX157")








generateCheckBox(foldersTree, "FACTORS INFL--------------------------------T WITH HEALTH SERVICES (Z00-Z99)", "BOX158")

