                //category = new Array(0,"comm","clin", "inst", "othe", "phys", "prac","pres","prod","tran");
                category= new Array (0,"clin","prac","pres","phys","prod","tran","othe","comm","inst");
                function showService(myform)
                {
               // alert(document.index_page.sv.value);
                var itemSelect = myform.cat.selectedIndex;
                //alert(myform);
                //alert(category[itemSelect]);
                //if myform=="index_page" {
                  var service = document.index_page.sv;
                //}
                //else if myform=="bottompage" {
                 // var service = document.bottompage.sv;
                //}
                //var service = document.myform.sv;
                service.options.length = 0;

                var cond_term=category[itemSelect];
                  service.options[service.options.length] = new Option('2. Choose a Service','0');
                //alert(cond_term);
                   if (cond_term=="clin") {
                   //alert("same");

                   service.options[service.options.length] = new Option('Clinic Services, by an organised facility or clinic not part of a hospital: Freestanding Ambulatory Surgery Center','4');
                   service.options[service.options.length] = new Option('Clinic Services, by an organised facility or clinic not part of a hospital: Public Health and Mental Health','5');
                   service.options[service.options.length] = new Option('Federally Qualified Health Center Services','10');
                   service.options[service.options.length] = new Option('Inpatient Hospital Services, other than in an Institution for Mental Diseases','14');
                   service.options[service.options.length] = new Option('Outpatient Hospital Services','27');
                   service.options[service.options.length] = new Option('Rehabilitation Services: Mental Health and Substance Abuse','36');
                   service.options[service.options.length] = new Option('Rural Health Clinic Services','38');
                }
                   if (cond_term=="prac") {
                   //alert("same");
                   service.options[service.options.length] = new Option('Certified Registered Nurse Anesthetist Services','2');
                   service.options[service.options.length] = new Option('Chiropractor Services','3');
                   service.options[service.options.length] = new Option('Dental Services','6');
                  // service.options[service.options.length] = new Option('Medical and Remedial Care - Other Practitioners','49');
                   service.options[service.options.length] = new Option('Medical/Surgical Services of a Dentist','20');
                   service.options[service.options.length] = new Option('Nurse Midwife Services','22');
                   service.options[service.options.length] = new Option('Nurse Practitioner Services','23');
                   service.options[service.options.length] = new Option('Optometrist Serivces','26');
                   service.options[service.options.length] = new Option('Physician Services','30');
                   service.options[service.options.length] = new Option('Podiatrist Services','31');
                   service.options[service.options.length] = new Option('Psychologist Services','35');

                }
                if (cond_term=="phys") {
                   //alert("same");
                   service.options[service.options.length] = new Option('Occupational Therapy Services','25');
                   service.options[service.options.length] = new Option('Physical Therapy Services','29');
                    service.options[service.options.length] = new Option('Serivces for Speech, Hearing and Language Disorders','39');

                }

                if (cond_term=="pres") {
                   //alert("same");
                   service.options[service.options.length] = new Option('Prescription Drugs','32');

                }
                if (cond_term=="prod") {
                                   //alert(cond_term);
                                    //alert("same");

                                    service.options[service.options.length] = new Option('Dentures','7');
                                    service.options[service.options.length] = new Option('Eyeglasses','9');
                                    service.options[service.options.length] = new Option('Hearing Aids','11');
                                    service.options[service.options.length] = new Option('Medical Equipment and Supplies','19');
                                    service.options[service.options.length] = new Option('Prosthetic and Orthotic Devices','34');
                                 }

                if (cond_term=="tran") {
                   //alert("same");
                   service.options[service.options.length] = new Option('Ambulance Service','1');
                   service.options[service.options.length] = new Option('Non-Emergency Medical Transporting Services','21');
                }
                if (cond_term=="othe") {
                   //alert("same");
                    service.options[service.options.length] = new Option('Diagonistic, Screening and Preventive Services','8');
                    //service.options[service.options.length] = new Option('Early and Periodic Screening, Diagonis and Treatment','43');
                    //service.options[service.options.length] = new Option('Extended Services for Pregnant Women','48');
                    //service.options[service.options.length] = new Option('Family Planning Services','44');
                     service.options[service.options.length] = new Option('Laboratory and X-Ray Services, outside Hospital or Clinic','18');
                     service.options[service.options.length] = new Option('Targeted Case Management','40');
                }
                if (cond_term=="inst") {
                   //alert("same");


                   service.options[service.options.length] = new Option('Inpatient Hospital, Nursing Facility and Intermediate Care Facility Services In Institutions for Mental Diseases, age 65 and older','16');
                   service.options[service.options.length] = new Option('Inpatient Psychistric Services, under age 21','15');
                   service.options[service.options.length] = new Option('Intermediate Care Facility Services for the Mentally Retarded','17');

                   service.options[service.options.length] = new Option('Nursing Facility Services, other than in an Institution for Mental Diseases','24');
                   service.options[service.options.length] = new Option('Religious Non-Medical Health Care Institution and Practitioner Services','37');
                }

                if (cond_term=="comm") {
                                   //alert("same");


                                   service.options[service.options.length]=  new Option('Home and Community Based Waivers','41');
                                   service.options[service.options.length] = new Option('Home Health Services','12');
                                   service.options[service.options.length] = new Option('Hospice Care','13');
                                   service.options[service.options.length] = new Option('Personal Care Services','28');
                                   service.options[service.options.length] = new Option('Private Duty Nursing Services','33');
                                   service.options[service.options.length]=  new Option('Program of All-Inclusive Care for the Elderly','42');
                                   //alert("end");
                                }
              }        // end of function









                   function ServiceAno(myform)
                {
               // alert(document.index_page.sv.value);
                var itemSelect = myform.cat.selectedIndex;
                //alert(myform);
                //alert(category[itemSelect]);
                //if myform=="index_page" {
                  var service = document.bottompage.sv;
                //}
                //else if myform=="bottompage" {
                 // var service = document.bottompage.sv;
                //}
                //var service = document.myform.sv;
                service.options.length = 0;

                var cond_term=category[itemSelect];
                  service.options[service.options.length] = new Option('2. Choose a Service','0');
                //alert(cond_term);
                   if (cond_term=="clin") {
                   //alert("same");

                   service.options[service.options.length] = new Option('Clinic Services, by an organised facility or clinic not part of a hospital: Freestanding Ambulatory Surgery Center','4');
                   service.options[service.options.length] = new Option('Clinic Services, by an organised facility or clinic not part of a hospital: Public Health and Mental Health','5');
                   service.options[service.options.length] = new Option('Federally Qualified Health Center Services','10');
                   service.options[service.options.length] = new Option('Inpatient Hospital Services, other than in an Institution for Mental Diseases','14');
                   service.options[service.options.length] = new Option('Outpatient Hospital Services','27');
                   service.options[service.options.length] = new Option('Rehabilitation Services: Mental Health and Substance Abuse','36');
                   service.options[service.options.length] = new Option('Rural Health Clinic Services','38');
                }
                   if (cond_term=="prac") {
                   //alert("same");
                   service.options[service.options.length] = new Option('Certified Registered Nurse Anesthetist Services','2');
                   service.options[service.options.length] = new Option('Chiropractor Services','3');
                   service.options[service.options.length] = new Option('Dental Services','6');
                   //service.options[service.options.length] = new Option('Medical and Remedial Care - Other Practitioners','49');
                   service.options[service.options.length] = new Option('Medical/Surgical Services of a Dentist','20');
                   service.options[service.options.length] = new Option('Nurse Midwife Services','22');
                   service.options[service.options.length] = new Option('Nurse Practitioner Services','23');
                   service.options[service.options.length] = new Option('Optometrist Serivces','26');
                   service.options[service.options.length] = new Option('Physician Services','30');
                   service.options[service.options.length] = new Option('Podiatrist Services','31');
                   service.options[service.options.length] = new Option('Psychologist Services','35');

                }
                if (cond_term=="phys") {
                   //alert("same");
                   service.options[service.options.length] = new Option('Occupational Therapy Services','25');
                   service.options[service.options.length] = new Option('Physical Therapy Services','29');
                    service.options[service.options.length] = new Option('Serivces for Speech, Hearing and Language Disorders','39');

                }

                if (cond_term=="pres") {
                   //alert("same");
                   service.options[service.options.length] = new Option('Prescription Drugs','32');

                }
                if (cond_term=="prod") {
                                   //alert(cond_term);
                                    //alert("same");

                                    service.options[service.options.length] = new Option('Dentures','7');
                                    service.options[service.options.length] = new Option('Eyeglasses','9');
                                    service.options[service.options.length] = new Option('Hearing Aids','11');
                                    service.options[service.options.length] = new Option('Medical Equipment and Supplies','19');
                                    service.options[service.options.length] = new Option('Prosthetic and Orthotic Devices','34');
                                 }

                if (cond_term=="tran") {
                   //alert("same");
                   service.options[service.options.length] = new Option('Ambulance Service','1');
                   service.options[service.options.length] = new Option('Non-Emergency Medical Transporting Services','21');
                }
                if (cond_term=="othe") {
                   //alert("same");
                    service.options[service.options.length] = new Option('Diagonistic, Screening and Preventive Services','8');
                    service.options[service.options.length] = new Option('Laboratory and X-Ray Services, outside Hospital or Clinic','18');
                     service.options[service.options.length] = new Option('Targeted Case Management','40');
                }
                if (cond_term=="inst") {
                   //alert("same");


                   service.options[service.options.length] = new Option('Inpatient Hospital, Nursing Facility and Intermediate Care Facility Services In Institutions for Mental Diseases, age 65 and older','16');
                   service.options[service.options.length] = new Option('Inpatient Psychistric Services, under age 21','15');
                   service.options[service.options.length] = new Option('Intermediate Care Facility Services for the Mentally Retarded','17');

                   service.options[service.options.length] = new Option('Nursing Facility Services, other than in an Institution for Mental Diseases','24');
                   service.options[service.options.length] = new Option('Religious Non-Medical Health Care Institution and Practitioner Services','37');
                }

                if (cond_term=="comm") {
                                   //alert("same");


                                   service.options[service.options.length]=  new Option('Home and Community Based Waivers','41');
                                   service.options[service.options.length] = new Option('Home Health Services','12');
                                   service.options[service.options.length] = new Option('Hospice Care','13');
                                   service.options[service.options.length] = new Option('Personal Care Services','28');
                                   service.options[service.options.length] = new Option('Private Duty Nursing Services','33');
                                   service.options[service.options.length]=  new Option('Program of All-Inclusive Care for the Elderly','42');
                                   //alert("end");
                                }
              }        // end of function