<!--
if(v){a=new Array(22);}

function getFormNum (formName) {
	var formNum =-1;
	for (i=0;i<document.forms.length;i++){
		tempForm = document.forms[i];
		if (formName == tempForm) {
			formNum = i;
			break;
		}
	}
	return formNum;
}

function jmp(form, elt)
// The first parameter is a reference to the form.
{
	if (form != null) {
		with (form.elements[elt]) {
			if (0 <= selectedIndex)
				location = options[selectedIndex].value;
		}
	}
}

var catsIndex = -1;
var itemsIndex;

if (v) { // ns 2 fix
function newCat(){
	catsIndex++;
	a[catsIndex] = new Array();
	itemsIndex = 0;
}

function O(txt,url) {
	a[catsIndex][itemsIndex]=new myOptions(txt,url);
	itemsIndex++;
}

function myOptions(text,value){
	this.text = text;
	this.value = value;
}

// fill array here

newCat();   //Select
	O("You Must First Select a Department","");
newCat();   //Anesthesiology
	O("Please Select a Division","<a name=> Anesthesiology");
	O("Cardiothoracic Anesthesia","Anesthesiology - Cardiothoracic Anesthesia");
    O("General Anesthesia","Anesthesiology - General Anesthesia");
	O("Pain Management Center","Anesthesiology - Pain Center");
	O("Pediatric Anesthesia","Anesthesiology - Pediatric Anesthesia");
newCat();   //Dental Medicine
	O("Please Select a Division","<a name=> Dental Medicine");
	O("Division of Oral and Maxillofacial Surgery","Dental Medicine - Division of Oral and Maxillofacial Surgery");
	O("Division of Hospital Dentistry","Dental Medicine - Division of Hospital Dentistry");
	O("Division of Pediatric Dentistry","Dental Medicine - Division of Pediatric Dentistry");
	O("Special Care Treatment Center","Dental Medicine - Special Care Treatment Center");
newCat();   //Family Medicine
	O("Please Select a Division","<a name=> Family Medicine");
	O("University Center for Family Medicine","Family Medicine - University Center for Family Medicine");
newCat();   //Genetics
	O("Not applicable","<a name=> Genetics");
newCat();   //Medicine
	O("Please Select a Division","<a name=> Medicine </span> </spacer>");
    O("Academic Medicine, Geriatrics, and Community Programs","Medicine - Academic Medicine, Geriatrics, and Community Programs </span> </spacer>");
	O("Allergy, Immunology and Rheumatology", " Medicine - Allergy, Immunology and Rheumatology </span> </spacer>");
	O("Cardiology","Medicine - Cardiology </span> </spacer>");
	O("Dermatology","Medicine - Dermatology </span> </spacer>");
	O("Endocrinology, Diabetes and Metabolism","Medicine - Endocrinology, Diabetes and Metabolism </span> </spacer>");
	O("Gastroenterology","Medicine - Gastroenterology </span> </spacer>");
	O("Infectious Diseases","Medicine - Infectious Diseases </span> </spacer>");
	O("Medical Oncology/Hematology","Medicine - Medical Oncology / Hematology </span> </spacer>");
	O("Nephrology/Hypertension","Medicine - Nephrology / Hypertension </span> </spacer>");
	O("Occupational Medicine","Medicine - Occupational Medicine </span> </spacer>");
	O("Preventive Cardiology Program","Medicine - Preventive Cardiology Program </span> </spacer>");
	O("Pulmonary Disease and Critical Care Medicine","Medicine - Pulmonary Disease and Critical Care Medicine </span> </spacer>");
	O("Women’s Wellness Center", "Medicine - Wellness Center </span> </spacer>");
newCat();   //Neurological Surgery
	O("Please Select a Division","<a name=> Neurological Surgery");
	O("Brain Tumor","Neurological Surgery - Brain Tumor");
	O("Epilepsy Surgery","Neurological Surgery - Epilepsy Surgery");
	O("Image-Guided Neurosurgery","Neurological Surgery - Image - Guided Neurosurgery");
	O("Movement Disorders","Neurological Surgery - Movement Disorders");
	O("Neurovascular Disease","Neurological Surgery - Neurovascular Disease");
	O("Pediatric Neurosurgery","Neurological Surgery - Pediatric Neurosurgery");
	O("Peripheral Nerve Center","Neurological Surgery - Peripheral Nerve Center");
	O("Skull Base Surgery","Neurological Surgery - Skull Base Surgery");
	O("Spine Center","Neurological Surgery - Spine Center");
	O("Neuro Trauma Program","Neurological Surgery - Neuro Trauma Program");
newCat();   //Neurosciences
	O("Please Select a Division","<a name=> Neurosciences");
	O("Chronic Fatigue/Fibromyalgia Syndrome Center","Neurosciences - Fibromyalgia Syndrome Center");
	O("EEG Laboratory","Neurosciences - EEG Laboratory");
	O("EMG Laboratory","Neurosciences - EMG Laboratory");
	O("Epilepsy Center","Neurosciences - Epilepsy Center");
	O("Evoked Potential Laboratory","Neurosciences - Evoked Potential Laboratory");
	O("General Neurology","Neurosciences - General Neurology");
	O("Headache Center","Neurosciences - Headache Center");
	O("The Neuromuscular Center","Neurosciences - The Neuromuscular Center");
	O("Multiple Sclerosis Diagnosis and Treatment Center","Neurosciences - Multiple Sclerosis Diagnosis and Treatment Center");
	O("Neurofibromatosis Center","Neurosciences - Neurofibromatosis Center");
	O("Pediatric Neurology","Neurosciences - Pediatric Neurology");
	O("Peripheral Neuoropathy Center","Neurosciences - Peripheral Neuoropathy Center");
	O("Stroke Center","Neurosciences - Stroke Center");
newCat();   //Ob/Gyn
	O("Please Select a Division","<a name=> OB GYN");
	O("Ob/Gyn - Maternal Fetal Medicine","Maternal Fetal Medicine");
	O("Ob/Gyn - Prenatal Diagnosis and Infectious Diseases","Prenatal Diagnosis and Infectious Diseases");
	O("Ob/Gyn - Gynecologic Oncology","Gynecologic Oncology");
	O("Ob/Gyn - General Obstetrics and Gynecology","General Obstetrics and Gynecology");
    O("Ob/Gyn - The Reproductive Choice Program","The Reproductive Choice Program");
	O("Ob/Gyn - Reproductive Endocrinology and Infertility","Reproductive Endocrinology and Infertility");
newCat();   //Ophthalmology
    O("Please Select a Division","<a name=> Ophthalmology");
	O("Macular Degeneration Treatment and Research","Ophthalmology - Macular Degeneration Treatment and Research");
	O("Comprehensive Ophthalmology","Ophthalmology - Comprehensive Ophthalmology");
	O("Contact Lens","Ophthalmology - Contact Lens");
	O("Cornea and External Ocular Diseases","Ophthalmology - Cornea & External Ocular Diseases");
	O("Glaucoma","Ophthalmology - Glaucoma");
	O("Immuno-Ophthalmology","Ophthalmology - Immuno Ophthalmology");
	O("Low Vision","Ophthalmology - Low Vision");
	O("Neuro-ophthalmology","Ophthalmology - Neuro ophthalmology");
	O("Ocular Trauma","Ophthalmology - Ocular Trauma");
	O("Ophthalmic Pathology","Ophthalmology - Ophthalmic Pathology");
	O("Ophthalmic Plastic, Reconstructive and Orbital Surgery","Ophthalmology - Ophthalmic Plastic, Reconstructive and Orbital Surgery");
	O("Pediatric Ophthalmology and Motility","Ophthalmology - Pediatric Ophthalmology and Motility");
	O("Refractive Surgery","Ophthalmology - Refractive Surgery");
	O("Vitreoretinal Surgery and Medical Retina","Ophthalmology - Vitreoretinal Surgery and Medical Retina");
	O("Uveitis and Tumor","Ophthalmology - Uveitis and Tumor");
newCat();   //Orthopaedics
	O("Please Select a Division","<a name=> Orthopaedics");
	O("Adult Joint Replacement and Reconstruction","Orthopaedics - Adult Joint Replacement and Reconstruction");
	O("Comprehensive Sports Medicine","Orthopaedics - Comprehensive Sports Medicine");
	O("Foot and Ankle Management and Surgery","Orthopaedics - Foot and Ankle Management and Surgery");
	O("Hand and Microvascular Surgery","Orthopaedics - Hand and Microvascular Surgery");
	O("Limb Lengthening and Limb Deformity Correction","Orthopaedics - Limb Lengthening and Limb Deformity Correction");
	O("Musculoskeletal Oncology and Limb-Salvage","limb salvage");
	O("Orthopaedic Trauma","Orthopaedics - Orthopaedic Trauma");
	O("Pediatric Orthopaedics and Scoliosis","Orthopaedics - Pediatric Orthopaedics and Scoliosis");
	O("Spine Surgery","Orthopaedics - Spine Surgery");
newCat();   //Pathology and Laboratory Medicine
	O("Not applicable","<a name=> Pathology and Laboratory Medicine");
newCat();   //Pediatrics
	O("Please Select a Division","<a name=> Pediatrics");
	O("Adolescent and Young Adult Medicine","Pediatrics - Adolescent and Young Adult Medicine");
	O("Allergy/Immuniology/Infectious and Pulmonary Diseases","Pediatrics - Allergy");
	O("Ambulatory Pediatrics/Primary Care","Pediatrics - Ambulatory Pediatrics Primary Care");
	O("Cardiology","Pediatrics - Cardiology");
	O("Child Development","Pediatrics - Child Development");
	O("Child Life Department","Pediatrics - Child Life Department");
	O("Early Intervention Program","Pediatrics - Early Intervention Program");
	O("Critical Care","Pediatrics - Critical Care");
	O("Emergency Medicine","Pediatrics - Emergency Medicin");
	O("Endocrinology","Pediatrics - Endocrinology");
	O("Gastroenterology, Hepatology and Nutrition","Pediatrics - Gastroenterology, Hepatology and Nutrition");
	O("Hematology/Oncology","Pediatrics - Hematology Oncology");
	O("Human and Molecular Genetics","Pediatrics - Human and Molecular Genetics");
	O("Hypertension Research Center","Pediatrics - Hypertension Research Center");
	O("Lead Poisoning Program","Pediatrics - Lead Poisoning Program");
	O("Neonatology","Pediatrics - Neonatology");
	O("Nephrology","Pediatrics - Nephrology");
	O("Nephrology","Pediatrics - Nephrology");
	O("Neurology","Pediatrics - Neurology");
newCat();   //Physical Medicine and Rehabilitation
	O("Please Select a Division","Physical Medicine and Rehabilitation - Please Select a Division");
	O("Physiatry (medical)","Physical Medicine and Rehabilitation - Physiatry (medical)");
	O("Acute Spinal Cord Injury Rehabilitation","Physical Medicine and Rehabilitation - Acute Spinal Cord Injury Rehabilitation");
	O("Trauma Rehabilitation","Physical Medicine and Rehabilitation - Trauma Rehabilitation");
	O("Outpatient Services","Physical Medicine and Rehabilitation - Outpatient Services");
	O("Electrodiagnostic Laboratory","Physical Medicine and Rehabilitation - Electrodiagnostic Laboratory");
	O("Rehabilitation Therapy Services","Physical Medicine and Rehabilitation - </range>");	
newCat();   //Podiatry Service
	O("Not applicable","<a name=>Podiatry Services");
newCat();   //Psychiatry
	O("Please Select a Division","<a name=> Psychiatry");
	O("Affective Disorder","Psychiatry - Affective Disorder");
	O("Anxiety","Psychiatry - Anxiety");
	O("Child and Adolescent Services","Psychiatry - Child Adolescent Services");
	O("Electroconvulsive Therapy (ECT)","Psychiatry - ECT");
	O("Forensic","Psychiatry - Forensic");
	O("General Adult Psychiatry","Psychiatry - General Adult Psychiatry");
	O("Geriatric Services","Psychiatry - Geriatric Services");
	O("HIV","Psychiatry - HIV");
	O("Marital Therapy","Psychiatry - Marital Therapy");
	O("Mood Disorders","Psychiatry - Mood Disorders");
	O("Obsessive Compulsive Disorder","Psychiatry - Obsessive Compulsive Disorder");
	O("Pain","Psychiatry - Pain");
	O("Psychopharmacology","Psychiatry - Psychopharmacology");
	O("Psychotherapy","Psychiatry - Psychotherapy");
	O("Stress Management","Psychiatry - Stress Management");
	O("Substance Abuse Services","Psychiatry - Substance Abuse Services");
	O("Women's Issues","Psychiatry - Women");
newCat();   //Radiology
	O("Please Select a Division","<a name=> Radiology");
	O("Body Computed Tomography and Magnetic Resonance Imaging","Radiology - Body Computed Tomography and Magnetic Resonance Imaging");
	O("Chest Radiology","Radiology - Chest Radiology");
	O("Gastrointestinal Radiology","Radiology - Gastrointestinal Radiology");
	O("General Diagnostic Radiology","Radiology - General Diagnostic Radiology");
	O("Genitourinary Radiology","Radiology - Genitourinary Radiology");
	O("Imaging Center at the New Jersey Medical School - DOCTORS OFFICE CENTER","Radiology - <Imaging Center at the New Jersey Medical School<b> </b>");
	O("Interventional Radiology","Radiology - Interventional Radiology <i> </i>");
	O("Interventional Neuroradiology","Radiology - Interventional Neuroradiology");
	O("Mammography","Radiology - Mammography");
	O("Musculoskeletal Radiology","Radiology - Musculoskeletal Radiology");
	O("Neuroradiology and Head Computed Tomography","Radiology - Neuroradiology and Head Computed Tomography");
	O("Nuclear Medicine","Radiology - Nuclear Medicine");
	O("Pediatric Radiology","Radiology - Pediatric Radiology");
	O("Radiation Oncology","Radiology - Radiation Oncology");
	O("Ultrasonography","Radiology - Ultrasonography");
	O("University Heights Advanced Imaging Center","Radiology - University Heights Advanced Imaging Center <i> </i>");
newCat();   //Surgery
	O("Please Select a Division","<a name=> Surgery </span>");
	O("Bloodless Surgery and Medicine","Surgery - Bloodless Surgery and Medicine </span>");
	O("Cardiothoracic Surgery","Surgery - Cardiothoracic Surgery </span>");
	O("Emergency Department","Surgery - Emergency Department </span>");
	O("General Surgery","Surgery - General Surgery </span>");
	O("Laparoscopy and Minimally Invasive Surgery","Surgery - Laparoscopy and Minimally Invasive Surgery </span>");
	O("Obesity Treatment Center","Surgery - Obesity Treatment Center </span>");
	O("Otolaryngology/Head and Neck Surgery","Surgery - Otolaryngology  / Head and Neck Surgery </span>");
	O("Palliative Care","Surgery - Palliative Care </span>");
	O("Pediatric Surgery","Surgery - Pediatric Surgery </span>");
	O("Plastic and Reconstructive Surgery","Surgery - Plastic and Reconstructive Surgery </span>");
    O("Surgical Oncology","Surgery - Surgical Oncology </span>");
	O("Transplantation Surgery","Surgery - Transplantation Surgery </span>");
	O("Trauma and Critical Care","Surgery - Trauma and Critical Care </span>");
	O("Urology","Surgery - Urology </span>");
	O("Vascular Surgery","Surgery - Vascular Surgery </span>");
// end fill array
} // if (v)



