
function FillCast(ctrlname,val)
{
var exp=1
if(ctrlname=='ddlSubCast')
{exp=0}

if (val=='Select')
{document.getElementById(ctrlname).options.length=0;
opt = new Option('Select', 'Select' , false, false);
document.getElementById(ctrlname).options['0'] = opt;
}
if (val=='Arya')
{
//To Add SubCaste
document.getElementById(ctrlname).options.length=0;
opt = new Option('Select', 'Select' , false, false);
document.getElementById(ctrlname).options['0'] = opt;
opt = new Option('Arya', 'Arya' , false, false);
document.getElementById(ctrlname).options['1'] = opt;
if(exp==1){opt = new Option('Any', 'Any' , false, false);} else {opt = new Option('Other', 'Other' , false, false);}
document.getElementById(ctrlname).options['2'] = opt;
}
if (val=='Agrawal')
{
document.getElementById(ctrlname).options.length=0;
opt = new Option('Select', 'Select' , false, false);
document.getElementById(ctrlname).options['0'] = opt;
opt = new Option('Agrawal', 'Agrawal' , false, false);
document.getElementById(ctrlname).options['1'] = opt;
if(exp==1){opt = new Option('Any', 'Any' , false, false);} else {opt = new Option('Other', 'Other' , false, false);}
document.getElementById(ctrlname).options['2'] = opt;
}
if (val=='Banjara')
{
document.getElementById(ctrlname).options.length=0;
opt = new Option('Select', 'Select' , false, false);
document.getElementById(ctrlname).options['0'] = opt;
opt = new Option('Banjara', 'Banjara' , false, false);
document.getElementById(ctrlname).options['1'] = opt;
if(exp==1){opt = new Option('Any', 'Any' , false, false);} else {opt = new Option('Other', 'Other' , false, false);}
document.getElementById(ctrlname).options['2'] = opt;
}
if (val=='Bhavsar')
{
document.getElementById(ctrlname).options.length=0;
opt = new Option('Select', 'Select' , false, false);
document.getElementById(ctrlname).options['0'] = opt;
opt = new Option('Bhavsar', 'Bhavsar' , false, false);
document.getElementById(ctrlname).options['1'] = opt;
if(exp==1){opt = new Option('Any', 'Any' , false, false);} else {opt = new Option('Other', 'Other' , false, false);}
document.getElementById(ctrlname).options['2'] = opt;
}
if (val=='Buddhist')
{
document.getElementById(ctrlname).options.length=0;
opt = new Option('Select', 'Select' , false, false);
document.getElementById(ctrlname).options['0'] = opt;
opt = new Option('Buddhist', 'Buddhist' , false, false);
document.getElementById(ctrlname).options['1'] = opt;
if(exp==1){opt = new Option('Any', 'Any' , false, false);} else {opt = new Option('Other', 'Other' , false, false);}
document.getElementById(ctrlname).options['2'] = opt;
}
if (val=='Brahmin')
{
document.getElementById(ctrlname).options.length=0;
opt = new Option('Select', 'Select' , false, false);
document.getElementById(ctrlname).options['0'] = opt;
opt = new Option('Kanwa', 'Kanwa' , false, false);
document.getElementById(ctrlname).options['1'] = opt;
opt = new Option('Kokanastha', 'Kokanastha' , false, false);
document.getElementById(ctrlname).options['2'] = opt;
opt = new Option('Rugwedi', 'Rugwedi' , false, false);
document.getElementById(ctrlname).options['3'] = opt;
opt = new Option('Vidhur(lad)', 'Vidhur(lad)' , false, false);
document.getElementById(ctrlname).options['4'] = opt;
opt = new Option('Yajurwedi', 'Yajurwedi' , false, false);
document.getElementById(ctrlname).options['5'] = opt;
if(exp==1){opt = new Option('Any', 'Any' , false, false);} else {opt = new Option('Other', 'Other' , false, false);}
document.getElementById(ctrlname).options['6'] = opt;
}
if (val=='Chambhar')
{
document.getElementById(ctrlname).options.length=0;
opt = new Option('Select', 'Select' , false, false);
document.getElementById(ctrlname).options['0'] = opt;
opt = new Option('Hindi', 'Hindi' , false, false);
document.getElementById(ctrlname).options['1'] = opt;
opt = new Option('Marathi', 'Marathi' , false, false);
document.getElementById(ctrlname).options['2'] = opt;
if(exp==1){opt = new Option('Any', 'Any' , false, false);} else {opt = new Option('Other', 'Other' , false, false);}
document.getElementById(ctrlname).options['3'] = opt;
}
if (val=='Dhangar')
{
document.getElementById(ctrlname).options.length=0;
opt = new Option('Select', 'Select' , false, false);
document.getElementById(ctrlname).options['0'] = opt;
opt = new Option('Dhangar', 'Dhangar' , false, false);
document.getElementById(ctrlname).options['1'] = opt;
if(exp==1){opt = new Option('Any', 'Any' , false, false);} else {opt = new Option('Other', 'Other' , false, false);}
document.getElementById(ctrlname).options['2'] = opt;
}
if (val=='Dhor')
{
document.getElementById(ctrlname).options.length=0;
opt = new Option('Select', 'Select' , false, false);
document.getElementById(ctrlname).options['0'] = opt;
opt = new Option('Dhor', 'Dhor' , false, false);
document.getElementById(ctrlname).options['1'] = opt;
if(exp==1){opt = new Option('Any', 'Any' , false, false);} else {opt = new Option('Other', 'Other' , false, false);}
document.getElementById(ctrlname).options['2'] = opt;
}
if (val=='Gujarathi')
{
document.getElementById(ctrlname).options.length=0;
opt = new Option('Select', 'Select' , false, false);
document.getElementById(ctrlname).options['0'] = opt;
opt = new Option('Gujarathi', 'Gujarathi' , false, false);
document.getElementById(ctrlname).options['1'] = opt;
if(exp==1){opt = new Option('Any', 'Any' , false, false);} else {opt = new Option('Other', 'Other' , false, false);}
document.getElementById(ctrlname).options['2'] = opt;
}
if (val=='Jain')
{
document.getElementById(ctrlname).options.length=0;
opt = new Option('Select', 'Select' , false, false);
document.getElementById(ctrlname).options['0'] = opt;
opt = new Option('Digambar', 'Digambar' , false, false);
document.getElementById(ctrlname).options['1'] = opt;
opt = new Option('Shwetambar', 'Shwetambar' , false, false);
document.getElementById(ctrlname).options['2'] = opt;
opt = new Option('Vania', 'Vania' , false, false);
document.getElementById(ctrlname).options['3'] = opt;
if(exp==1){opt = new Option('Any', 'Any' , false, false);} else {opt = new Option('Other', 'Other' , false, false);}
document.getElementById(ctrlname).options['4'] = opt;
}
if (val=='Kalal')
{
document.getElementById(ctrlname).options.length=0;
opt = new Option('Select', 'Select' , false, false);
document.getElementById(ctrlname).options['0'] = opt;
opt = new Option('Kalal', 'Kalal' , false, false);
document.getElementById(ctrlname).options['1'] = opt;
if(exp==1){opt = new Option('Any', 'Any' , false, false);} else {opt = new Option('Other', 'Other' , false, false);}
document.getElementById(ctrlname).options['2'] = opt;
}

if (val=='Koli')
{
document.getElementById(ctrlname).options.length=0;
opt = new Option('Select', 'Select' , false, false);
document.getElementById(ctrlname).options['0'] = opt;
opt = new Option('Mahadev', 'Mahadev' , false, false);
document.getElementById(ctrlname).options['1'] = opt;
opt = new Option('Suryawanshi', 'Suryawanshi' , false, false);
document.getElementById(ctrlname).options['2'] = opt;
if(exp==1){opt = new Option('Any', 'Any' , false, false);} else {opt = new Option('Other', 'Other' , false, false);}
document.getElementById(ctrlname).options['3'] = opt;
}
if (val=='Maratha')
{
document.getElementById(ctrlname).options.length=0;
opt = new Option('Select', 'Select' , false, false);
document.getElementById(ctrlname).options['0'] = opt;
opt = new Option('96 kuli', '96 kuli' , false, false);
document.getElementById(ctrlname).options['1'] = opt;
opt = new Option('Deshmukh', 'Deshmukh' , false, false);
document.getElementById(ctrlname).options['2'] = opt;
opt = new Option('Kunbi', 'Kunbi' , false, false);
document.getElementById(ctrlname).options['3'] = opt;
opt = new Option('Leva patil', 'Leva patil' , false, false);
document.getElementById(ctrlname).options['4'] = opt;
opt = new Option('Patil', 'Patil' , false, false);
document.getElementById(ctrlname).options['5'] = opt;
if(exp==1){opt = new Option('Any', 'Any' , false, false);} else {opt = new Option('Other', 'Other' , false, false);}
document.getElementById(ctrlname).options['6'] = opt;
}
if (val=='Maheshwari')
{
document.getElementById(ctrlname).options.length=0;
opt = new Option('Select', 'Select' , false, false);
document.getElementById(ctrlname).options['0'] = opt;
opt = new Option('Maheshwari', 'Maheshwari' , false, false);
document.getElementById(ctrlname).options['1'] = opt;
if(exp==1){opt = new Option('Any', 'Any' , false, false);} else {opt = new Option('Other', 'Other' , false, false);}
document.getElementById(ctrlname).options['2'] = opt;
}
if (val=='Muslim')
{
document.getElementById(ctrlname).options.length=0;
opt = new Option('Select', 'Select' , false, false);
document.getElementById(ctrlname).options['0'] = opt;
opt = new Option('Bangali', 'Bangali' , false, false);
document.getElementById(ctrlname).options['1'] = opt;
opt = new Option('Dawoodi Bhora', 'Dawoodi Bhora' , false, false);
document.getElementById(ctrlname).options['2'] = opt;
opt = new Option('Shia', 'Shia' , false, false);
document.getElementById(ctrlname).options['3'] = opt;
opt = new Option('Sunni', 'Sunni' , false, false);
document.getElementById(ctrlname).options['4'] = opt;
if(exp==1){opt = new Option('Any', 'Any' , false, false);} else {opt = new Option('Other', 'Other' , false, false);}
document.getElementById(ctrlname).options['5'] = opt;
}

if (val=='Lingayat')
{
document.getElementById(ctrlname).options.length=0;
opt = new Option('Select', 'Select' , false, false);
document.getElementById(ctrlname).options['0'] = opt;
opt = new Option('Banjagare', 'Banjagare' , false, false);
document.getElementById(ctrlname).options['1'] = opt;
opt = new Option('Chilwant', 'Chilwant' , false, false);
document.getElementById(ctrlname).options['2'] = opt;
opt = new Option('Dikshawant', 'Dikshawant' , false, false);
document.getElementById(ctrlname).options['3'] = opt;
opt = new Option('Jangam', 'Jangam' , false, false);
document.getElementById(ctrlname).options['4'] = opt;
opt = new Option('Pancham', 'Pancham' , false, false);
document.getElementById(ctrlname).options['5'] = opt;
opt = new Option('Reddy', 'Reddy' , false, false);
document.getElementById(ctrlname).options['6'] = opt;
opt = new Option('Shilwant', 'Shilwant' , false, false);
document.getElementById(ctrlname).options['7'] = opt;
opt = new Option('Virshiv', 'Virshiv' , false, false);
document.getElementById(ctrlname).options['8'] = opt;
if(exp==1){opt = new Option('Any', 'Any' , false, false);} else {opt = new Option('Other', 'Other' , false, false);}
document.getElementById(ctrlname).options['9'] = opt;
}

if (val=='Chirstian')
{
document.getElementById(ctrlname).options.length=0;
opt = new Option('Select', 'Select' , false, false);
document.getElementById(ctrlname).options['0'] = opt;
opt = new Option('Born Again', 'Born Again' , false, false);
document.getElementById(ctrlname).options['1'] = opt;
opt = new Option('Catholic', 'Catholic' , false, false);
document.getElementById(ctrlname).options['2'] = opt;
opt = new Option('Protestant', 'Protestant' , false, false);
document.getElementById(ctrlname).options['3'] = opt;
opt = new Option('Roman Catholic', 'Roman Catholic' , false, false);
document.getElementById(ctrlname).options['4'] = opt;
if(exp==1){opt = new Option('Any', 'Any' , false, false);} else {opt = new Option('Other', 'Other' , false, false);}
document.getElementById(ctrlname).options['5'] = opt;
}
if (val=='Shikh')
{
document.getElementById(ctrlname).options.length=0;
opt = new Option('Select', 'Select' , false, false);
document.getElementById(ctrlname).options['0'] = opt;
opt = new Option('Gursikh', 'Gursikh' , false, false);
document.getElementById(ctrlname).options['1'] = opt;
opt = new Option('Jat', 'Jat' , false, false);
document.getElementById(ctrlname).options['2'] = opt;
opt = new Option('Khatri', 'Khatri' , false, false);
document.getElementById(ctrlname).options['3'] = opt;
opt = new Option('Ramgharia', 'Ramgharia' , false, false);
document.getElementById(ctrlname).options['4'] = opt;
if(exp==1){opt = new Option('Any', 'Any' , false, false);} else {opt = new Option('Other', 'Other' , false, false);}
document.getElementById(ctrlname).options['5'] = opt;
}
if (val=='Mahar')
{
document.getElementById(ctrlname).options.length=0;
opt = new Option('Select', 'Select' , false, false);
document.getElementById(ctrlname).options['0'] = opt;
opt = new Option('Mahar', 'Mahar' , false, false);
document.getElementById(ctrlname).options['1'] = opt;
if(exp==1){opt = new Option('Any', 'Any' , false, false);} else {opt = new Option('Other', 'Other' , false, false);}
document.getElementById(ctrlname).options['2'] = opt;
}
if (val=='Intercast')
{
document.getElementById(ctrlname).options.length=0;
opt = new Option('Select', 'Select' , false, false);
document.getElementById(ctrlname).options['0'] = opt;
opt = new Option('Intercast', 'Intercast' , false, false);
document.getElementById(ctrlname).options['1'] = opt;
if(exp==1){opt = new Option('Any', 'Any' , false, false);} else {opt = new Option('Other', 'Other' , false, false);}
document.getElementById(ctrlname).options['2'] = opt;
}
if (val=='Mang')
{
document.getElementById(ctrlname).options.length=0;
opt = new Option('Select', 'Select' , false, false);
document.getElementById(ctrlname).options['0'] = opt;
opt = new Option('Mang', 'Mang' , false, false);
document.getElementById(ctrlname).options['1'] = opt;
if(exp==1){opt = new Option('Any', 'Any' , false, false);} else {opt = new Option('Other', 'Other' , false, false);}
document.getElementById(ctrlname).options['2'] = opt;
}
if (val=='Mali')
{
document.getElementById(ctrlname).options.length=0;
opt = new Option('Select', 'Select' , false, false);
document.getElementById(ctrlname).options['0'] = opt;
opt = new Option('Bawne', 'Bawne' , false, false);
document.getElementById(ctrlname).options['1'] = opt;
opt = new Option('Bhandare', 'Bhandare' , false, false);
document.getElementById(ctrlname).options['2'] = opt;
opt = new Option('Dawne', 'Dawne' , false, false);
document.getElementById(ctrlname).options['3'] = opt;
opt = new Option('Ful', 'Ful' , false, false);
document.getElementById(ctrlname).options['4'] = opt;
opt = new Option('Gase', 'Gase' , false, false);
document.getElementById(ctrlname).options['5'] = opt;
opt = new Option('Haldi', 'Haldi' , false, false);
document.getElementById(ctrlname).options['6'] = opt;
opt = new Option('Jire', 'Jire' , false, false);
document.getElementById(ctrlname).options['7'] = opt;
opt = new Option('Kochale', 'Kochale' , false, false);
document.getElementById(ctrlname).options['8'] = opt;
opt = new Option('Lingayat', 'Lingayat' , false, false);
document.getElementById(ctrlname).options['9'] = opt;
opt = new Option('Milagare', 'Milagare' , false, false);
document.getElementById(ctrlname).options['10'] = opt;
opt = new Option('Nuste', 'Nuste' , false, false);
document.getElementById(ctrlname).options['11'] = opt;
opt = new Option('Panchkalse', 'Panchkalse' , false, false);
document.getElementById(ctrlname).options['12'] = opt;
if(exp==1){opt = new Option('Any', 'Any' , false, false);} else {opt = new Option('Other', 'Other' , false, false);}
document.getElementById(ctrlname).options['13'] = opt;
}

if (val=='Telgu')
{
document.getElementById(ctrlname).options.length=0;
opt = new Option('Select', 'Select' , false, false);
document.getElementById(ctrlname).options['0'] = opt;
opt = new Option('Padmashali', 'Padmashali' , false, false);
document.getElementById(ctrlname).options['1'] = opt;
opt = new Option('Rao', 'Rao' , false, false);
document.getElementById(ctrlname).options['2'] = opt;
opt = new Option('Reddy', 'Reddy' , false, false);
document.getElementById(ctrlname).options['3'] = opt;
if(exp==1){opt = new Option('Any', 'Any' , false, false);} else {opt = new Option('Other', 'Other' , false, false);}
document.getElementById(ctrlname).options['4'] = opt;
}

if (val=='Vanjari')
{
document.getElementById(ctrlname).options.length=0;
opt = new Option('Select', 'Select' , false, false);
document.getElementById(ctrlname).options['0'] = opt;
opt = new Option('Vanjari', 'Vanjari' , false, false);
document.getElementById(ctrlname).options['1'] = opt;
if(exp==1){opt = new Option('Any', 'Any' , false, false);} else {opt = new Option('Other', 'Other' , false, false);}
document.getElementById(ctrlname).options['2'] = opt;
}

if (val=='Teli')
{
document.getElementById(ctrlname).options.length=0;
opt = new Option('Select', 'Select' , false, false);
document.getElementById(ctrlname).options['0'] = opt;
opt = new Option('Hindi', 'Hindi' , false, false);
document.getElementById(ctrlname).options['1'] = opt;
opt = new Option('Marathi', 'Marathi' , false, false);
document.getElementById(ctrlname).options['2'] = opt;
if(exp==1){opt = new Option('Any', 'Any' , false, false);} else {opt = new Option('Other', 'Other' , false, false);}
document.getElementById(ctrlname).options['3'] = opt;
}

if (val=='Sonar')
{
document.getElementById(ctrlname).options.length=0;
opt = new Option('Select', 'Select' , false, false);
document.getElementById(ctrlname).options['0'] = opt;
opt = new Option('Sonar', 'Sonar' , false, false);
document.getElementById(ctrlname).options['1'] = opt;
if(exp==1){opt = new Option('Any', 'Any' , false, false);} else {opt = new Option('Other', 'Other' , false, false);}
document.getElementById(ctrlname).options['2'] = opt;
}
if (val=='Sindhi')
{
document.getElementById(ctrlname).options.length=0;
opt = new Option('Select', 'Select' , false, false);
document.getElementById(ctrlname).options['0'] = opt;
opt = new Option('Sindhi', 'Sindhi' , false, false);
document.getElementById(ctrlname).options['1'] = opt;
if(exp==1){opt = new Option('Any', 'Any' , false, false);} else {opt = new Option('Other', 'Other' , false, false);}
document.getElementById(ctrlname).options['2'] = opt;
}
if (val=='Jaiswal')
{
document.getElementById(ctrlname).options.length=0;
opt = new Option('Select', 'Select' , false, false);
document.getElementById(ctrlname).options['0'] = opt;
opt = new Option('Jaiswal', 'Jaiswal' , false, false);
document.getElementById(ctrlname).options['1'] = opt;
if(exp==1){opt = new Option('Any', 'Any' , false, false);} else {opt = new Option('Other', 'Other' , false, false);}
document.getElementById(ctrlname).options['2'] = opt;
}

if (val=='Rajput')
{
document.getElementById(ctrlname).options.length=0;
opt = new Option('Select', 'Select' , false, false);
document.getElementById(ctrlname).options['0'] = opt;
opt = new Option('Rajput', 'Rajput' , false, false);
document.getElementById(ctrlname).options['1'] = opt;
opt = new Option('Kshatriya', 'Kshatriya' , false, false);
document.getElementById(ctrlname).options['2'] = opt;
opt = new Option('Bhamta', 'Bhamta' , false, false);
document.getElementById(ctrlname).options['3'] = opt;
if(exp==1){opt = new Option('Any', 'Any' , false, false);} else {opt = new Option('Other', 'Other' , false, false);}
document.getElementById(ctrlname).options['4'] = opt;
}

if (val=='Thakur')
{
document.getElementById(ctrlname).options.length=0;
opt = new Option('Select', 'Select' , false, false);
document.getElementById(ctrlname).options['0'] = opt;
opt = new Option('Thakur', 'Thakur' , false, false);
document.getElementById(ctrlname).options['1'] = opt;
if(exp==1){opt = new Option('Any', 'Any' , false, false);} else {opt = new Option('Other', 'Other' , false, false);}
document.getElementById(ctrlname).options['2'] = opt;
}

if (val=='Punjabi')
{
document.getElementById(ctrlname).options.length=0;
opt = new Option('Select', 'Select' , false, false);
document.getElementById(ctrlname).options['0'] = opt;
opt = new Option('Punjabi', 'Punjabi' , false, false);
document.getElementById(ctrlname).options['1'] = opt;
if(exp==1){opt = new Option('Any', 'Any' , false, false);} else {opt = new Option('Other', 'Other' , false, false);}
document.getElementById(ctrlname).options['2'] = opt;
}

else if (val=='Other')
{
document.getElementById(ctrlname).options.length=0;
opt = new Option('Select', 'Select' , false, false);
document.getElementById(ctrlname).options['0'] = opt;
}

}








