
function fillCategory(){ 
 // this function is used to fill the category list on load
addOption(document.form1.Category, 'Consumer/Other', 'Consumer/Other', '');
addOption(document.form1.Category, 'Dentist', 'Dentist', '');
addOption(document.form1.Category, 'Faculty/Educator', 'Faculty/Educator', '');
addOption(document.form1.Category, 'Fellow', 'Fellow', '');
addOption(document.form1.Category, 'Librarian', 'Librarian', '');
addOption(document.form1.Category, 'Nurse', 'Nurse', '');
addOption(document.form1.Category, 'Other Health Professional', 'Other Health Professional', '');
addOption(document.form1.Category, 'Physician', 'Physician', '');
addOption(document.form1.Category, 'Researcher/Scientist', 'Researcher/Scientist', '');
addOption(document.form1.Category, 'Resident', 'Resident', '');
addOption(document.form1.Category, 'Student', 'Student', '');
addOption(document.form1.Category, 'Veterinarian', 'Veterinarian', '');
}



function SelectSubCat(){
// ON selection of category this function will work

removeAllOptions(document.form1.SubCat);
addOption(document.form1.SubCat, "", " ", "");

if(document.form1.Category.value == 'Consumer/Other'){
	addOption(document.form1.SubCat, 'Buyer ', 'Buyer ', '');
	addOption(document.form1.SubCat, 'Consulting', 'Consulting', '');
	addOption(document.form1.SubCat, 'Engineer/Programmer', 'Engineer/Programmer', '');
	addOption(document.form1.SubCat, 'Informatics Professional', 'Informatics Professional', '');
	addOption(document.form1.SubCat, 'Information Technology Professional', 'Information Technology Professional', '');
	addOption(document.form1.SubCat, 'Legal', 'Legal', '');
	addOption(document.form1.SubCat, 'Medical Writing/Editing/Translating', 'Medical Writing/Editing/Translating', '');
	addOption(document.form1.SubCat, 'Pharmaceutical', 'Pharmaceutical', '');
	addOption(document.form1.SubCat, 'Others', 'Others', '');
}
if(document.form1.Category.value == 'Dentist'){
	addOption(document.form1.SubCat, 'Dental Assisting', 'Dental Assisting', '');
	addOption(document.form1.SubCat, 'Dental Hygiene', 'Dental Hygiene', '');
	addOption(document.form1.SubCat, 'Dentistry- General', 'Dentistry- General', '');
	addOption(document.form1.SubCat, 'Dentistry - Pediatric', 'Dentistry - Pediatric', '');
	addOption(document.form1.SubCat, 'Orthodontics', 'Orthodontics', '');
	addOption(document.form1.SubCat, 'Endodontics', 'Endodontics', '');
	addOption(document.form1.SubCat, 'Oral & Maxillofacial Surgery', 'Oral & Maxillofacial Surgery', '');
	addOption(document.form1.SubCat, 'Periodontics', 'Periodontics', '');
	addOption(document.form1.SubCat, 'Prosthodontics', 'Prosthodontics', '');
	addOption(document.form1.SubCat, 'Others', 'Others', '');
}
if(document.form1.Category.value == 'Faculty/Educator'){
	addOption(document.form1.SubCat, 'Dentistry', 'Dentistry', '');
	addOption(document.form1.SubCat, 'Medical', 'Medical', '');
	addOption(document.form1.SubCat, 'Nursing', 'Nursing', '');
	addOption(document.form1.SubCat, 'Veterinary', 'Veterinary', '');
	addOption(document.form1.SubCat, 'Others', 'Others', '');
}

if(document.form1.Category.value == 'Fellow'){
	addOption(document.form1.SubCat, 'Abdominal Radiology', 'Abdominal Radiology', '');
	addOption(document.form1.SubCat, 'Addiction Psychiatry', 'Addiction Psychiatry', '');
	addOption(document.form1.SubCat, 'Adolescent Medicine', 'Adolescent Medicine', '');
	addOption(document.form1.SubCat, 'Adult Reconstructive Orthopedics', 'Adult Reconstructive Orthopedics', '');
	addOption(document.form1.SubCat, 'Allergy & Immunology', 'Allergy & Immunology', '');
	addOption(document.form1.SubCat, 'Blood Banking/Transfusion Medicine', 'Blood Banking/Transfusion Medicine', '');
	addOption(document.form1.SubCat, 'Cardiothoracic Radiology', 'Cardiothoracic Radiology', '');
	addOption(document.form1.SubCat, 'Cardiovascular Disease', 'Cardiovascular Disease', '');
	addOption(document.form1.SubCat, 'Chemical Pathology', 'Chemical Pathology', '');
	addOption(document.form1.SubCat, 'Child Neurology', 'Child Neurology', '');
	addOption(document.form1.SubCat, 'Child Psychiatry', 'Child Psychiatry', '');
	addOption(document.form1.SubCat, 'Clinical Cardiac Electrophysiology', 'Clinical Cardiac Electrophysiology', '');
	addOption(document.form1.SubCat, 'Clinical Neurophysiology', 'Clinical Neurophysiology', '');
	addOption(document.form1.SubCat, 'Colon & Rectal Surgery', 'Colon & Rectal Surgery', '');
	addOption(document.form1.SubCat, 'Craniofacial Surgery', 'Craniofacial Surgery', '');
	addOption(document.form1.SubCat, 'Critical Care Medicine', 'Critical Care Medicine', '');
	addOption(document.form1.SubCat, 'Cytopathology', 'Cytopathology', '');
	addOption(document.form1.SubCat, 'Dentistry', 'Dentistry', '');
	addOption(document.form1.SubCat, 'Dermatopathology', 'Dermatopathology', '');
	addOption(document.form1.SubCat, 'Endocrinology', 'Endocrinology', '');
	addOption(document.form1.SubCat, 'Endovascular Surgical Neuroradiology', 'Endovascular Surgical Neuroradiology', '');
	addOption(document.form1.SubCat, 'Foot & Ankle Orthopedics', 'Foot & Ankle Orthopedics', '');
	addOption(document.form1.SubCat, 'Forensic Pathology', 'Forensic Pathology', '');
	addOption(document.form1.SubCat, 'Forensic Psychiatry', 'Forensic Psychiatry', '');
	addOption(document.form1.SubCat, 'Gastroenterology', 'Gastroenterology', '');
	addOption(document.form1.SubCat, 'Geriatric Medicine', 'Geriatric Medicine', '');
	addOption(document.form1.SubCat, 'Geriatric Psychiatry', 'Geriatric Psychiatry', '');
	addOption(document.form1.SubCat, 'Hand Surgery', 'Hand Surgery', '');
	addOption(document.form1.SubCat, 'Hematology', 'Hematology', '');
	addOption(document.form1.SubCat, 'Immunopathology', 'Immunopathology', '');
	addOption(document.form1.SubCat, 'Infectious Diseases', 'Infectious Diseases', '');
	addOption(document.form1.SubCat, 'Interventional Cardiology', 'Interventional Cardiology', '');
	addOption(document.form1.SubCat, 'Musculoskeletal Oncology', 'Musculoskeletal Oncology', '');
	addOption(document.form1.SubCat, 'Musculoskeletal Radiology', 'Musculoskeletal Radiology', '');
	addOption(document.form1.SubCat, 'Neonatal-Perinatal Medicine', 'Neonatal-Perinatal Medicine', '');
	addOption(document.form1.SubCat, 'Nephrology', 'Nephrology', '');
	addOption(document.form1.SubCat, 'Neuropathology', 'Neuropathology', '');
	addOption(document.form1.SubCat, 'Neuroradiology', 'Neuroradiology', '');
	addOption(document.form1.SubCat, 'Nuclear Radiology', 'Nuclear Radiology', '');
	addOption(document.form1.SubCat, 'Oncology', 'Oncology', '');
	addOption(document.form1.SubCat, 'Otology/Neurotology', 'Otology/Neurotology', '');
	addOption(document.form1.SubCat, 'Pain Medicine', 'Pain Medicine', '');
	addOption(document.form1.SubCat, 'Pediatric Anesthesiology', 'Pediatric Anesthesiology', '');
	addOption(document.form1.SubCat, 'Pediatric Cardiology', 'Pediatric Cardiology', '');
	addOption(document.form1.SubCat, 'Pediatric Critical Care Medicine', 'Pediatric Critical Care Medicine', '');
	addOption(document.form1.SubCat, 'Pediatric Emergency Medicine', 'Pediatric Emergency Medicine', '');
	addOption(document.form1.SubCat, 'Pediatric Endocrinology', 'Pediatric Endocrinology', '');
	addOption(document.form1.SubCat, 'Pediatric Gastroenterology', 'Pediatric Gastroenterology', '');
	addOption(document.form1.SubCat, 'Pediatric Hematology-Oncology', 'Pediatric Hematology-Oncology', '');
	addOption(document.form1.SubCat, 'Pediatric Infectious Diseases', 'Pediatric Infectious Diseases', '');
	addOption(document.form1.SubCat, 'Pediatric Nephrology', 'Pediatric Nephrology', '');
	addOption(document.form1.SubCat, 'Pediatric Orthopedics', 'Pediatric Orthopedics', '');
	addOption(document.form1.SubCat, 'Pediatric Otolaryngology', 'Pediatric Otolaryngology', '');
	addOption(document.form1.SubCat, 'Pediatric Pulmonology', 'Pediatric Pulmonology', '');
	addOption(document.form1.SubCat, 'Pediatric Radiology', 'Pediatric Radiology', '');
	addOption(document.form1.SubCat, 'Pediatric Rheumatology', 'Pediatric Rheumatology', '');
	addOption(document.form1.SubCat, 'Pediatric Sports Medicine', 'Pediatric Sports Medicine', '');
	addOption(document.form1.SubCat, 'Pediatric Surgery', 'Pediatric Surgery', '');
	addOption(document.form1.SubCat, 'Pediatric Urology', 'Pediatric Urology', '');
	addOption(document.form1.SubCat, 'Pulmonary Disease', 'Pulmonary Disease', '');
	addOption(document.form1.SubCat, 'Rheumatology', 'Rheumatology', '');
	addOption(document.form1.SubCat, 'Spinal Cord Injury Medicine', 'Spinal Cord Injury Medicine', '');
	addOption(document.form1.SubCat, 'Spine Surgery', 'Spine Surgery', '');
	addOption(document.form1.SubCat, 'Sports Medicine', 'Sports Medicine', '');
	addOption(document.form1.SubCat, 'Surgical Critical Care', 'Surgical Critical Care', '');
	addOption(document.form1.SubCat, 'Thoracic Surgery', 'Thoracic Surgery', '');
	addOption(document.form1.SubCat, 'Toxicology', 'Toxicology', '');
	addOption(document.form1.SubCat, 'Trauma', 'Trauma', '');
	addOption(document.form1.SubCat, 'Vascular & Interventional Radiology', 'Vascular & Interventional Radiology', '');
	addOption(document.form1.SubCat, 'Vascular Surgery', 'Vascular Surgery', '');
	addOption(document.form1.SubCat, 'Veterinary', 'Veterinary', '');
	addOption(document.form1.SubCat, 'Others', 'Others', '');
}

if(document.form1.Category.value == 'Librarian'){
	addOption(document.form1.SubCat, 'Academic', 'Academic', '');
	addOption(document.form1.SubCat, 'Corporate', 'Corporate', '');
	addOption(document.form1.SubCat, 'Engineering', 'Engineering', '');
	addOption(document.form1.SubCat, 'Legal', 'Legal', '');
	addOption(document.form1.SubCat, 'Medical', 'Medical', '');
	addOption(document.form1.SubCat, 'Scientific', 'Scientific', '');
	addOption(document.form1.SubCat, 'Others', 'Others', '');
}

if(document.form1.Category.value == 'Nurse'){
	addOption(document.form1.SubCat, 'Nurse Assistant/Patient Care Tech', 'Nurse Assistant/Patient Care Tech', '');
	addOption(document.form1.SubCat, 'LPN/LVN', 'LPN/LVN', '');
	addOption(document.form1.SubCat, 'RN - administration', 'RN - administration', '');
	addOption(document.form1.SubCat, 'RN - Case management', 'RN - Case management', '');
	addOption(document.form1.SubCat, 'RN - community health', 'RN - community health', '');
	addOption(document.form1.SubCat, 'RN - critical care', 'RN - critical care', '');
	addOption(document.form1.SubCat, 'RN - emergency', 'RN - emergency', '');
	addOption(document.form1.SubCat, 'RN - general medical-surgical', 'RN - general medical-surgical', '');
	addOption(document.form1.SubCat, 'RN - home care', 'RN - home care', '');
	addOption(document.form1.SubCat, 'RN - maternity/OB', 'RN - maternity/OB', '');
	addOption(document.form1.SubCat, 'RN - occupational health', 'RN - occupational health', '');
	addOption(document.form1.SubCat, 'RN - oncology', 'RN - oncology', '');
	addOption(document.form1.SubCat, 'RN - operating room', 'RN - operating room', '');
	addOption(document.form1.SubCat, 'RN - patient care management', 'RN - patient care management', '');
	addOption(document.form1.SubCat, 'RN - pediatrics', 'RN - pediatrics', '');
	addOption(document.form1.SubCat, 'RN - psychiatric', 'RN - psychiatric', '');
	addOption(document.form1.SubCat, 'RN - rehabilitation', 'RN - rehabilitation', '');
	addOption(document.form1.SubCat, 'RN - school nurse', 'RN - school nurse', '');
	addOption(document.form1.SubCat, 'RN - staff education/training', 'RN - staff education/training', '');
	addOption(document.form1.SubCat, 'Advanced Practice Nurse - Administration', 'Advanced Practice Nurse - Administration', '');
	addOption(document.form1.SubCat, 'Advanced Practice Nurse - Anesthetist', 'Advanced Practice Nurse - Anesthetist', '');
	addOption(document.form1.SubCat, 'Advanced Practice Nurse - Clinical Nurse Specialist', 'Advanced Practice Nurse - Clinical Nurse Specialist', '');
	addOption(document.form1.SubCat, 'Advanced Practice Nurse - Midwifery', 'Advanced Practice Nurse - Midwifery', '');
	addOption(document.form1.SubCat, 'Nurse Practitioner - Acute Care', 'Nurse Practitioner - Acute Care', '');
	addOption(document.form1.SubCat, 'Nurse Practitioner - Adult', 'Nurse Practitioner - Adult', '');
	addOption(document.form1.SubCat, 'Nurse Practitioner - Family', 'Nurse Practitioner - Family', '');
	addOption(document.form1.SubCat, 'Nurse Practitioner - Gerontologic', 'Nurse Practitioner - Gerontologic', '');
	addOption(document.form1.SubCat, 'Nurse Practitioner - Neonatal', 'Nurse Practitioner - Neonatal', '');
	addOption(document.form1.SubCat, 'Nurse Practitioner - Pediatric', 'Nurse Practitioner - Pediatric', '');
	addOption(document.form1.SubCat, 'Nurse Practitioner - Psychiatric', 'Nurse Practitioner - Psychiatric', '');
	addOption(document.form1.SubCat, 'Nurse Practitioner - Womens Health', 'Nurse Practitioner - Womens Health', '');
	addOption(document.form1.SubCat, 'Others', 'Others', '');
}

if(document.form1.Category.value == 'Other Health Professional'){
	addOption(document.form1.SubCat, 'Athletic Training', 'Athletic Training', '');
	addOption(document.form1.SubCat, 'Audiology', 'Audiology', '');
	addOption(document.form1.SubCat, 'Chiropractic', 'Chiropractic', '');
	addOption(document.form1.SubCat, 'Clinical Laboratory Science', 'Clinical Laboratory Science', '');
	addOption(document.form1.SubCat, 'Complementary Medicine', 'Complementary Medicine', '');
	addOption(document.form1.SubCat, 'Dental Assisting', 'Dental Assisting', '');
	addOption(document.form1.SubCat, 'Dental Hygiene', 'Dental Hygiene', '');
	addOption(document.form1.SubCat, 'EMT-Basic', 'EMT-Basic', '');
	addOption(document.form1.SubCat, 'EMT-Intermediate', 'EMT-Intermediate', '');
	addOption(document.form1.SubCat, 'EMT-Paramedic', 'EMT-Paramedic', '');
	addOption(document.form1.SubCat, 'Fire fighting', 'Fire fighting', '');
	addOption(document.form1.SubCat, 'First Responder', 'First Responder', '');
	addOption(document.form1.SubCat, 'Hand Therapy', 'Hand Therapy', '');
	addOption(document.form1.SubCat, 'Health Information Administration/Technology', 'Health Information Administration/Technology', '');
	addOption(document.form1.SubCat, 'Health Unit Coordinator', 'Health Unit Coordinator', '');
	addOption(document.form1.SubCat, 'Massage Therapy', 'Massage Therapy', '');
	addOption(document.form1.SubCat, 'Medical Assisting', 'Medical Assisting', '');
	addOption(document.form1.SubCat, 'Medical Coding/Insurance Specialist', 'Medical Coding/Insurance Specialist', '');
	addOption(document.form1.SubCat, 'Medical Technology', 'Medical Technology', '');
	addOption(document.form1.SubCat, 'Medical Transcription', 'Medical Transcription', '');
	addOption(document.form1.SubCat, 'Nurse Assisting/Patient Care Tech', 'Nurse Assisting/Patient Care Tech', '');
	addOption(document.form1.SubCat, 'Occupational Therapy', 'Occupational Therapy', '');
	addOption(document.form1.SubCat, 'Occupational Therapy Assisting', 'Occupational Therapy Assisting', '');
	addOption(document.form1.SubCat, 'Optometry', 'Optometry', '');
	addOption(document.form1.SubCat, 'Pharmacy ', 'Pharmacy ', '');
	addOption(document.form1.SubCat, 'Pharmacy Technician', 'Pharmacy Technician', '');
	addOption(document.form1.SubCat, 'Phlebotomy', 'Phlebotomy', '');
	addOption(document.form1.SubCat, 'Physiotherapist', 'Physiotherapist', '');
	addOption(document.form1.SubCat, 'Physician Assisting', 'Physician Assisting', '');
	addOption(document.form1.SubCat, 'Podiatry', 'Podiatry', '');
	addOption(document.form1.SubCat, 'Psychology', 'Psychology', '');
	addOption(document.form1.SubCat, 'Radiologic/Imaging Technology', 'Radiologic/Imaging Technology', '');
	addOption(document.form1.SubCat, 'Registered Dietician', 'Registered Dietician', '');
	addOption(document.form1.SubCat, 'Respiratory Therapy/Technician', 'Respiratory Therapy/Technician', '');
	addOption(document.form1.SubCat, 'Sonographer', 'Sonographer', '');
	addOption(document.form1.SubCat, 'Speech Pathology/Therapist', 'Speech Pathology/Therapist', '');
	addOption(document.form1.SubCat, 'Surgical Technologist ', 'Surgical Technologist ', '');
	addOption(document.form1.SubCat, 'Veterinary Technician', 'Veterinary Technician', '');
	addOption(document.form1.SubCat, 'Others', 'Others', '');
}


if(document.form1.Category.value == 'Physician'){
	addOption(document.form1.SubCat, 'Allergy & Immunology', 'Allergy & Immunology', '');
	addOption(document.form1.SubCat, 'Anesthesiology', 'Anesthesiology', '');
	addOption(document.form1.SubCat, 'Cardiology', 'Cardiology', '');
	addOption(document.form1.SubCat, 'Critical Care', 'Critical Care', '');
	addOption(document.form1.SubCat, 'Dermatology', 'Dermatology', '');
	addOption(document.form1.SubCat, 'Endocrinology & Metabolism', 'Endocrinology & Metabolism', '');
	addOption(document.form1.SubCat, 'Epidemiology/Public Health', 'Epidemiology/Public Health', '');
	addOption(document.form1.SubCat, 'Family Practice/General Practice', 'Family Practice/General Practice', '');
	addOption(document.form1.SubCat, 'Gastroenterology', 'Gastroenterology', '');
	addOption(document.form1.SubCat, 'Genetics', 'Genetics', '');
	addOption(document.form1.SubCat, 'Geriatrics', 'Geriatrics', '');
	addOption(document.form1.SubCat, 'Hematology', 'Hematology', '');
	addOption(document.form1.SubCat, 'Hepatology', 'Hepatology', '');
	addOption(document.form1.SubCat, 'Infectious Diseases', 'Infectious Diseases', '');
	addOption(document.form1.SubCat, 'Integrative Medicine', 'Integrative Medicine', '');
	addOption(document.form1.SubCat, 'Internal Medicine', 'Internal Medicine', '');
	addOption(document.form1.SubCat, 'Neonatology', 'Neonatology', '');
	addOption(document.form1.SubCat, 'Nephrology', 'Nephrology', '');
	addOption(document.form1.SubCat, 'Neurology', 'Neurology', '');
	addOption(document.form1.SubCat, 'Neurosurgery', 'Neurosurgery', '');
	addOption(document.form1.SubCat, 'Nutrition ', 'Nutrition ', '');
	addOption(document.form1.SubCat, 'Obstetrics/Gynecology', 'Obstetrics/Gynecology', '');
	addOption(document.form1.SubCat, 'Occupational Medicine/Health', 'Occupational Medicine/Health', '');
	addOption(document.form1.SubCat, 'Oncology', 'Oncology', '');
	addOption(document.form1.SubCat, 'Ophthalmology', 'Ophthalmology', '');
	addOption(document.form1.SubCat, 'Orthopedics - Foot/Ankle', 'Orthopedics - Foot/Ankle', '');
	addOption(document.form1.SubCat, 'Orthopedics - General', 'Orthopedics - General', '');
	addOption(document.form1.SubCat, 'Orthopedics - Hand', 'Orthopedics - Hand', '');
	addOption(document.form1.SubCat, 'Orthopedics - Knee', 'Orthopedics - Knee', '');
	addOption(document.form1.SubCat, 'Orthopedics - Other', 'Orthopedics - Other', '');
	addOption(document.form1.SubCat, 'Otolaryngology', 'Otolaryngology', '');
	addOption(document.form1.SubCat, 'Pain ', 'Pain ', '');
	addOption(document.form1.SubCat, 'Palliative Medicine', 'Palliative Medicine', '');
	addOption(document.form1.SubCat, 'Pathology', 'Pathology', '');
	addOption(document.form1.SubCat, 'Pediatrics', 'Pediatrics', '');
	addOption(document.form1.SubCat, 'Physical Medicine & Rehabilitation', 'Physical Medicine & Rehabilitation', '');
	addOption(document.form1.SubCat, 'Plastic Surgery', 'Plastic Surgery', '');
	addOption(document.form1.SubCat, 'Psychiatry', 'Psychiatry', '');
	addOption(document.form1.SubCat, 'Radiology - Abdominal', 'Radiology - Abdominal', '');
	addOption(document.form1.SubCat, 'Radiology - Cardiac', 'Radiology - Cardiac', '');
	addOption(document.form1.SubCat, 'Radiology - General', 'Radiology - General', '');
	addOption(document.form1.SubCat, 'Radiology - Musculoskeletal', 'Radiology - Musculoskeletal', '');
	addOption(document.form1.SubCat, 'Radiology - Neurologic', 'Radiology - Neurologic', '');
	addOption(document.form1.SubCat, 'Radiology - Nuclear Medicine', 'Radiology - Nuclear Medicine', '');
	addOption(document.form1.SubCat, 'Radiology - Pediatrics', 'Radiology - Pediatrics', '');
	addOption(document.form1.SubCat, 'Radiology - Thoracic', 'Radiology - Thoracic', '');
	addOption(document.form1.SubCat, 'Respiratory Medicine', 'Respiratory Medicine', '');
	addOption(document.form1.SubCat, 'Rheumatology', 'Rheumatology', '');
	addOption(document.form1.SubCat, 'Sports Medicine', 'Sports Medicine', '');
	addOption(document.form1.SubCat, 'Surgery - Cardiac', 'Surgery - Cardiac', '');
	addOption(document.form1.SubCat, 'Surgery - Colon/Rectal', 'Surgery - Colon/Rectal', '');
	addOption(document.form1.SubCat, 'Surgery - General', 'Surgery - General', '');
	addOption(document.form1.SubCat, 'Surgery - Other', 'Surgery - Other', '');
	addOption(document.form1.SubCat, 'Surgery - Vascular', 'Surgery - Vascular', '');
	addOption(document.form1.SubCat, 'Urology', 'Urology', '');
	addOption(document.form1.SubCat, 'Others', 'Others', '');

}

if(document.form1.Category.value == 'Researcher/Scientist'){
	addOption(document.form1.SubCat, 'Automated Biology/HTS', 'Automated Biology/HTS', '');
	addOption(document.form1.SubCat, 'Automated Chemistry', 'Automated Chemistry', '');
	addOption(document.form1.SubCat, 'Clinical Automation', 'Clinical Automation', '');
	addOption(document.form1.SubCat, 'Forensic Medicine', 'Forensic Medicine', '');
	addOption(document.form1.SubCat, 'Genetics', 'Genetics', '');
	addOption(document.form1.SubCat, 'Lab Director ', 'Lab Director ', '');
	addOption(document.form1.SubCat, 'Lab Technician ', 'Lab Technician ', '');
	addOption(document.form1.SubCat, 'Laboratory Medicine', 'Laboratory Medicine', '');
	addOption(document.form1.SubCat, 'Paraoptometric Assistant/Technician', 'Paraoptometric Assistant/Technician', '');
	addOption(document.form1.SubCat, 'Pharmocology', 'Pharmocology', '');
	addOption(document.form1.SubCat, 'Public Health', 'Public Health', '');
	addOption(document.form1.SubCat, 'Scientist', 'Scientist', '');
	addOption(document.form1.SubCat, 'Others', 'Others', '');
}

if(document.form1.Category.value == 'Resident'){
	addOption(document.form1.SubCat, 'Dentistry', 'Dentistry', '');
	addOption(document.form1.SubCat, 'Dermatology', 'Dermatology', '');
	addOption(document.form1.SubCat, 'Emergency Medicine', 'Emergency Medicine', '');
	addOption(document.form1.SubCat, 'Family Medicine', 'Family Medicine', '');
	addOption(document.form1.SubCat, 'Internal Medicine', 'Internal Medicine', '');
	addOption(document.form1.SubCat, 'Medical Genetics', 'Medical Genetics', '');
	addOption(document.form1.SubCat, 'Neurology', 'Neurology', '');
	addOption(document.form1.SubCat, 'Neurosurgery', 'Neurosurgery', '');
	addOption(document.form1.SubCat, 'Nuclear Medicine', 'Nuclear Medicine', '');
	addOption(document.form1.SubCat, 'Obstetrics/Gynecology', 'Obstetrics/Gynecology', '');
	addOption(document.form1.SubCat, 'Ophthalmology', 'Ophthalmology', '');
	addOption(document.form1.SubCat, 'Orthopedic Surgery', 'Orthopedic Surgery', '');
	addOption(document.form1.SubCat, 'Otolaryngology', 'Otolaryngology', '');
	addOption(document.form1.SubCat, 'Pathology', 'Pathology', '');
	addOption(document.form1.SubCat, 'Pediatrics', 'Pediatrics', '');
	addOption(document.form1.SubCat, 'Physical Medicine & Rehabilitation', 'Physical Medicine & Rehabilitation', '');
	addOption(document.form1.SubCat, 'Plastic Surgery', 'Plastic Surgery', '');
	addOption(document.form1.SubCat, 'Preventive Medicine', 'Preventive Medicine', '');
	addOption(document.form1.SubCat, 'Psychiatry', 'Psychiatry', '');
	addOption(document.form1.SubCat, 'Radiation Oncology', 'Radiation Oncology', '');
	addOption(document.form1.SubCat, 'Radiology - Diagnostic', 'Radiology - Diagnostic', '');
	addOption(document.form1.SubCat, 'Surgery - General', 'Surgery - General', '');
	addOption(document.form1.SubCat, 'Urology', 'Urology', '');
	addOption(document.form1.SubCat, 'Veterinary', 'Veterinary', '');
	addOption(document.form1.SubCat, 'Others', 'Others', '');
}

if(document.form1.Category.value == 'Student'){
	addOption(document.form1.SubCat, 'Dentistry', 'Dentistry', '');
	addOption(document.form1.SubCat, 'Medical', 'Medical', '');
	addOption(document.form1.SubCat, 'Nursing - LPN/LVN', 'Nursing - LPN/LVN', '');
	addOption(document.form1.SubCat, 'Nursing - RN', 'Nursing - RN', '');
	addOption(document.form1.SubCat, 'Veterinary', 'Veterinary', '');
	addOption(document.form1.SubCat, 'Others', 'Others', '');

}

if(document.form1.Category.value == 'Veterinarian'){
	addOption(document.form1.SubCat, 'Veterinary - Equine', 'Veterinary - Equine', '');
	addOption(document.form1.SubCat, 'Veterinary - Exotic', 'Veterinary - Exotic', '');
	addOption(document.form1.SubCat, 'Veterinary - Large Animal', 'Veterinary - Large Animal', '');
	addOption(document.form1.SubCat, 'Veterinary - Mixed Practice', 'Veterinary - Mixed Practice', '');
	addOption(document.form1.SubCat, 'Veterinary - Small Animal', 'Veterinary - Small Animal', '');
	addOption(document.form1.SubCat, 'Veterinary Technician', 'Veterinary Technician', '');
	addOption(document.form1.SubCat, 'Others', 'Others', '');
}

}

////////////////// 

function removeAllOptions(selectbox)
{
	var i;
	for(i=selectbox.options.length-1;i>=0;i--)
	{
		//selectbox.options.remove(i);
		selectbox.remove(i);
	}
}


function addOption(selectbox, value, text )
{
	var optn = document.createElement("OPTION");
	optn.text = text;
	optn.value = value;

	selectbox.options.add(optn);
}
