function populateMenu(elementId,slicetype) {
	targetEl = document.getElementById(elementId);
	targetEl.options.length = 0;
	if (slicetype == 'first') {
		for (i=0; i < specialtyArray.length-1; i++) {
			targetEl.options[i] = new Option(specialtyArray[i][0],specialtyArray[i][0]);
			targetEl.onchange = function() {
				targetmenu = this.id.replace('primary','specialty');
				populateMenu(targetmenu);
				document.getElementById(this.id + '_extras').style.display = 'block';
			}
		}
	} else {
		primaryMenuId = elementId.replace('specialty','primary');
		primaryMenuValue = document.getElementById(primaryMenuId).value;
		for (i=0; i < specialtyArray.length-1; i++) {
			if (specialtyArray[i][0] == primaryMenuValue) {
				for (j=1; j < specialtyArray[i].length; j++) {
					displayvalue = specialtyArray[i][j].replace(/:.*$/,'');
					targetEl.options[j-1] = new Option(displayvalue,displayvalue);
				}
				return;
			}
		}		
	}
}


specialtyArray = new Array();
specialtyArray.push(['--select--','']);
specialtyArray.push(["Allergy","--select--","Sinusitis:Sinusitis"]);
specialtyArray.push(["Anesthesiology","--select--","Pain Management:Pain Management","Blood Transfusions:Blood Transfusions"]);
specialtyArray.push(["Cardiology","--select--","Angina:Angina","Atrial Fibrillation/Arrythmia:Atrial Fibrillation/Arrythmia","Angiology/Interventional Cardiology:Angiology/Interventional Cardiology","Coronary Artery Disease (CAD):CAD","Congestive Heart Failure (CHF):CHF","Hypertension:Hypertension","Lipid Disorders:Lipid Disorders","Myocardial Infarction (MI):MI"]);
specialtyArray.push(["Cardiovascular","--select--","Coronary Artery Bypass Grafting (CABG):CABG","Deep Vein Thrombosis/Pulm Embolism:Deep Vein Embolism","Peripheral Vascular Disease (PVD):PVD","Stroke:Stroke"]);
specialtyArray.push(["Critical Care","--select--","N\/A:N\/A"]);
specialtyArray.push(["Dental Care","--select--","N\/A:N\/A"]);
specialtyArray.push(["Dermatology","--select--","Alopecia:Alopecia","Psoriasis:Psoriasis","Skin Infections:Skin Infections","Scarring:Scarring"]);
specialtyArray.push(["Emergency Medicine","--select--","N\/A:N\/A"]);
specialtyArray.push(["Endocrinology","--select--","Diabetes:Diabetes","Growth Hormone Deficiency:Growth Hormone Deficiency","Metabolism:Metabolism","Obesity:Obesity"]);
specialtyArray.push(["Family Practice\/Primary Care","--select--","N\/A:N\/A"]);
specialtyArray.push(["Gastroenterology","--select--","Crohn's Disease:Crohn's Disease","Gastroesophageal Reflux Disease (GERD):GERD","Irritable Bowel Syndrome (IBS):IBS","Ulcerative Colitis:Ulcerative Colitis"]);
specialtyArray.push(["General Surgery","--select--","Abdominal Surgery:Abdominal Surgery"]);
specialtyArray.push(["Geriatrics","--select--","N\/A:N\/A"]);
specialtyArray.push(["Gynecology","--select--","Birth Control:Birth Control","Endometriosis:Endometriosis","Female Sexual Dysfunction (FSD):FSD","Hormone Replacement Therapy (HRT):HRT","Premenstrual Syndrome (PMS):PMS","Premenstrual Dysphoric Disorder (PMDD):PMDD"]);
specialtyArray.push(["Hematology","--select--","Anaemia:Anaemia"]);
specialtyArray.push(["Hepatology","--select--","N\/A:N\/A"]);
specialtyArray.push(["Immunology","--select--","Transplants:Transplants"]);
specialtyArray.push(["Infectious Diseases","--select--","Hepatitis:Hepatitis","Herpes:Herpes","HIV/AIDS:HIV/AIDS","Sexually Transmitted Diseases (STD):STD"]);
specialtyArray.push(["Internal Medicine","--select--","N\/A:N\/A"]);
specialtyArray.push(["Nephrology","--select--","Renal Failure:Renal Failure"]);
specialtyArray.push(["Neurology","--select--","ADHD:ADHD","Alzheimer's Disease:Alzheimer's Disease","Dementia:Dementia","Epilepsy:Epilepsy","Migraine/Headache:Migraine/Headache","Multiple Sclerosis (MS):MS","Parkinson's Disease:Parkinson's Disease","Peripheral Neuropathy:Peripheral Neuropathy","Sleep Disorders:Sleep Disorders"]);
specialtyArray.push(["Obstetrics","--select--","Infertility:Infertility"]);
specialtyArray.push(["Oncology","--select--","Bladder Cancer:Bladder Cancer","Breast Cancer:Breast Cancer","Colorectal Cancer:Colorectal Cancer","Head and Neck Cancer:Head and Neck Cancer","Leukaemia:Leukaemia","Lung Cancer:Lung Cancer","Melanoma:Melanoma","Ovarian Cancer:Ovarian Cancer","Pancreatic Cancer:Pancreatic Cancer","Prostate Cancer:Prostate Cancer","Renal Cell Cancer (RCC):RCC"]);
specialtyArray.push(["Ophthalmology","--select--","Glaucoma:Glaucoma","Macular Degeneration:Macular Degeneration"]);
specialtyArray.push(["Orthopedics","--select--","Hip Replacement:Hip Replacement","Knee Replacement:Knee Replacement"]);
specialtyArray.push(["Osteopathy","--select--","N\/A:N\/A"]);
specialtyArray.push(["Otolaryngology\/ENT","--select--","Otitis:Otitis"]);
specialtyArray.push(["Paediatrics","--select--","N\/A:N\/A"]);
specialtyArray.push(["Pathology","--select--","N\/A:N\/A"]);
specialtyArray.push(["Pharmacology","--select--","N\/A:N\/A"]);
specialtyArray.push(["Plastic Surgery","--select--","Burns:Burns"]);
specialtyArray.push(["Podiatry","--select--","N\/A:N\/A"]);
specialtyArray.push(["Proctology","--select--","N\/A:N\/A"]);
specialtyArray.push(["Psychiatry","--select--","Addictive Medicine:Addictive Medicine","Anxiety Disorder:Anxiety Disorder","Bipolar Disorder:Bipolar Disorder","Depression:Depression","Manic Disorders:Manic Disorders","Schizophrenia:Schizophrenia","Smoking Cessation:Smoking Cessation"]);
specialtyArray.push(["Pulmonology\/Respiratory","--select--","Asthma:Asthma","COPD:COPD","Cystic Fibrosis:Cystic Fibrosis","Influenza:Influenza","Pneumonia:Pneumonia","Respiratory Infections:Respiratory Infections"]);
specialtyArray.push(["Radiology","--select--","N\/A:N\/A"]);
specialtyArray.push(["Rheumatology","--select--","Arthritis:Arthritis","Fibromyalgia:Fibromyalgia","Lupus:Lupus","Osteoarthritis:Osteoarthritis","Osteoporosis:Osteoporosis","Rheumatoid Arthritis:Rheumatoid Arthritis"]);
specialtyArray.push(["Trauma Medicine","--select--","N\/A:N\/A"]);
specialtyArray.push(["Urology","--select--","Benign Prostatic Hypertrophy (BPH):BPH","Erectile Dysfunction (ED):ED","Urinary Incontinence:Urinary Incontinence","Urinary Tract Infection (UTI):UTI"]);
specialtyArray.push(["Wound Care","--select--","N\/A:N\/A"]);
specialtyArray.push(["Other","--select--","N\/A:N\/A"]);
specialtyArray.push(["","--select--","Please select your Primary:","Therapeutic Area first.:",""]);
