function rlgChange(){
document.f1.ocst.value=""; 
document.f1.ocst.style.visibility='hidden'; 
removeAllOptions(document.f1.caste);
if(document.f1.rlg.value == 0){
addOption(document.f1.caste, "0", "Select Religion first", "0");
}
if(document.f1.rlg.value == 1){
addOption(document.f1.caste, "1", "6000 Niyogi", "");
addOption(document.f1.caste, "2", "96K Kokanastha", "");
addOption(document.f1.caste, "3", "Adi Dravida", "");
addOption(document.f1.caste, "4", "Agarwal", "");
addOption(document.f1.caste, "5", "Agri", "");
addOption(document.f1.caste, "6", "Ambalavasi", "");
addOption(document.f1.caste, "7", "Arora", "");
addOption(document.f1.caste, "8", "Arunthathiyar", "");
addOption(document.f1.caste, "9", "Arya Vysya", "");
addOption(document.f1.caste, "10", "Aryasamaj", "");
addOption(document.f1.caste, "11", "Baghel/Pal/Gaderiya", "");
addOption(document.f1.caste, "12", "Bahi", "");
addOption(document.f1.caste, "13", "Balija Naidu", "");
addOption(document.f1.caste, "14", "Bania", "");
addOption(document.f1.caste, "15", "Bari", "");
addOption(document.f1.caste, "16", "Bengali", "");
addOption(document.f1.caste, "17", "Bhandari", "");
addOption(document.f1.caste, "18", "Bhatia", "");
addOption(document.f1.caste, "19", "Bhavsar", "");
addOption(document.f1.caste, "20", "Billava", "");
addOption(document.f1.caste, "21", "Boyer", "");
addOption(document.f1.caste, "22", "Brahmin", "");
addOption(document.f1.caste, "23", "Brahmin Anavil", "");
addOption(document.f1.caste, "24", "Brahmin Audichya", "");
addOption(document.f1.caste, "25", "Brahmin Bengali", "");
addOption(document.f1.caste, "244", "Brahmin Bhardwaj", "");
addOption(document.f1.caste, "26", "Brahmin Bhumihar", "");
addOption(document.f1.caste, "27", "Brahmin Daivadnya", "");
addOption(document.f1.caste, "28", "Brahmin Deshastha", "");
addOption(document.f1.caste, "29", "Brahmin Dhiman", "");
addOption(document.f1.caste, "30", "Brahmin Garhwali", "");
addOption(document.f1.caste, "31", "Brahmin Gaud Saraswat (GSB)", "");
addOption(document.f1.caste, "32", "Brahmin Gaur", "");
addOption(document.f1.caste, "33", "Brahmin Goswami", "");
addOption(document.f1.caste, "34", "Brahmin Havyaka", "");
addOption(document.f1.caste, "35", "Brahmin Iyer", "");
addOption(document.f1.caste, "36", "Brahmin Karhade", "");
addOption(document.f1.caste, "37", "Brahmin Kashmiri Pandit", "");
addOption(document.f1.caste, "38", "Brahmin Koknastha", "");
addOption(document.f1.caste, "39", "Brahmin Kumaoni", "");
addOption(document.f1.caste, "40", "Brahmin Kanada Madhva", "");
addOption(document.f1.caste, "41", "Brahmin Kanyakubja", "");
addOption(document.f1.caste, "42", "Brahmin Madhwa", "");
addOption(document.f1.caste, "43", "Brahmin Maithil", "");
addOption(document.f1.caste, "44", "Brahmin Maharashtrian", "");
addOption(document.f1.caste, "45", "Brahmin Niyogi Nandavariki", "");
addOption(document.f1.caste, "46", "Brahmin Nagar", "");
addOption(document.f1.caste, "47", "Brahmin Narmadiya", "");
addOption(document.f1.caste, "48", "Brahmin Punjabi", "");
addOption(document.f1.caste, "49", "Brahmin Pushkarna", "");
addOption(document.f1.caste, "50", "Brahmin Rigvedi", "");
addOption(document.f1.caste, "51", "Brahmin Sanadya", "");
addOption(document.f1.caste, "52", "Brahmin Saryuparin", "");
addOption(document.f1.caste, "53", "Brahmin Saraswat", "");
addOption(document.f1.caste, "54", "Brahmin Smartha", "");
addOption(document.f1.caste, "55", "Brahmin Tyagi", "");
addOption(document.f1.caste, "56", "Brahmin Telugu", "");
addOption(document.f1.caste, "57", "Brahmin Vaidiki", "");
addOption(document.f1.caste, "58", "Brahmin Viswa", "");
addOption(document.f1.caste, "59", "Bunt", "");
addOption(document.f1.caste, "242", "Chamar", "");
addOption(document.f1.caste, "60", "Chambhar", "");
addOption(document.f1.caste, "61", "Chaurasia", "");
addOption(document.f1.caste, "62", "Chettiar", "");
addOption(document.f1.caste, "63", "Coorgi", "");
addOption(document.f1.caste, "64", "Dawoodi Bhora", "");
addOption(document.f1.caste, "65", "Devadigas", "");
addOption(document.f1.caste, "66", "Devanga", "");
addOption(document.f1.caste, "67", "Dhaneshawat Vaish", "");
addOption(document.f1.caste, "68", "Dhangar", "");
addOption(document.f1.caste, "69", "Dheevara", "");
addOption(document.f1.caste, "70", "Dhobi", "");
addOption(document.f1.caste, "71", "Digambar", "");
addOption(document.f1.caste, "72", "Edigas", "");
addOption(document.f1.caste, "73", "Ezhava", "");
addOption(document.f1.caste, "74", "Ezhuthassan", "");
addOption(document.f1.caste, "75", "Gandla", "");
addOption(document.f1.caste, "76", "Ganiga", "");
addOption(document.f1.caste, "77", "Ganigashetty", "");
addOption(document.f1.caste, "78", "Gavara", "");
addOption(document.f1.caste, "79", "Goud", "");
addOption(document.f1.caste, "80", "Garhwali Rajput", "");
addOption(document.f1.caste, "81", "Gomantak Maratha", "");
addOption(document.f1.caste, "82", "Goswami", "");
addOption(document.f1.caste, "83", "Gounder", "");
addOption(document.f1.caste, "84", "Gowda", "");
addOption(document.f1.caste, "85", "Gujarati", "");
addOption(document.f1.caste, "86", "Gupta", "");
addOption(document.f1.caste, "87", "Gurjar", "");
addOption(document.f1.caste, "88", "Hegde", "");
addOption(document.f1.caste, "89", "Iyengar", "");
addOption(document.f1.caste, "90", "Iyer", "");
addOption(document.f1.caste, "91", "Jaiswal", "");
addOption(document.f1.caste, "92", "Jat", "");
addOption(document.f1.caste, "93", "Jatav", "");
addOption(document.f1.caste, "94", "Kalar", "");
addOption(document.f1.caste, "95", "Kalinga Vysya", "");
addOption(document.f1.caste, "96", "Kamboj", "");
addOption(document.f1.caste, "97", "Kamma", "");
addOption(document.f1.caste, "98", "Kannada Mogaveera", "");
addOption(document.f1.caste, "99", "Kapu", "");
addOption(document.f1.caste, "100", "Kapu Mannuru", "");
addOption(document.f1.caste, "101", "Kapu Naidu", "");
addOption(document.f1.caste, "102", "Karuneekar", "");
addOption(document.f1.caste, "103", "Kashyap", "");
addOption(document.f1.caste, "104", "Kayastha", "");
addOption(document.f1.caste, "105", "Kayastha Somvanshi Prabhu", "");
addOption(document.f1.caste, "106", "Khandayat", "");
addOption(document.f1.caste, "107", "Khatik", "");
addOption(document.f1.caste, "108", "Khatri", "");
addOption(document.f1.caste, "243", "KKB Unmanu", "");
addOption(document.f1.caste, "109", "Koli", "");
addOption(document.f1.caste, "110", "Kongu Vellala Gounder", "");
addOption(document.f1.caste, "111", "Kori", "");
addOption(document.f1.caste, "112", "Koshti", "");
addOption(document.f1.caste, "113", "Kshatriya", "");
addOption(document.f1.caste, "114", "Kshatriya Agnikula", "");
addOption(document.f1.caste, "115", "Kshatriya Somavanshiya Sahasrarjuna", "");
addOption(document.f1.caste, "116", "Kulalar", "");
addOption(document.f1.caste, "117", "Kumaoni Rajput", "");
addOption(document.f1.caste, "118", "Kumawat", "");
addOption(document.f1.caste, "119", "Kumbara", "");
addOption(document.f1.caste, "120", "Kummari", "");
addOption(document.f1.caste, "121", "Kunbi", "");
addOption(document.f1.caste, "122", "Kurmi", "");
addOption(document.f1.caste, "123", "Kuruba", "");
addOption(document.f1.caste, "124", "Kurumbar", "");
addOption(document.f1.caste, "125", "Kushwaha", "");
addOption(document.f1.caste, "126", "Leva Patil", "");
addOption(document.f1.caste, "127", "Lingayat", "");
addOption(document.f1.caste, "128", "Lodh", "");
addOption(document.f1.caste, "129", "Lohana", "");
addOption(document.f1.caste, "130", "Madiga", "");
addOption(document.f1.caste, "131", "Mahisya", "");
addOption(document.f1.caste, "132", "Mala", "");
addOption(document.f1.caste, "133", "Malayalee Namboodiri", "");
addOption(document.f1.caste, "134", "Malayalee Variar", "");
addOption(document.f1.caste, "135", "Mali", "");
addOption(document.f1.caste, "136", "Mallah", "");
addOption(document.f1.caste, "137", "Maharashtrian", "");
addOption(document.f1.caste, "138", "Maheshwari", "");
addOption(document.f1.caste, "139", "Maratha", "");
addOption(document.f1.caste, "140", "Maruthuvar", "");
addOption(document.f1.caste, "141", "Marvar", "");
addOption(document.f1.caste, "142", "Marwari", "");
addOption(document.f1.caste, "143", "Maurya", "");
addOption(document.f1.caste, "144", "Meenavar", "");
addOption(document.f1.caste, "145", "Menon", "");
addOption(document.f1.caste, "146", "Meru", "");
addOption(document.f1.caste, "147", "Mogaveera", "");
addOption(document.f1.caste, "148", "Monchi", "");
addOption(document.f1.caste, "149", "Mudaliar", "");
addOption(document.f1.caste, "150", "Mudaliar Arcot", "");
addOption(document.f1.caste, "151", "Mudaliar Saiva", "");
addOption(document.f1.caste, "152", "Mudaliar Senguntha", "");
addOption(document.f1.caste, "153", "Mudiraj", "");
addOption(document.f1.caste, "154", "Mukulathur", "");
addOption(document.f1.caste, "155", "Muthuraja", "");
addOption(document.f1.caste, "156", "Nadar", "");
addOption(document.f1.caste, "157", "Naicker", "");
addOption(document.f1.caste, "158", "Naidu", "");
addOption(document.f1.caste, "159", "Nair", "");
addOption(document.f1.caste, "160", "Nair Vaniya", "");
addOption(document.f1.caste, "161", "Nair Veluthedathu", "");
addOption(document.f1.caste, "162", "Nair Vilakkithala", "");
addOption(document.f1.caste, "163", "Naik", "");
addOption(document.f1.caste, "164", "Nambiar", "");
addOption(document.f1.caste, "165", "Namboodiri", "");
addOption(document.f1.caste, "166", "Nayaka", "");
addOption(document.f1.caste, "167", "Nepali", "");
addOption(document.f1.caste, "168", "OBC (Barber-Naayee)", "");
addOption(document.f1.caste, "169", "Padmashali", "");
addOption(document.f1.caste, "170", "Panicker", "");
addOption(document.f1.caste, "171", "Parkava Kulam", "");
addOption(document.f1.caste, "172", "Pasi", "");
addOption(document.f1.caste, "173", "Patel", "");
addOption(document.f1.caste, "174", "Patel Dodia", "");
addOption(document.f1.caste, "175", "Patel Desai", "");
addOption(document.f1.caste, "176", "Patel Kadva", "");
addOption(document.f1.caste, "177", "Patel Leva", "");
addOption(document.f1.caste, "178", "Patil", "");
addOption(document.f1.caste, "179", "Patil Leva", "");
addOption(document.f1.caste, "180", "Patnaick", "");
addOption(document.f1.caste, "181", "Perika", "");
addOption(document.f1.caste, "182", "Pillai", "");
addOption(document.f1.caste, "183", "Prajapati", "");
addOption(document.f1.caste, "184", "Punjabi", "");
addOption(document.f1.caste, "185", "Rajaka", "");
addOption(document.f1.caste, "186", "Rajput", "");
addOption(document.f1.caste, "187", "Rajput Garhwali", "");
addOption(document.f1.caste, "188", "Rajput Kumaoni", "");
addOption(document.f1.caste, "189", "Rajput Rohella/Tank", "");
addOption(document.f1.caste, "190", "Reddy", "");
addOption(document.f1.caste, "191", "Sadgope", "");
addOption(document.f1.caste, "192", "Sahu", "");
addOption(document.f1.caste, "193", "Saini", "");
addOption(document.f1.caste, "194", "Saliya", "");
addOption(document.f1.caste, "195", "Scheduled Caste", "");
addOption(document.f1.caste, "196", "Senai Thalaivar", "");
addOption(document.f1.caste, "197", "Sepahia", "");
addOption(document.f1.caste, "198", "Setti Balija", "");
addOption(document.f1.caste, "199", "Shah", "");
addOption(document.f1.caste, "200", "Shetty", "");
addOption(document.f1.caste, "201", "Shimpi", "");
addOption(document.f1.caste, "202", "Sindhi", "");
addOption(document.f1.caste, "203", "Somvanshi", "");
addOption(document.f1.caste, "204", "Sonar", "");
addOption(document.f1.caste, "205", "Sowrashtra", "");
addOption(document.f1.caste, "206", "Sozhiya Vellalar", "");
addOption(document.f1.caste, "207", "Srisayani", "");
addOption(document.f1.caste, "208", "Sutar", "");
addOption(document.f1.caste, "209", "Swarnakar", "");
addOption(document.f1.caste, "210", "Tamil Yadava", "");
addOption(document.f1.caste, "211", "Tantuway", "");
addOption(document.f1.caste, "212", "Telaga", "");
addOption(document.f1.caste, "213", "Teli", "");
addOption(document.f1.caste, "214", "Telugu", "");
addOption(document.f1.caste, "215", "Thevar", "");
addOption(document.f1.caste, "216", "Thiyya", "");
addOption(document.f1.caste, "217", "Udayar", "");
addOption(document.f1.caste, "218", "Vadagalai", "");
addOption(document.f1.caste, "219", "Vaish", "");
addOption(document.f1.caste, "220", "Vaishnav", "");
addOption(document.f1.caste, "221", "Vaishnav Bhatia", "");
addOption(document.f1.caste, "222", "Vaishnav Vania", "");
addOption(document.f1.caste, "223", "Vaishya", "");
addOption(document.f1.caste, "224", "Valmiki", "");
addOption(document.f1.caste, "225", "Vanjari", "");
addOption(document.f1.caste, "226", "Vankar", "");
addOption(document.f1.caste, "227", "Vannar", "");
addOption(document.f1.caste, "228", "Vannia Kula Kshatriyar", "");
addOption(document.f1.caste, "229", "Vanniyakullak Shatriya", "");
addOption(document.f1.caste, "230", "Vanniyar", "");
addOption(document.f1.caste, "231", "Varshney", "");
addOption(document.f1.caste, "232", "Veerashaiva", "");
addOption(document.f1.caste, "233", "Velethadathu Nair", "");
addOption(document.f1.caste, "234", "Vellalar", "");
addOption(document.f1.caste, "235", "Vellalar Devandra Kula", "");
addOption(document.f1.caste, "236", "Vellama", "");
addOption(document.f1.caste, "237", "Vishwakarma", "");
addOption(document.f1.caste, "238", "Vokaliga", "");
addOption(document.f1.caste, "239", "Vysya", "");
addOption(document.f1.caste, "240", "Yadav", "");
addOption(document.f1.caste, "241", "Yadava", "");
addOption(document.f1.caste, "999", "Other", "");
}
if(document.f1.rlg.value == 2){
addOption(document.f1.caste, "301", "Bengali", "");
addOption(document.f1.caste, "302", "Dawoodi Bohra", "");
addOption(document.f1.caste, "303", "Ehle-Hadith", "");
addOption(document.f1.caste, "304", "Memom", "");
addOption(document.f1.caste, "305", "Rajput", "");
addOption(document.f1.caste, "306", "Shia", "");
addOption(document.f1.caste, "307", "Shia Imami Ismaili", "");
addOption(document.f1.caste, "308", "Sunni", "");
addOption(document.f1.caste, "999", "Other", "");
}
if(document.f1.rlg.value == 3){
addOption(document.f1.caste, "321", "Arora", "");
addOption(document.f1.caste, "322", "Clean Shaven", "");
addOption(document.f1.caste, "323", "Gursikh", "");
addOption(document.f1.caste, "324", "Jat", "");
addOption(document.f1.caste, "325", "Kamboj", "");
addOption(document.f1.caste, "326", "Kesadhari", "");
addOption(document.f1.caste, "327", "Khatri", "");
addOption(document.f1.caste, "328", "Khashap Rajpoot", "");
addOption(document.f1.caste, "329", "Labana", "");
addOption(document.f1.caste, "330", "Ramgharia", "");
addOption(document.f1.caste, "331", "Saini", "");
addOption(document.f1.caste, "999", "Other", "");
}
if(document.f1.rlg.value == 4){
addOption(document.f1.caste, "341", "Born Again", "");
addOption(document.f1.caste, "342", "Catholic", "");
addOption(document.f1.caste, "343", "CMS", "");
addOption(document.f1.caste, "344", "CSI", "");
addOption(document.f1.caste, "345", "Evangelical", "");
addOption(document.f1.caste, "346", "Indian Orthodox", "");
addOption(document.f1.caste, "347", "Jacobite", "");
addOption(document.f1.caste, "348", "Mangalorean", "");
addOption(document.f1.caste, "349", "Marthoma", "");
addOption(document.f1.caste, "350", "Nadar", "");
addOption(document.f1.caste, "351", "Pentecost", "");
addOption(document.f1.caste, "352", "Protestant", "");
addOption(document.f1.caste, "353", "Syrian", "");
addOption(document.f1.caste, "999", "Other", "");
}

if(document.f1.rlg.value == 5){
addOption(document.f1.caste, "361", "Digambar", "");
addOption(document.f1.caste, "362", "Shewetamber", "");
addOption(document.f1.caste, "363", "Vania", "");
addOption(document.f1.caste, "999", "Other", "");
}
if(document.f1.rlg.value == 6){
addOption(document.f1.caste, "", "Buddhist", "");
addOption(document.f1.caste, "999", "Other", "");
}
if(document.f1.rlg.value == 7){
addOption(document.f1.caste, "", "Parsi", "");
addOption(document.f1.caste, "999", "Other", "");
}
if(document.f1.rlg.value == 8){
addOption(document.f1.caste, "", "Jewish", "");
addOption(document.f1.caste, "999", "Other", "");
}
if(document.f1.rlg.value == 9){
addOption(document.f1.caste, "", "Inter Religion", "");
}
if(document.f1.rlg.value == 10){
addOption(document.f1.caste, "", "No Religion", "");
}
}