function relate(formName,elementNum,j) {
    if(v){
        var formNum = getFormNum(formName);
         if (formNum>=0) {
        	formNum++; // reference next form, assume it follows in HTML
        	with (document.forms[formNum].elements[elementNum]) {
        		for(i=options.length-1;i>0;i--) options[i] = null; // null out in reverse order (bug workarnd)
        		for(i=0;i<a[j].length;i++){
        			options[i] = new Option(a[j][i].text,a[j][i].value);
        		}
        		options[0].selected = true;
        	}
        }
    }
    else {
        jmp(formName,elementNum);
    }
}

// BACK BUTTON FIX for ie4+- or
// MEMORY-CACHE-STORING-ONLY-INDEX-AND-NOT-CONTENT
//
// from peter belesis:
// IE4+ remembers the index of each SELECT but NOT the CONTENTS of each
// SELECT, so it gets it wrong.
//
// it has to do with MEMORY CACHE (where form input is stored) and how
// IE stores information about SELECT menus.
//
// IE stores the selectedINDEX ONLY of the SELECT menu, not the
// CONTENTS-AT-THE-TIME-OF-SELECTION
//
// when we return to a page, it displays the default contents of each
// SELECT, grabs the stored index from cache and aligns the default
// contents to that index.
// 
// Netscape, on the other hand, seems to remember both INDEX and CONTENTS
// added ie5 persistence 990714

function IEsetup(){
	if(!document.all) return;
	IE5 = navigator.appVersion.indexOf("5.")!=-1;
	if(!IE5) {
		for (i=0;i<document.forms.length;i++) {
			document.forms[i].reset();
		}
	}
}

window.onload = IEsetup;

//-->