

function Selectstate()
{
// ON selection of category this function will work

removeAllOptions(document.user_reg_form1.corr_state);
removeAllOptions(document.user_reg_form1.corr_city_town);

addOption(document.user_reg_form1.corr_state, "", "Select", "");

if(document.user_reg_form1.corr_country.value == 'India')
{
addOption(document.user_reg_form1.corr_state,"Andaman and Nicobar Islands","Andaman and Nicobar Islands");
addOption(document.user_reg_form1.corr_state,"Andhra Pradesh","Andhra Pradesh");
addOption(document.user_reg_form1.corr_state,"Arunachal Pradesh","Arunachal Pradesh");
addOption(document.user_reg_form1.corr_state,"Assam","Assam");
addOption(document.user_reg_form1.corr_state,"Bihar","Bihar");
addOption(document.user_reg_form1.corr_state,"Chandigarh","Chandigarh");
addOption(document.user_reg_form1.corr_state,"Chhattisgarh","Chhattisgarh");
addOption(document.user_reg_form1.corr_state,"Dadra and Nagar Haveli","Dadra and Nagar Haveli");
addOption(document.user_reg_form1.corr_state,"Daman and Diu","Daman and Diu");
addOption(document.user_reg_form1.corr_state,"Delhi","Delhi");
addOption(document.user_reg_form1.corr_state,"Goa","Goa");
addOption(document.user_reg_form1.corr_state,"Gujarat","Gujarat");
addOption(document.user_reg_form1.corr_state,"Haryana","Haryana");
addOption(document.user_reg_form1.corr_state,"Himachal Pradesh","Himachal Pradesh");
addOption(document.user_reg_form1.corr_state,"Jammu and Kashmir","Jammu and Kashmir");
addOption(document.user_reg_form1.corr_state,"Jharkhand","Jharkhand");
addOption(document.user_reg_form1.corr_state,"Karnataka","Karnataka");
addOption(document.user_reg_form1.corr_state,"Kerala","Kerala");
addOption(document.user_reg_form1.corr_state,"Lakshadweep","Lakshadweep");
addOption(document.user_reg_form1.corr_state,"Madhya Pradesh","Madhya Pradesh");
addOption(document.user_reg_form1.corr_state,"Maharashtra","Maharashtra");
addOption(document.user_reg_form1.corr_state,"Manipur","Manipur");
addOption(document.user_reg_form1.corr_state,"Meghalaya","Meghalaya");
addOption(document.user_reg_form1.corr_state,"Mizoram","Mizoram");
addOption(document.user_reg_form1.corr_state,"Nagaland","Nagaland");
addOption(document.user_reg_form1.corr_state,"Orissa","Orissa");
addOption(document.user_reg_form1.corr_state,"Pondicherry","Pondicherry");
addOption(document.user_reg_form1.corr_state,"Punjab","Punjab");
addOption(document.user_reg_form1.corr_state,"Rajasthan","Rajasthan");
addOption(document.user_reg_form1.corr_state,"Sikkim","Sikkim");
addOption(document.user_reg_form1.corr_state,"Tamil Nadu","Tamil Nadu");
addOption(document.user_reg_form1.corr_state,"Tripura","Tripura");
addOption(document.user_reg_form1.corr_state,"Uttaranchal","Uttaranchal");
addOption(document.user_reg_form1.corr_state,"Uttar Pradesh","Uttar Pradesh");
addOption(document.user_reg_form1.corr_state,"West Bengal","West Bengal");
addOption(document.user_reg_form1.corr_state,"Other","Other");
}


if(document.user_reg_form1.corr_country.value == 'Australia')
{
addOption(document.user_reg_form1.corr_state,"Other","Other");
}


if(document.user_reg_form1.corr_country.value == 'Bahrain')
{
addOption(document.user_reg_form1.corr_state,"Other","Other");
}


if(document.user_reg_form1.corr_country.value == 'Bangladesh')
{
addOption(document.user_reg_form1.corr_state,"Other","Other");
}


if(document.user_reg_form1.corr_country.value == 'Belgium')
{
addOption(document.user_reg_form1.corr_state,"Other","Other");
}



if(document.user_reg_form1.corr_country.value == 'Canada')
{
addOption(document.user_reg_form1.corr_state,"Other","Other");
}


if(document.user_reg_form1.corr_country.value == 'Doha')
{
addOption(document.user_reg_form1.corr_state,"Other","Other");
}


if(document.user_reg_form1.corr_country.value == 'Dubai')
{
addOption(document.user_reg_form1.corr_state,"Other","Other");
}


if(document.user_reg_form1.corr_country.value == 'France')
{
addOption(document.user_reg_form1.corr_state,"Other","Other");
}


if(document.user_reg_form1.corr_country.value == 'Germany')

{
addOption(document.user_reg_form1.corr_state,"Other","Other");
}


if(document.user_reg_form1.corr_country.value == 'Hong Kong')
{
addOption(document.user_reg_form1.corr_state,"Other","Other");
}


if(document.user_reg_form1.corr_country.value == 'Indonesia')
{
addOption(document.user_reg_form1.corr_state,"Other","Other");
}


if(document.user_reg_form1.corr_country.value == 'Ireland')
{
addOption(document.user_reg_form1.corr_state,"Other","Other");
}


if(document.user_reg_form1.corr_country.value == 'Italy')
{
addOption(document.user_reg_form1.corr_state,"Other","Other");
}


if(document.user_reg_form1.corr_country.value == 'Japan')
{
addOption(document.user_reg_form1.corr_state,"Other","Other");
}


if(document.user_reg_form1.corr_country.value == 'Kenya')
{
addOption(document.user_reg_form1.corr_state,"Other","Other");
}


if(document.user_reg_form1.corr_country.value == 'Kuwait')
{
addOption(document.user_reg_form1.corr_state,"Other","Other");
}


if(document.user_reg_form1.corr_country.value == 'Lebanon')
{
addOption(document.user_reg_form1.corr_state,"Other","Other");
}


if(document.user_reg_form1.corr_country.value == 'Libya')
{
addOption(document.user_reg_form1.corr_state,"Other","Other");
}


if(document.user_reg_form1.corr_country.value == 'Malaysia')
{
addOption(document.user_reg_form1.corr_state,"Other","Other");
}


if(document.user_reg_form1.corr_country.value == 'Maldives')
{
addOption(document.user_reg_form1.corr_state,"Other","Other");
}



if(document.user_reg_form1.corr_country.value == 'Mauritius')
{
addOption(document.user_reg_form1.corr_state,"Other","Other");
}


if(document.user_reg_form1.corr_country.value == 'Mexico')
{
addOption(document.user_reg_form1.corr_state,"Other","Other");
}


if(document.user_reg_form1.corr_country.value == 'Nepal')
{
addOption(document.user_reg_form1.corr_state,"Other","Other");
}


if(document.user_reg_form1.corr_country.value == 'Netherlands')
{
addOption(document.user_reg_form1.corr_state,"Other","Other");
}


if(document.user_reg_form1.corr_country.value == 'New Zealand')
{
addOption(document.user_reg_form1.corr_state,"Other","Other");
}


if(document.user_reg_form1.corr_country.value == 'Norway')
{
addOption(document.user_reg_form1.corr_state,"Other","Other");
}


if(document.user_reg_form1.corr_country.value == 'Oman')
{
addOption(document.user_reg_form1.corr_state,"Other","Other");
}


if(document.user_reg_form1.corr_country.value == 'Pakistan')
{
addOption(document.user_reg_form1.corr_state,"Other","Other");
}


if(document.user_reg_form1.corr_country.value == 'Qatar')
{
addOption(document.user_reg_form1.corr_state,"Other","Other");
}


if(document.user_reg_form1.corr_country.value == 'Quilon')
{
addOption(document.user_reg_form1.corr_state,"Other","Other");
}


if(document.user_reg_form1.corr_country.value == 'Russia')
{
addOption(document.user_reg_form1.corr_state,"Other","Other");
}


if(document.user_reg_form1.corr_country.value == 'Saudi Arabia')
{
addOption(document.user_reg_form1.corr_state,"Other","Other");
}




if(document.user_reg_form1.corr_country.value == 'singapore')
{
addOption(document.user_reg_form1.corr_state,"Other","Other");
}


if(document.user_reg_form1.corr_country.value == 'South Africa')
{
addOption(document.user_reg_form1.corr_state,"Other","Other");
}


if(document.user_reg_form1.corr_country.value == 'South Korea')
{
addOption(document.user_reg_form1.corr_state,"Other","Other");
}


if(document.user_reg_form1.corr_country.value == 'Spain')
{
addOption(document.user_reg_form1.corr_state,"Other","Other");
}


if(document.user_reg_form1.corr_country.value == 'Sri Lanka')
{
addOption(document.user_reg_form1.corr_state,"Other","Other");
}


if(document.user_reg_form1.corr_country.value == 'Sweden')
{
addOption(document.user_reg_form1.corr_state,"Other","Other");
}


if(document.user_reg_form1.corr_country.value == 'switzerland')
{
addOption(document.user_reg_form1.corr_state,"Other","Other");
}


if(document.user_reg_form1.corr_country.value == 'Thailand')
{
addOption(document.user_reg_form1.corr_state,"Other","Other");
}


if(document.user_reg_form1.corr_country.value == 'United Arab Emirates')
{
addOption(document.user_reg_form1.corr_state,"Other","Other");
}



if(document.user_reg_form1.corr_country.value == 'United Kingdom')
{
addOption(document.user_reg_form1.corr_state,"Other","Other");
}


if(document.user_reg_form1.corr_country.value == 'United States')
{
addOption(document.user_reg_form1.corr_state,"Other","Other");
}


if(document.user_reg_form1.corr_country.value == 'Yemen')
{
addOption(document.user_reg_form1.corr_state,"Other","Other");
}


if(document.user_reg_form1.corr_country.value == 'Zimbabwe')
{
addOption(document.user_reg_form1.corr_state,"Other","Other");
}


if(document.user_reg_form1.corr_country.value == 'C_Other')
{
addOption(document.user_reg_form1.corr_state,"Other","Other");

document.user_reg_form1.other_country.style.visibility = 'visible';
document.user_reg_form1.other_country.value="";
}

if((document.user_reg_form1.corr_country.value != 'C_Other') || (document.user_reg_form1.corr_country.value == ''))
{
document.user_reg_form1.other_country.style.visibility = 'hidden';
document.user_reg_form1.other_country.value="";
}

}

function other_visible()
{

document.user_reg_form1.other_country.style.visibility = 'hidden';
document.user_reg_form1.other_country.style.display = '';

document.user_reg_form1.other_state.style.visibility = 'hidden';
document.user_reg_form1.other_state.style.display = '';

document.user_reg_form1.other_city_job.style.visibility = 'hidden';
document.user_reg_form1.other_city_job.style.display = '';

document.user_reg_form1.other_p_country.style.visibility = 'hidden';
document.user_reg_form1.other_p_country.style.display = '';

document.user_reg_form1.other_p_state.style.visibility = 'hidden';
document.user_reg_form1.other_p_state.style.display = '';

document.user_reg_form1.other_p_city.style.visibility = 'hidden';
document.user_reg_form1.other_p_city.style.display = '';

}



function Selectcity()
{
	
removeAllOptions(document.user_reg_form1.corr_city_town);

addOption(document.user_reg_form1.corr_city_town, "", "Select", "");


if(document.user_reg_form1.corr_state.value == 'Andaman and Nicobar Islands')
{
addOption(document.user_reg_form1.corr_city_town,"Andaman and Nicobar Islands","Andaman and Nicobar Islands");
addOption(document.user_reg_form1.corr_city_town,"Other","Andaman and Nicobar Islands-Other");
}


if(document.user_reg_form1.corr_state.value == 'Andhra Pradesh')
{
addOption(document.user_reg_form1.corr_city_town,"Anantapur","AP-Anantapur");
addOption(document.user_reg_form1.corr_city_town,"Guntakal","AP-Guntakal");
addOption(document.user_reg_form1.corr_city_town,"Guntur","AP-Guntur");
addOption(document.user_reg_form1.corr_city_town,"Hyderabad","AP-Hyderabad");
addOption(document.user_reg_form1.corr_city_town,"Kurnool","AP-Kurnool");
addOption(document.user_reg_form1.corr_city_town,"Nellore","AP- Nellore");
addOption(document.user_reg_form1.corr_city_town,"Nizamabad","AP-Nizamabad");
addOption(document.user_reg_form1.corr_city_town,"Rajahmundry","AP-Rajahmundry");
addOption(document.user_reg_form1.corr_city_town,"Secunderabad","AP-Secunderabad");
addOption(document.user_reg_form1.corr_city_town,"Tirupati","AP-Tirupati");
addOption(document.user_reg_form1.corr_city_town,"Vijayawada","AP-Vijayawada");
addOption(document.user_reg_form1.corr_city_town,"Visakhapatnam","AP-Visakhapatnam");
addOption(document.user_reg_form1.corr_city_town,"Warangal","AP-Warangal");
addOption(document.user_reg_form1.corr_city_town,"Other","AP-Other");
}



if(document.user_reg_form1.corr_state.value == 'Arunachal Pradesh')
{
addOption(document.user_reg_form1.corr_city_town,"Itanagar","Arunachal P'desh-Itanagar");
addOption(document.user_reg_form1.corr_city_town,"Other","Arunachal P'desh-Other");
}




if(document.user_reg_form1.corr_state.value == 'Assam')
{
addOption(document.user_reg_form1.corr_city_town,"Guwahati","Assam-Guwahati");
addOption(document.user_reg_form1.corr_city_town,"Silchar","Assam-Silchar");
addOption(document.user_reg_form1.corr_city_town,"Other","Assam-Other");
}




if(document.user_reg_form1.corr_state.value == 'Bihar')
{
addOption(document.user_reg_form1.corr_city_town,"Bahgalpur","Bihar-Bahgalpur");
addOption(document.user_reg_form1.corr_city_town,"Patna","Bihar-Patna");
addOption(document.user_reg_form1.corr_city_town,"Other","Bihar-Other");
}




if(document.user_reg_form1.corr_state.value == 'Chandigarh')
{
addOption(document.user_reg_form1.corr_city_town,"Chandigarh","Chandigarh");
}


if(document.user_reg_form1.corr_state.value == 'Chhattisgarh')
{
addOption(document.user_reg_form1.corr_city_town,"Bhillai","Chhattisgarh-Bhillai");
addOption(document.user_reg_form1.corr_city_town,"Raipur","Chhattisgarh-Raipur");
addOption(document.user_reg_form1.corr_city_town,"Other","Chhattisgarh-Other");
}


if(document.user_reg_form1.corr_state.value == 'Dadra and Nagar Haveli')
{
addOption(document.user_reg_form1.corr_city_town,"Dadra & Nagar Haveli","Dadra& Nagar Haveli");
}




if(document.user_reg_form1.corr_state.value == 'Daman and Diu')
{
addOption(document.user_reg_form1.corr_city_town,"Daman & Dui","Daman& Dui");
}




if(document.user_reg_form1.corr_state.value == 'Delhi')
{
addOption(document.user_reg_form1.corr_city_town,"Delhi","Delhi/NCR");
}




if(document.user_reg_form1.corr_state.value == 'Goa')
{
addOption(document.user_reg_form1.corr_city_town,"Goa","Goa");
addOption(document.user_reg_form1.corr_city_town,"Panaji","Goa-Panaji");
addOption(document.user_reg_form1.corr_city_town,"Panjim","Goa-Panjim");
addOption(document.user_reg_form1.corr_city_town,"Vasco Da Gama","Goa-Vasco Da Gama");
addOption(document.user_reg_form1.corr_city_town,"Other","Goa-Other");
}




if(document.user_reg_form1.corr_state.value == 'Gujarat')
{
addOption(document.user_reg_form1.corr_city_town,"Ahmedabad","Guj-Ahmedabad");
addOption(document.user_reg_form1.corr_city_town,"Anand","Guj-Anand");
addOption(document.user_reg_form1.corr_city_town,"Baroda","Guj-Baroda");
addOption(document.user_reg_form1.corr_city_town,"Bharuch","Guj-Bharuch");
addOption(document.user_reg_form1.corr_city_town,"Bhavnagar","Guj-Bhavnagar");
addOption(document.user_reg_form1.corr_city_town,"Bhuj","Guj-Bhuj");
addOption(document.user_reg_form1.corr_city_town,"Gandhinagar","Guj-Gandhinagar");
addOption(document.user_reg_form1.corr_city_town,"Gir","Guj-Gir");
addOption(document.user_reg_form1.corr_city_town,"Jamnagar","Guj-Jamnagar");
addOption(document.user_reg_form1.corr_city_town,"Kandla","Guj-Kandla");
addOption(document.user_reg_form1.corr_city_town,"Porbandar","Guj-Porbandar");
addOption(document.user_reg_form1.corr_city_town,"Rajkot","Guj-Rajkot");
addOption(document.user_reg_form1.corr_city_town,"Surat","Guj-Surat");
addOption(document.user_reg_form1.corr_city_town,"Vadodara","Guj-Vadodara");
addOption(document.user_reg_form1.corr_city_town,"Other","Guj-Other");
}


if(document.user_reg_form1.corr_state.value == 'Haryana')
{
addOption(document.user_reg_form1.corr_city_town,"Ambala","Haryana-Ambala");
addOption(document.user_reg_form1.corr_city_town,"Faridabad","Haryana-Faridabad");
addOption(document.user_reg_form1.corr_city_town,"Gurgaon","Haryana-Gurgaon");
addOption(document.user_reg_form1.corr_city_town,"Karnal","Haryana-Karnal");
addOption(document.user_reg_form1.corr_city_town,"Kurukshetra","Haryana-Kurukshetra");
addOption(document.user_reg_form1.corr_city_town,"Panipat","Haryana-Panipat");
addOption(document.user_reg_form1.corr_city_town,"Rohtak","Haryana-Rohtak");
addOption(document.user_reg_form1.corr_city_town,"Other","Haryana-Other");
}




if(document.user_reg_form1.corr_state.value == 'Himachal Pradesh')
{

addOption(document.user_reg_form1.corr_city_town,"Dalhousie","HP-Dalhousie");
addOption(document.user_reg_form1.corr_city_town,"Dharmasala","HP-Dharmsala");
addOption(document.user_reg_form1.corr_city_town,"Kulu/Manali","HP-Kulu/Manali");
addOption(document.user_reg_form1.corr_city_town,"Shimla","HP-Shimla");
addOption(document.user_reg_form1.corr_city_town,"Other","HP-Other");
}





if(document.user_reg_form1.corr_state.value == 'Jammu and Kashmir')
{

addOption(document.user_reg_form1.corr_city_town,"Jammu","J& K-Jammu");
addOption(document.user_reg_form1.corr_city_town,"Srinagar","J& K-Srinagar");
addOption(document.user_reg_form1.corr_city_town,"Other","J& K-Other");
}




if(document.user_reg_form1.corr_state.value == 'Jharkhand')
{

addOption(document.user_reg_form1.corr_city_town,"Bokaro","Jharkhand-Bokaro");
addOption(document.user_reg_form1.corr_city_town,"Dhanbad","Jharkhand-Dhanbad");
addOption(document.user_reg_form1.corr_city_town,"Jamshedpur","Jharkhand-Jamshedpur");
addOption(document.user_reg_form1.corr_city_town,"Ranchi","Jharkhand-Ranchi");
addOption(document.user_reg_form1.corr_city_town,"Other","Jharkhand-Other");
}




if(document.user_reg_form1.corr_state.value == 'Karnataka')
{

addOption(document.user_reg_form1.corr_city_town,"Bangalore","Karnataka-Bangalore");
addOption(document.user_reg_form1.corr_city_town,"Belgaum","Karnataka-Belgaum");
addOption(document.user_reg_form1.corr_city_town,"Bellary","Karnataka-Bellary");
addOption(document.user_reg_form1.corr_city_town,"Bidar","Karnataka-Bidar");
addOption(document.user_reg_form1.corr_city_town,"Dharwad","Karnataka-Dharwad");
addOption(document.user_reg_form1.corr_city_town,"Gulbarga","Karnataka-Gulbarga");
addOption(document.user_reg_form1.corr_city_town,"Hubli","Karnataka-Hubli");
addOption(document.user_reg_form1.corr_city_town,"Kolar","Karnataka-Kolar");
addOption(document.user_reg_form1.corr_city_town,"Mangalore","Karnataka-Mangalore");
addOption(document.user_reg_form1.corr_city_town,"Mysore","Karnataka-Mysore");
addOption(document.user_reg_form1.corr_city_town,"Other","Karnataka-Other");
}





if(document.user_reg_form1.corr_state.value == 'Kerala')
{

addOption(document.user_reg_form1.corr_city_town,"Calicut","Kerala-Calicut");
addOption(document.user_reg_form1.corr_city_town,"Cochin","Kerala-Cochin");
addOption(document.user_reg_form1.corr_city_town,"Ernakulam","Kerala-Ernakulam");
addOption(document.user_reg_form1.corr_city_town,"Kochi","Kerala-Kochi");
addOption(document.user_reg_form1.corr_city_town,"Kollam","Kerala-Kollam");
addOption(document.user_reg_form1.corr_city_town,"Kottayam","Kerala-Kottayam");
addOption(document.user_reg_form1.corr_city_town,"Kozhikode","Kerala-Kozhikode");
addOption(document.user_reg_form1.corr_city_town,"Palakkad","Kerala-Palakkad");
addOption(document.user_reg_form1.corr_city_town,"Palghat","Kerala-Palghat");
addOption(document.user_reg_form1.corr_city_town,"Thrissur","Kerala-Thrissur");
addOption(document.user_reg_form1.corr_city_town,"Trivandrum","Kerala-Trivandrum");
addOption(document.user_reg_form1.corr_city_town,"Other","Kerala-Other");
}





if(document.user_reg_form1.corr_state.value == 'Lakshadweep')
{

addOption(document.user_reg_form1.corr_city_town,"Lakshadweep","Lakshadweep");
}




if(document.user_reg_form1.corr_state.value == 'Madhya Pradesh')
{

addOption(document.user_reg_form1.corr_city_town,"Bhopal","MP-Bhopal");
addOption(document.user_reg_form1.corr_city_town,"Gwalior","MP-Gwalior");
addOption(document.user_reg_form1.corr_city_town,"Indore","MP-Indore");
addOption(document.user_reg_form1.corr_city_town,"Jabalpur","MP-Jabalpur");
addOption(document.user_reg_form1.corr_city_town,"Ujjain","MP-Ujjain");
addOption(document.user_reg_form1.corr_city_town,"Other","MP-Other Cities");
}




if(document.user_reg_form1.corr_state.value == 'Maharashtra')
{

addOption(document.user_reg_form1.corr_city_town,"Ahmednagar","Maharashtra-Ahmednagar");
addOption(document.user_reg_form1.corr_city_town,"Aurangabad","Maharashtra-Aurangabad");
addOption(document.user_reg_form1.corr_city_town,"Jalgaon","Maharashtra-Jalgaon");
addOption(document.user_reg_form1.corr_city_town,"Kolhapur","Maharashtra-Kolhapur");
addOption(document.user_reg_form1.corr_city_town,"Mumbai","Maharashtra-Mumbai");
addOption(document.user_reg_form1.corr_city_town,"Nagpur","Maharashtra-Nagpur");
addOption(document.user_reg_form1.corr_city_town,"Nasik","Maharashtra-Nasik");
addOption(document.user_reg_form1.corr_city_town,"Pune","Maharashtra-Pune");
addOption(document.user_reg_form1.corr_city_town,"Sholapur","Maharashtra-Sholapur");
addOption(document.user_reg_form1.corr_city_town,"Other","Maharashtra-Other");

}




if(document.user_reg_form1.corr_state.value == 'Manipur')
{

addOption(document.user_reg_form1.corr_city_town,"Imphal","Manipur-Imphal");
addOption(document.user_reg_form1.corr_city_town,"Other","Manipur-Other");
}




if(document.user_reg_form1.corr_state.value == 'Meghalaya')
{

addOption(document.user_reg_form1.corr_city_town,"Shillong","Meghalaya-Shillong");
addOption(document.user_reg_form1.corr_city_town,"Other","Meghalaya-Other");
}




if(document.user_reg_form1.corr_state.value == 'Mizoram')
{

addOption(document.user_reg_form1.corr_city_town,"Aizawal","Miz.-Aizawal");
addOption(document.user_reg_form1.corr_city_town,"Other","Miz.-Other");
}




if(document.user_reg_form1.corr_state.value == 'Nagaland')
{

addOption(document.user_reg_form1.corr_city_town,"Dimapur","Nagaland-Dimapur");
addOption(document.user_reg_form1.corr_city_town,"Other","Nagaland-Other");
}




if(document.user_reg_form1.corr_state.value == 'Orissa')
{

addOption(document.user_reg_form1.corr_city_town,"Bhubaneshwar","Orissa-Bhubaneshwar");
addOption(document.user_reg_form1.corr_city_town,"Cuttack","Orissa-Cuttack");
addOption(document.user_reg_form1.corr_city_town,"Paradeep","Orissa-Paradeep");
addOption(document.user_reg_form1.corr_city_town,"Puri","Orissa-Puri");
addOption(document.user_reg_form1.corr_city_town,"Rourkela","Orissa-Rourkela");
addOption(document.user_reg_form1.corr_city_town,"Other","Orissa-Other");

}



if(document.user_reg_form1.corr_state.value == 'Pondicherry')
{

addOption(document.user_reg_form1.corr_city_town,"Pondicherry","Pondicherry");
}




if(document.user_reg_form1.corr_state.value == 'Punjab')
{

addOption(document.user_reg_form1.corr_city_town,"Amritsar","Punjab-Amritsar");
addOption(document.user_reg_form1.corr_city_town,"Jalandhar","Punjab-Jalandhar");
addOption(document.user_reg_form1.corr_city_town,"Ludhiana","Punjab-Ludhiana");
addOption(document.user_reg_form1.corr_city_town,"Mohali","Punjab-Mohali");
addOption(document.user_reg_form1.corr_city_town,"Pathankot","Punjab-Pathankot");
addOption(document.user_reg_form1.corr_city_town,"Patiala","Punjab-Patiala");
addOption(document.user_reg_form1.corr_city_town,"Other","Punjab-Other");
}





if(document.user_reg_form1.corr_state.value == 'Rajasthan')
{

addOption(document.user_reg_form1.corr_city_town,"Ajmer","Raj.-Ajmer");
addOption(document.user_reg_form1.corr_city_town,"Jaipur","Raj.-Jaipur");
addOption(document.user_reg_form1.corr_city_town,"Jaisalmer","Raj.-Jaisalmer");
addOption(document.user_reg_form1.corr_city_town,"Jodhpur","Raj.-Jodhpur");
addOption(document.user_reg_form1.corr_city_town,"Kota","Raj.-Kota");
addOption(document.user_reg_form1.corr_city_town,"Udaipur","Raj.-Udaipur");
addOption(document.user_reg_form1.corr_city_town,"Other","Raj.-Other");
}





if(document.user_reg_form1.corr_state.value == 'Sikkim')
{

addOption(document.user_reg_form1.corr_city_town,"Gangtok","Sikkim-Gangtok");
addOption(document.user_reg_form1.corr_city_town,"Other","Sikkim-Other");
}




if(document.user_reg_form1.corr_state.value == 'Tamil Nadu')
{

addOption(document.user_reg_form1.corr_city_town,"Chennai","TN-Chennai");
addOption(document.user_reg_form1.corr_city_town,"Coimbatore","TN-Coimbatore");
addOption(document.user_reg_form1.corr_city_town,"Erode","TN-Erode");
addOption(document.user_reg_form1.corr_city_town,"Hosur","TN-Hosur");
addOption(document.user_reg_form1.corr_city_town,"Madurai","TN-Madurai");
addOption(document.user_reg_form1.corr_city_town,"Ooty","TN-Ooty");
addOption(document.user_reg_form1.corr_city_town,"Salem","TN-Salem");
addOption(document.user_reg_form1.corr_city_town,"Tirunalveli","TN-Tirunelveli");
addOption(document.user_reg_form1.corr_city_town,"Trichy","TN-Trichy");
addOption(document.user_reg_form1.corr_city_town,"Vellore","TN-Vellore");
addOption(document.user_reg_form1.corr_city_town,"Other","TN-Other");
}





if(document.user_reg_form1.corr_state.value == 'Tripura')
{

addOption(document.user_reg_form1.corr_city_town,"Agartala","Tripura-Agartala");
addOption(document.user_reg_form1.corr_city_town,"Other","Tripura-Other");
}




if(document.user_reg_form1.corr_state.value == 'Uttaranchal')
{

addOption(document.user_reg_form1.corr_city_town,"Dehradun","Uttaranchal-Dehradun");
addOption(document.user_reg_form1.corr_city_town,"Other","Uttaranchal-Other");
}




if(document.user_reg_form1.corr_state.value == 'Uttar Pradesh')
{

addOption(document.user_reg_form1.corr_city_town,"Agra","UP-Agra");
addOption(document.user_reg_form1.corr_city_town,"Aligarh","UP-Aligarh");
addOption(document.user_reg_form1.corr_city_town,"Allahabad","UP-Allahabad");
addOption(document.user_reg_form1.corr_city_town,"Bareilly","UP-Bareilly");
addOption(document.user_reg_form1.corr_city_town,"Faizabad","UP-Faizabad");
addOption(document.user_reg_form1.corr_city_town,"Ghaziabad","UP-Ghaziabad");
addOption(document.user_reg_form1.corr_city_town,"Gorakhpur","UP-Gorakhpur");
addOption(document.user_reg_form1.corr_city_town,"Kanpur","UP-Kanpur");
addOption(document.user_reg_form1.corr_city_town,"Lucknow","UP-Lucknow");
addOption(document.user_reg_form1.corr_city_town,"Mathura","UP-Mathura");
addOption(document.user_reg_form1.corr_city_town,"Meerut","UP-Meerut");
addOption(document.user_reg_form1.corr_city_town,"Noida","UP-Noida");
addOption(document.user_reg_form1.corr_city_town,"Varanasi","UP-Varanasi");
addOption(document.user_reg_form1.corr_city_town,"Other","UP-Other");
}




if(document.user_reg_form1.corr_state.value == 'West Bengal')
{
addOption(document.user_reg_form1.corr_city_town,"Kolkata","WB-Kolkata");
addOption(document.user_reg_form1.corr_city_town,"Other","WB-Other");
}


if(document.user_reg_form1.corr_state.value == 'Other')
{
addOption(document.user_reg_form1.corr_city_town,"Other","Other");

document.user_reg_form1.other_state.style.visibility = 'visible';
document.user_reg_form1.other_state.value="";
}

if((document.user_reg_form1.corr_state.value != 'Other') || (document.user_reg_form1.corr_state.value == ''))
{
document.user_reg_form1.other_state.style.visibility = 'hidden';
document.user_reg_form1.other_state.value="";
}

}



function Selectedcity_other()
{
	
if(document.user_reg_form1.corr_city_town.value == 'Other')
{
document.user_reg_form1.other_city_job.style.visibility = 'visible';
}

if((document.user_reg_form1.corr_city_town.value != 'Other') || (document.user_reg_form1.corr_city_town.value == ''))
{
document.user_reg_form1.other_city_job.style.visibility = 'hidden';
document.user_reg_form1.other_city_job.value="";
}
}




function Select_p_state()
{
// ON selection of category this function will work

removeAllOptions(document.user_reg_form1.p_state);
removeAllOptions(document.user_reg_form1.p_city);

addOption(document.user_reg_form1.p_state, "", "Select", "");

if(document.user_reg_form1.p_country.value == 'India')
{
addOption(document.user_reg_form1.p_state,"Andaman and Nicobar Islands","Andaman and Nicobar Islands");
addOption(document.user_reg_form1.p_state,"Andhra Pradesh","Andhra Pradesh");
addOption(document.user_reg_form1.p_state,"Arunachal Pradesh","Arunachal Pradesh");
addOption(document.user_reg_form1.p_state,"Assam","Assam");
addOption(document.user_reg_form1.p_state,"Bihar","Bihar");
addOption(document.user_reg_form1.p_state,"Chandigarh","Chandigarh");
addOption(document.user_reg_form1.p_state,"Chhattisgarh","Chhattisgarh");
addOption(document.user_reg_form1.p_state,"Dadra and Nagar Haveli","Dadra and Nagar Haveli");
addOption(document.user_reg_form1.p_state,"Daman and Diu","Daman and Diu");
addOption(document.user_reg_form1.p_state,"Delhi","Delhi");
addOption(document.user_reg_form1.p_state,"Goa","Goa");
addOption(document.user_reg_form1.p_state,"Gujarat","Gujarat");
addOption(document.user_reg_form1.p_state,"Haryana","Haryana");
addOption(document.user_reg_form1.p_state,"Himachal Pradesh","Himachal Pradesh");
addOption(document.user_reg_form1.p_state,"Jammu and Kashmir","Jammu and Kashmir");
addOption(document.user_reg_form1.p_state,"Jharkhand","Jharkhand");
addOption(document.user_reg_form1.p_state,"Karnataka","Karnataka");
addOption(document.user_reg_form1.p_state,"Kerala","Kerala");
addOption(document.user_reg_form1.p_state,"Lakshadweep","Lakshadweep");
addOption(document.user_reg_form1.p_state,"Madhya Pradesh","Madhya Pradesh");
addOption(document.user_reg_form1.p_state,"Maharashtra","Maharashtra");
addOption(document.user_reg_form1.p_state,"Manipur","Manipur");
addOption(document.user_reg_form1.p_state,"Meghalaya","Meghalaya");
addOption(document.user_reg_form1.p_state,"Mizoram","Mizoram");
addOption(document.user_reg_form1.p_state,"Nagaland","Nagaland");
addOption(document.user_reg_form1.p_state,"Orissa","Orissa");
addOption(document.user_reg_form1.p_state,"Pondicherry","Pondicherry");
addOption(document.user_reg_form1.p_state,"Punjab","Punjab");
addOption(document.user_reg_form1.p_state,"Rajasthan","Rajasthan");
addOption(document.user_reg_form1.p_state,"Sikkim","Sikkim");
addOption(document.user_reg_form1.p_state,"Tamil Nadu","Tamil Nadu");
addOption(document.user_reg_form1.p_state,"Tripura","Tripura");
addOption(document.user_reg_form1.p_state,"Uttaranchal","Uttaranchal");
addOption(document.user_reg_form1.p_state,"Uttar Pradesh","Uttar Pradesh");
addOption(document.user_reg_form1.p_state,"West Bengal","West Bengal");
addOption(document.user_reg_form1.p_state,"Other","Other");
}


if(document.user_reg_form1.p_country.value == 'Australia')
{
addOption(document.user_reg_form1.p_state,"Other","Other");
}


if(document.user_reg_form1.p_country.value == 'Bahrain')
{
addOption(document.user_reg_form1.p_state,"Other","Other");
}


if(document.user_reg_form1.p_country.value == 'Bangladesh')
{
addOption(document.user_reg_form1.p_state,"Other","Other");
}


if(document.user_reg_form1.p_country.value == 'Belgium')
{
addOption(document.user_reg_form1.p_state,"Other","Other");
}



if(document.user_reg_form1.p_country.value == 'Canada')
{
addOption(document.user_reg_form1.p_state,"Other","Other");
}


if(document.user_reg_form1.p_country.value == 'Doha')
{
addOption(document.user_reg_form1.p_state,"Other","Other");
}


if(document.user_reg_form1.p_country.value == 'Dubai')
{
addOption(document.user_reg_form1.p_state,"Other","Other");
}


if(document.user_reg_form1.p_country.value == 'France')
{
addOption(document.user_reg_form1.p_state,"Other","Other");
}


if(document.user_reg_form1.p_country.value == 'Germany')
{
addOption(document.user_reg_form1.p_state,"Other","Other");
}


if(document.user_reg_form1.p_country.value == 'Hong Kong')
{
addOption(document.user_reg_form1.p_state,"Other","Other");
}


if(document.user_reg_form1.p_country.value == 'Indonesia')
{
addOption(document.user_reg_form1.p_state,"Other","Other");
}


if(document.user_reg_form1.p_country.value == 'Ireland')
{
addOption(document.user_reg_form1.p_state,"Other","Other");
}


if(document.user_reg_form1.p_country.value == 'Italy')
{
addOption(document.user_reg_form1.p_state,"Other","Other");
}


if(document.user_reg_form1.p_country.value == 'Japan')
{
addOption(document.user_reg_form1.p_state,"Other","Other");
}


if(document.user_reg_form1.p_country.value == 'Kenya')
{
addOption(document.user_reg_form1.p_state,"Other","Other");
}


if(document.user_reg_form1.p_country.value == 'Kuwait')
{
addOption(document.user_reg_form1.p_state,"Other","Other");
}


if(document.user_reg_form1.p_country.value == 'Lebanon')
{
addOption(document.user_reg_form1.p_state,"Other","Other");
}


if(document.user_reg_form1.p_country.value == 'Libya')
{
addOption(document.user_reg_form1.p_state,"Other","Other");
}


if(document.user_reg_form1.p_country.value == 'Malaysia')
{
addOption(document.user_reg_form1.p_state,"Other","Other");
}


if(document.user_reg_form1.p_country.value == 'Maldives')
{
addOption(document.user_reg_form1.p_state,"Other","Other");
}



if(document.user_reg_form1.p_country.value == 'Mauritius')
{
addOption(document.user_reg_form1.p_state,"Other","Other");
}


if(document.user_reg_form1.p_country.value == 'Mexico')
{
addOption(document.user_reg_form1.p_state,"Other","Other");
}


if(document.user_reg_form1.p_country.value == 'Nepal')
{
addOption(document.user_reg_form1.p_state,"Other","Other");
}


if(document.user_reg_form1.p_country.value == 'Netherlands')
{
addOption(document.user_reg_form1.p_state,"Other","Other");
}


if(document.user_reg_form1.p_country.value == 'New Zealand')
{
addOption(document.user_reg_form1.p_state,"Other","Other");
}


if(document.user_reg_form1.p_country.value == 'Norway')
{
addOption(document.user_reg_form1.p_state,"Other","Other");
}


if(document.user_reg_form1.p_country.value == 'Oman')
{
addOption(document.user_reg_form1.p_state,"Other","Other");
}


if(document.user_reg_form1.p_country.value == 'Pakistan')
{
addOption(document.user_reg_form1.p_state,"Other","Other");
}


if(document.user_reg_form1.p_country.value == 'Qatar')
{
addOption(document.user_reg_form1.p_state,"Other","Other");
}


if(document.user_reg_form1.p_country.value == 'Quilon')
{
addOption(document.user_reg_form1.p_state,"Other","Other");
}


if(document.user_reg_form1.p_country.value == 'Russia')
{
addOption(document.user_reg_form1.p_state,"Other","Other");
}


if(document.user_reg_form1.p_country.value == 'Saudi Arabia')
{
addOption(document.user_reg_form1.p_state,"Other","Other");
}




if(document.user_reg_form1.p_country.value == 'singapore')
{
addOption(document.user_reg_form1.p_state,"Other","Other");
}


if(document.user_reg_form1.p_country.value == 'South Africa')
{
addOption(document.user_reg_form1.p_state,"Other","Other");
}


if(document.user_reg_form1.p_country.value == 'South Korea')
{
addOption(document.user_reg_form1.p_state,"Other","Other");
}


if(document.user_reg_form1.p_country.value == 'Spain')
{
addOption(document.user_reg_form1.p_state,"Other","Other");
}


if(document.user_reg_form1.p_country.value == 'Sri Lanka')
{
addOption(document.user_reg_form1.p_state,"Other","Other");
}


if(document.user_reg_form1.p_country.value == 'Sweden')
{
addOption(document.user_reg_form1.p_state,"Other","Other");
}


if(document.user_reg_form1.p_country.value == 'switzerland')
{
addOption(document.user_reg_form1.p_state,"Other","Other");
}


if(document.user_reg_form1.p_country.value == 'Thailand')
{
addOption(document.user_reg_form1.p_state,"Other","Other");
}


if(document.user_reg_form1.p_country.value == 'United Arab Emirates')
{
addOption(document.user_reg_form1.p_state,"Other","Other");
}



if(document.user_reg_form1.p_country.value == 'United Kingdom')
{
addOption(document.user_reg_form1.p_state,"Other","Other");
}


if(document.user_reg_form1.p_country.value == 'United States')
{
addOption(document.user_reg_form1.p_state,"Other","Other");
}


if(document.user_reg_form1.p_country.value == 'Yemen')
{
addOption(document.user_reg_form1.p_state,"Other","Other");
}


if(document.user_reg_form1.p_country.value == 'Zimbabwe')
{
addOption(document.user_reg_form1.p_state,"Other","Other");
}


if(document.user_reg_form1.p_country.value == 'C_P_Other')
{
addOption(document.user_reg_form1.p_state,"Other","Other");

document.user_reg_form1.other_p_country.style.visibility = 'visible';
document.user_reg_form1.other_p_country.value="";
}

if((document.user_reg_form1.p_country.value != 'C_P_Other') || (document.user_reg_form1.p_country.value == ''))
{
document.user_reg_form1.other_p_country.style.visibility = 'hidden';
document.user_reg_form1.other_p_country.value="";
}

}


function Select_p_city()
{
	
removeAllOptions(document.user_reg_form1.p_city);

addOption(document.user_reg_form1.p_city, "", "Select", "");


if(document.user_reg_form1.p_state.value == 'Andaman and Nicobar Islands')
{
addOption(document.user_reg_form1.p_city,"Andaman and Nicobar Islands","Andaman and Nicobar Islands");
addOption(document.user_reg_form1.p_city,"Other","Andaman and Nicobar Islands-Other");
}


if(document.user_reg_form1.p_state.value == 'Andhra Pradesh')
{
addOption(document.user_reg_form1.p_city,"Anantapur","AP-Anantapur");
addOption(document.user_reg_form1.p_city,"Guntakal","AP-Guntakal");
addOption(document.user_reg_form1.p_city,"Guntur","AP-Guntur");
addOption(document.user_reg_form1.p_city,"Hyderabad","AP-Hyderabad");
addOption(document.user_reg_form1.p_city,"Kurnool","AP-Kurnool");
addOption(document.user_reg_form1.p_city,"Nellore","AP- Nellore");
addOption(document.user_reg_form1.p_city,"Nizamabad","AP-Nizamabad");
addOption(document.user_reg_form1.p_city,"Rajahmundry","AP-Rajahmundry");
addOption(document.user_reg_form1.p_city,"Secunderabad","AP-Secunderabad");
addOption(document.user_reg_form1.p_city,"Tirupati","AP-Tirupati");
addOption(document.user_reg_form1.p_city,"Vijayawada","AP-Vijayawada");
addOption(document.user_reg_form1.p_city,"Visakhapatnam","AP-Visakhapatnam");
addOption(document.user_reg_form1.p_city,"Warangal","AP-Warangal");
addOption(document.user_reg_form1.p_city,"Other","AP-Other");
}



if(document.user_reg_form1.p_state.value == 'Arunachal Pradesh')
{
addOption(document.user_reg_form1.p_city,"Itanagar","Arunachal P'desh-Itanagar");
addOption(document.user_reg_form1.p_city,"Other","Arunachal P'desh-Other");
}




if(document.user_reg_form1.p_state.value == 'Assam')
{
addOption(document.user_reg_form1.p_city,"Guwahati","Assam-Guwahati");
addOption(document.user_reg_form1.p_city,"Silchar","Assam-Silchar");
addOption(document.user_reg_form1.p_city,"Other","Assam-Other");
}




if(document.user_reg_form1.p_state.value == 'Bihar')
{
addOption(document.user_reg_form1.p_city,"Bahgalpur","Bihar-Bahgalpur");
addOption(document.user_reg_form1.p_city,"Patna","Bihar-Patna");
addOption(document.user_reg_form1.p_city,"Other","Bihar-Other");
}




if(document.user_reg_form1.p_state.value == 'Chandigarh')
{
addOption(document.user_reg_form1.p_city,"Chandigarh","Chandigarh");
}


if(document.user_reg_form1.p_state.value == 'Chhattisgarh')
{
addOption(document.user_reg_form1.p_city,"Bhillai","Chhattisgarh-Bhillai");
addOption(document.user_reg_form1.p_city,"Raipur","Chhattisgarh-Raipur");
addOption(document.user_reg_form1.p_city,"Other","Chhattisgarh-Other");
}


if(document.user_reg_form1.p_state.value == 'Dadra and Nagar Haveli')
{
addOption(document.user_reg_form1.p_city,"Dadra & Nagar Haveli","Dadra& Nagar Haveli");
}




if(document.user_reg_form1.p_state.value == 'Daman and Diu')
{
addOption(document.user_reg_form1.p_city,"Daman & Dui","Daman& Dui");
}




if(document.user_reg_form1.p_state.value == 'Delhi')
{
addOption(document.user_reg_form1.p_city,"Delhi","Delhi/NCR");
}




if(document.user_reg_form1.p_state.value == 'Goa')
{
addOption(document.user_reg_form1.p_city,"Goa","Goa");
addOption(document.user_reg_form1.p_city,"Panaji","Goa-Panaji");
addOption(document.user_reg_form1.p_city,"Panjim","Goa-Panjim");
addOption(document.user_reg_form1.p_city,"Vasco Da Gama","Goa-Vasco Da Gama");
addOption(document.user_reg_form1.p_city,"Other","Goa-Other");
}




if(document.user_reg_form1.p_state.value == 'Gujarat')
{
addOption(document.user_reg_form1.p_city,"Ahmedabad","Guj-Ahmedabad");
addOption(document.user_reg_form1.p_city,"Anand","Guj-Anand");
addOption(document.user_reg_form1.p_city,"Baroda","Guj-Baroda");
addOption(document.user_reg_form1.p_city,"Bharuch","Guj-Bharuch");
addOption(document.user_reg_form1.p_city,"Bhavnagar","Guj-Bhavnagar");
addOption(document.user_reg_form1.p_city,"Bhuj","Guj-Bhuj");
addOption(document.user_reg_form1.p_city,"Gandhinagar","Guj-Gandhinagar");
addOption(document.user_reg_form1.p_city,"Gir","Guj-Gir");
addOption(document.user_reg_form1.p_city,"Jamnagar","Guj-Jamnagar");
addOption(document.user_reg_form1.p_city,"Kandla","Guj-Kandla");
addOption(document.user_reg_form1.p_city,"Porbandar","Guj-Porbandar");
addOption(document.user_reg_form1.p_city,"Rajkot","Guj-Rajkot");
addOption(document.user_reg_form1.p_city,"Surat","Guj-Surat");
addOption(document.user_reg_form1.p_city,"Vadodara","Guj-Vadodara");
addOption(document.user_reg_form1.p_city,"Other","Guj-Other");
}


if(document.user_reg_form1.p_state.value == 'Haryana')
{
addOption(document.user_reg_form1.p_city,"Ambala","Haryana-Ambala");
addOption(document.user_reg_form1.p_city,"Faridabad","Haryana-Faridabad");
addOption(document.user_reg_form1.p_city,"Gurgaon","Haryana-Gurgaon");
addOption(document.user_reg_form1.p_city,"Karnal","Haryana-Karnal");
addOption(document.user_reg_form1.p_city,"Kurukshetra","Haryana-Kurukshetra");
addOption(document.user_reg_form1.p_city,"Panipat","Haryana-Panipat");
addOption(document.user_reg_form1.p_city,"Rohtak","Haryana-Rohtak");
addOption(document.user_reg_form1.p_city,"Other","Haryana-Other");
}




if(document.user_reg_form1.p_state.value == 'Himachal Pradesh')
{

addOption(document.user_reg_form1.p_city,"Dalhousie","HP-Dalhousie");
addOption(document.user_reg_form1.p_city,"Dharmasala","HP-Dharmsala");
addOption(document.user_reg_form1.p_city,"Kulu/Manali","HP-Kulu/Manali");
addOption(document.user_reg_form1.p_city,"Shimla","HP-Shimla");
addOption(document.user_reg_form1.p_city,"Other","HP-Other");
}





if(document.user_reg_form1.p_state.value == 'Jammu and Kashmir')
{

addOption(document.user_reg_form1.p_city,"Jammu","J& K-Jammu");
addOption(document.user_reg_form1.p_city,"Srinagar","J& K-Srinagar");
addOption(document.user_reg_form1.p_city,"Other","J& K-Other");
}




if(document.user_reg_form1.p_state.value == 'Jharkhand')
{

addOption(document.user_reg_form1.p_city,"Bokaro","Jharkhand-Bokaro");
addOption(document.user_reg_form1.p_city,"Dhanbad","Jharkhand-Dhanbad");
addOption(document.user_reg_form1.p_city,"Jamshedpur","Jharkhand-Jamshedpur");
addOption(document.user_reg_form1.p_city,"Ranchi","Jharkhand-Ranchi");
addOption(document.user_reg_form1.p_city,"Other","Jharkhand-Other");
}




if(document.user_reg_form1.p_state.value == 'Karnataka')
{

addOption(document.user_reg_form1.p_city,"Bangalore","Karnataka-Bangalore");
addOption(document.user_reg_form1.p_city,"Belgaum","Karnataka-Belgaum");
addOption(document.user_reg_form1.p_city,"Bellary","Karnataka-Bellary");
addOption(document.user_reg_form1.p_city,"Bidar","Karnataka-Bidar");
addOption(document.user_reg_form1.p_city,"Dharwad","Karnataka-Dharwad");
addOption(document.user_reg_form1.p_city,"Gulbarga","Karnataka-Gulbarga");
addOption(document.user_reg_form1.p_city,"Hubli","Karnataka-Hubli");
addOption(document.user_reg_form1.p_city,"Kolar","Karnataka-Kolar");
addOption(document.user_reg_form1.p_city,"Mangalore","Karnataka-Mangalore");
addOption(document.user_reg_form1.p_city,"Mysore","Karnataka-Mysore");
addOption(document.user_reg_form1.p_city,"Other","Karnataka-Other");
}





if(document.user_reg_form1.p_state.value == 'Kerala')
{

addOption(document.user_reg_form1.p_city,"Calicut","Kerala-Calicut");
addOption(document.user_reg_form1.p_city,"Cochin","Kerala-Cochin");
addOption(document.user_reg_form1.p_city,"Ernakulam","Kerala-Ernakulam");
addOption(document.user_reg_form1.p_city,"Kochi","Kerala-Kochi");
addOption(document.user_reg_form1.p_city,"Kollam","Kerala-Kollam");
addOption(document.user_reg_form1.p_city,"Kottayam","Kerala-Kottayam");
addOption(document.user_reg_form1.p_city,"Kozhikode","Kerala-Kozhikode");
addOption(document.user_reg_form1.p_city,"Palakkad","Kerala-Palakkad");
addOption(document.user_reg_form1.p_city,"Palghat","Kerala-Palghat");
addOption(document.user_reg_form1.p_city,"Thrissur","Kerala-Thrissur");
addOption(document.user_reg_form1.p_city,"Trivandrum","Kerala-Trivandrum");
addOption(document.user_reg_form1.p_city,"Other","Kerala-Other");
}





if(document.user_reg_form1.p_state.value == 'Lakshadweep')
{

addOption(document.user_reg_form1.p_city,"Lakshadweep","Lakshadweep");
}




if(document.user_reg_form1.p_state.value == 'Madhya Pradesh')
{

addOption(document.user_reg_form1.p_city,"Bhopal","MP-Bhopal");
addOption(document.user_reg_form1.p_city,"Gwalior","MP-Gwalior");
addOption(document.user_reg_form1.p_city,"Indore","MP-Indore");
addOption(document.user_reg_form1.p_city,"Jabalpur","MP-Jabalpur");
addOption(document.user_reg_form1.p_city,"Ujjain","MP-Ujjain");
addOption(document.user_reg_form1.p_city,"Other","MP-Other Cities");
}




if(document.user_reg_form1.p_state.value == 'Maharashtra')
{

addOption(document.user_reg_form1.p_city,"Ahmednagar","Maharashtra-Ahmednagar");
addOption(document.user_reg_form1.p_city,"Aurangabad","Maharashtra-Aurangabad");
addOption(document.user_reg_form1.p_city,"Jalgaon","Maharashtra-Jalgaon");
addOption(document.user_reg_form1.p_city,"Kolhapur","Maharashtra-Kolhapur");
addOption(document.user_reg_form1.p_city,"Mumbai","Maharashtra-Mumbai");
addOption(document.user_reg_form1.p_city,"Nagpur","Maharashtra-Nagpur");
addOption(document.user_reg_form1.p_city,"Nasik","Maharashtra-Nasik");
addOption(document.user_reg_form1.p_city,"Pune","Maharashtra-Pune");
addOption(document.user_reg_form1.p_city,"Sholapur","Maharashtra-Sholapur");
addOption(document.user_reg_form1.p_city,"Other","Maharashtra-Other");

}




if(document.user_reg_form1.p_state.value == 'Manipur')
{

addOption(document.user_reg_form1.p_city,"Imphal","Manipur-Imphal");
addOption(document.user_reg_form1.p_city,"Other","Manipur-Other");
}




if(document.user_reg_form1.p_state.value == 'Meghalaya')
{

addOption(document.user_reg_form1.p_city,"Shillong","Meghalaya-Shillong");
addOption(document.user_reg_form1.p_city,"Other","Meghalaya-Other");
}




if(document.user_reg_form1.p_state.value == 'Mizoram')
{

addOption(document.user_reg_form1.p_city,"Aizawal","Miz.-Aizawal");
addOption(document.user_reg_form1.p_city,"Other","Miz.-Other");
}




if(document.user_reg_form1.p_state.value == 'Nagaland')
{

addOption(document.user_reg_form1.p_city,"Dimapur","Nagaland-Dimapur");
addOption(document.user_reg_form1.p_city,"Other","Nagaland-Other");
}




if(document.user_reg_form1.p_state.value == 'Orissa')
{

addOption(document.user_reg_form1.p_city,"Bhubaneshwar","Orissa-Bhubaneshwar");
addOption(document.user_reg_form1.p_city,"Cuttack","Orissa-Cuttack");
addOption(document.user_reg_form1.p_city,"Paradeep","Orissa-Paradeep");
addOption(document.user_reg_form1.p_city,"Puri","Orissa-Puri");
addOption(document.user_reg_form1.p_city,"Rourkela","Orissa-Rourkela");
addOption(document.user_reg_form1.p_city,"Other","Orissa-Other");

}



if(document.user_reg_form1.p_state.value == 'Pondicherry')
{

addOption(document.user_reg_form1.p_city,"Pondicherry","Pondicherry");
}




if(document.user_reg_form1.p_state.value == 'Punjab')
{

addOption(document.user_reg_form1.p_city,"Amritsar","Punjab-Amritsar");
addOption(document.user_reg_form1.p_city,"Jalandhar","Punjab-Jalandhar");
addOption(document.user_reg_form1.p_city,"Ludhiana","Punjab-Ludhiana");
addOption(document.user_reg_form1.p_city,"Mohali","Punjab-Mohali");
addOption(document.user_reg_form1.p_city,"Pathankot","Punjab-Pathankot");
addOption(document.user_reg_form1.p_city,"Patiala","Punjab-Patiala");
addOption(document.user_reg_form1.p_city,"Other","Punjab-Other");
}





if(document.user_reg_form1.p_state.value == 'Rajasthan')
{

addOption(document.user_reg_form1.p_city,"Ajmer","Raj.-Ajmer");
addOption(document.user_reg_form1.p_city,"Jaipur","Raj.-Jaipur");
addOption(document.user_reg_form1.p_city,"Jaisalmer","Raj.-Jaisalmer");
addOption(document.user_reg_form1.p_city,"Jodhpur","Raj.-Jodhpur");
addOption(document.user_reg_form1.p_city,"Kota","Raj.-Kota");
addOption(document.user_reg_form1.p_city,"Udaipur","Raj.-Udaipur");
addOption(document.user_reg_form1.p_city,"Other","Raj.-Other");
}





if(document.user_reg_form1.p_state.value == 'Sikkim')
{

addOption(document.user_reg_form1.p_city,"Gangtok","Sikkim-Gangtok");
addOption(document.user_reg_form1.p_city,"Other","Sikkim-Other");
}




if(document.user_reg_form1.p_state.value == 'Tamil Nadu')
{

addOption(document.user_reg_form1.p_city,"Chennai","TN-Chennai");
addOption(document.user_reg_form1.p_city,"Coimbatore","TN-Coimbatore");
addOption(document.user_reg_form1.p_city,"Erode","TN-Erode");
addOption(document.user_reg_form1.p_city,"Hosur","TN-Hosur");
addOption(document.user_reg_form1.p_city,"Madurai","TN-Madurai");
addOption(document.user_reg_form1.p_city,"Ooty","TN-Ooty");
addOption(document.user_reg_form1.p_city,"Salem","TN-Salem");
addOption(document.user_reg_form1.p_city,"Tirunalveli","TN-Tirunelveli");
addOption(document.user_reg_form1.p_city,"Trichy","TN-Trichy");
addOption(document.user_reg_form1.p_city,"Vellore","TN-Vellore");
addOption(document.user_reg_form1.p_city,"Other","TN-Other");
}





if(document.user_reg_form1.p_state.value == 'Tripura')
{

addOption(document.user_reg_form1.p_city,"Agartala","Tripura-Agartala");
addOption(document.user_reg_form1.p_city,"Other","Tripura-Other");
}




if(document.user_reg_form1.p_state.value == 'Uttaranchal')
{

addOption(document.user_reg_form1.p_city,"Dehradun","Uttaranchal-Dehradun");
addOption(document.user_reg_form1.p_city,"Other","Uttaranchal-Other");
}




if(document.user_reg_form1.p_state.value == 'Uttar Pradesh')
{

addOption(document.user_reg_form1.p_city,"Agra","UP-Agra");
addOption(document.user_reg_form1.p_city,"Aligarh","UP-Aligarh");
addOption(document.user_reg_form1.p_city,"Allahabad","UP-Allahabad");
addOption(document.user_reg_form1.p_city,"Bareilly","UP-Bareilly");
addOption(document.user_reg_form1.p_city,"Faizabad","UP-Faizabad");
addOption(document.user_reg_form1.p_city,"Ghaziabad","UP-Ghaziabad");
addOption(document.user_reg_form1.p_city,"Gorakhpur","UP-Gorakhpur");
addOption(document.user_reg_form1.p_city,"Kanpur","UP-Kanpur");
addOption(document.user_reg_form1.p_city,"Lucknow","UP-Lucknow");
addOption(document.user_reg_form1.p_city,"Mathura","UP-Mathura");
addOption(document.user_reg_form1.p_city,"Meerut","UP-Meerut");
addOption(document.user_reg_form1.p_city,"Noida","UP-Noida");
addOption(document.user_reg_form1.p_city,"Varanasi","UP-Varanasi");
addOption(document.user_reg_form1.p_city,"Other","UP-Other");
}




if(document.user_reg_form1.p_state.value == 'West Bengal')
{
addOption(document.user_reg_form1.p_city,"Kolkata","WB-Kolkata");
addOption(document.user_reg_form1.p_city,"Other","WB-Other");
}


if(document.user_reg_form1.p_state.value == 'Other')
{
addOption(document.user_reg_form1.p_city,"Other","Other");

document.user_reg_form1.other_p_state.style.visibility = 'visible';
document.user_reg_form1.other_p_state.value="";
}

if((document.user_reg_form1.p_state.value != 'Other') || (document.user_reg_form1.p_state.value == ''))
{
document.user_reg_form1.other_p_state.style.visibility = 'hidden';
document.user_reg_form1.other_p_state.value="";
}

}


function Selected_p_city_other()
{
	
if(document.user_reg_form1.p_city.value == 'Other')
{
document.user_reg_form1.other_p_city.style.visibility = 'visible';
}

if((document.user_reg_form1.p_city.value != 'Other') || (document.user_reg_form1.p_city.value == ''))
{
document.user_reg_form1.other_p_city.style.visibility = 'hidden';
document.user_reg_form1.other_p_city.value="";
}
}


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);
}





function dis_user_reg()
{
	flag="";
	if(document.user_reg_form1.c1_reg.checked)
	{
	   flag=true;
	   document.user_reg_form1.p_address1.style.backgroundColor = ""
	   document.user_reg_form1.p_address2.style.backgroundColor = ""
	   document.user_reg_form1.p_city.style.backgroundColor     = ""
	   document.user_reg_form1.p_district.style.backgroundColor = ""
	   document.user_reg_form1.p_state.style.backgroundColor    = ""
	   document.user_reg_form1.p_country.style.backgroundColor  = ""
	   document.user_reg_form1.p_zipcode.style.backgroundColor  = ""
	   if(document.user_reg_form1.p_country.value=='C_P_Other')
	   {
	   document.user_reg_form1.other_p_country.style.backgroundColor  = ""   
	   }
	   if(document.user_reg_form1.p_state.value=='Other')
	   {
	   document.user_reg_form1.other_p_state.style.backgroundColor  = ""  
	   }
	   if(document.user_reg_form1.p_city.value=='Other')
	   {
	   document.user_reg_form1.other_p_city.style.backgroundColor  = ""
	   }
	 }
	else
	{
	   flag=false;
	   
	   document.user_reg_form1.p_address1.style.backgroundColor = ""
	   document.user_reg_form1.p_address2.style.backgroundColor = ""
	   document.user_reg_form1.p_city.style.backgroundColor     = ""
	   document.user_reg_form1.p_district.style.backgroundColor = ""
	   document.user_reg_form1.p_state.style.backgroundColor    = ""
	   document.user_reg_form1.p_country.style.backgroundColor  = ""
	   document.user_reg_form1.p_zipcode.style.backgroundColor  = "" 
	   if(document.user_reg_form1.p_country.value=='C_P_Other')
	   {
	   document.user_reg_form1.other_p_country.style.backgroundColor  = ""   
	   }
	   if(document.user_reg_form1.p_state.value=='Other')
	   {
	   document.user_reg_form1.other_p_state.style.backgroundColor  = "" 
	   }
	   if(document.user_reg_form1.p_city.value=='Other')
	   {
	   document.user_reg_form1.other_p_city.style.backgroundColor  = ""  
	   }
	}
	with(document.user_reg_form1)
	{
		p_address1.disabled=flag;
		p_address2.disabled=flag;
		p_city.disabled=flag;
		p_district.disabled=flag;
		p_state.disabled=flag;
		p_country.disabled=flag;
		p_zipcode.disabled=flag;
	   if(document.user_reg_form1.p_country.value=='C_P_Other')
	   {
		other_p_country.disabled=flag;
	   }
	   if(document.user_reg_form1.p_state.value=='Other')
	   {
		other_p_state.disabled=flag;
	   }
	   if(document.user_reg_form1.p_city.value=='Other')
	   {
		other_p_city.disabled=flag;
	   }
	}
	
}

function fun1()
{
	user_reg_form1.no_child.disabled=true;
   document.user_reg_form1.no_child.style.backgroundColor = ""
}

function fun2()
{
	user_reg_form1.no_child.disabled=false;
   document.user_reg_form1.no_child.style.backgroundColor = ""
}





function Check_reg()
{
   if (document.user_reg_form1.first_name.value== "" )
    {
		alert ( "You have not entered your first name" );
		document.user_reg_form1.first_name.focus();
		document.user_reg_form1.first_name.style.backgroundColor = "#FFFFC6"  
		return (false);
    }
	
	if ( document.user_reg_form1.last_name.value == "" )
    {
        alert ( "You have not entered your last name" );
		document.user_reg_form1.last_name.focus();
	   	document.user_reg_form1.last_name.style.backgroundColor = "#FFFFC6"  
        return (false);
    }
	if ( document.user_reg_form1.email.value == "" )
    {
        alert ( "You have not entered your email ID" );
		document.user_reg_form1.email.focus();
	   	document.user_reg_form1.email.style.backgroundColor = "#FFFFC6"  
        return (false);
    }
	if ( document.user_reg_form1.qualification.value == "" )
    {
        alert ( "You have not entered your Highest Qualification" );
		document.user_reg_form1.qualification.focus();
	   	document.user_reg_form1.qualification.style.backgroundColor = "#FFFFC6"  
        return (false);
    }
	
	if(document.user_reg_form1.branch.value == "")
	{
		alert("Pls select your branch") ;
		document.user_reg_form1.branch.focus();
		document.user_reg_form1.branch.style.backgroundColor ="#FFFFC6"
		return (false);
		
	}	
	
	if ( document.user_reg_form1.father_name.value == "" )
    {
        alert ( "You have not entered your Father Name" );
		document.user_reg_form1.father_name.focus();
	   	document.user_reg_form1.father_name.style.backgroundColor = "#FFFFC6"  
        return (false);
    }
	if ( document.user_reg_form1.mother_name.value == "" )
    {
        alert ( "You have not entered your Mother Name" );
		document.user_reg_form1.mother_name.focus();
	   	document.user_reg_form1.mother_name.style.backgroundColor = "#FFFFC6"  
        return (false);
    }
	if ( document.user_reg_form1.f_occupation.value == "" )
    {
        alert ( "You have not entered your Father Occupation" );
		document.user_reg_form1.f_occupation.focus();
	   	document.user_reg_form1.f_occupation.style.backgroundColor = "#FFFFC6"  
        return (false);
    }
	if ( document.user_reg_form1.f_income.value == "" )
    {
        alert ( "You have not entered your Father Income" );
		document.user_reg_form1.f_income.focus();
	   	document.user_reg_form1.f_income.style.backgroundColor = "#FFFFC6"  
        return (false);
    }
	
	if ( document.user_reg_form1.sslc_year.value == "" )
    {
        alert ( "You have not entered your SSLC year" );
		document.user_reg_form1.sslc_year.focus();
	   	document.user_reg_form1.sslc_year.style.backgroundColor = "#FFFFC6"  
        return (false);
    }
	if ( document.user_reg_form1.sslc_percentage.value == "" )
    {
        alert ( "You have not entered your SSLC Percentage" );
		document.user_reg_form1.sslc_percentage.focus();
	   	document.user_reg_form1.sslc_percentage.style.backgroundColor = "#FFFFC6"  
        return (false);
    }
	if ( document.user_reg_form1.puc_year.value == "" )
    {
        alert ( "You have not entered your Plus Two year" );
		document.user_reg_form1.puc_year.focus();
	   	document.user_reg_form1.puc_year.style.backgroundColor = "#FFFFC6"  
        return (false);
    }
	if ( document.user_reg_form1.puc_percentage.value == "" )
    {
        alert ( "You have not entered your Plus two percentage" );
		document.user_reg_form1.puc_percentage.focus();
	   	document.user_reg_form1.puc_percentage.backgroundColor = "#FFFFC6"  
        return (false);
    }
	if ( document.user_reg_form1.gradu_year.value == "" )
    {
        alert ( "You have not entered your graduation year of passing" );
		document.user_reg_form1.gradu_year.focus();
	   	document.user_reg_form1.gradu_year.style.backgroundColor = "#FFFFC6"  
        return (false);
    }
	if ( document.user_reg_form1.gradu_percentage.value == "" )
    {
        alert ( "You have not entered your graduation Percentage" );
		document.user_reg_form1.gradu_percentage.focus();
	   	document.user_reg_form1.gradu_percentage.style.backgroundColor = "#FFFFC6"  
        return (false);
    }
	if ( document.user_reg_form1.area_of_interest.value == "" )
    {
        alert ( "Please select Your Area of interest" );
		document.user_reg_form1.area_of_interest.focus();
	   	document.user_reg_form1.area_of_interest.style.backgroundColor = "#FFFFC6"  
        return (false);
    }
	
	
	
	
	if ( document.user_reg_form1.language.value == "" )
    {
        alert ( "Please select language" );
		document.user_reg_form1.language.focus();
	   	document.user_reg_form1.language.style.backgroundColor = "#FFFFC6"  
        return (false);
    }
	
	
	
	
	
	if ( document.user_reg_form1.p_address1.value == "" )
    {
        alert ( "Please select Permanent Address line1" );
		document.user_reg_form1.p_address1.focus();
	   	document.user_reg_form1.p_address1.style.backgroundColor = "#FFFFC6"  
        return (false);
    }
	
	if ( document.user_reg_form1.p_state.value == "" )
    {
        alert ( "Please select Permanent State" );
		document.user_reg_form1.p_state.focus();
	   	document.user_reg_form1.p_state.style.backgroundColor = "#FFFFC6"  
        return (false);
    }
	
	if ( document.user_reg_form1.p_city.value == "" )
    {
        alert ( "Please select Permanent city / town" );
		document.user_reg_form1.p_city.focus();
	   	document.user_reg_form1.p_city.style.backgroundColor = "#FFFFC6"  
        return (false);
    }
		
		if ( document.user_reg_form1.mobile_no.value == "" )
    {
        alert ( "Please Enter your Mobile number" );
		document.user_reg_form1.mobile_no.focus();
	   	document.user_reg_form1.mobile_no.style.backgroundColor = "#FFFFC6"  
        return (false);
    }
		
		
	if ( document.user_reg_form1.re_password.value == "" )
    {
        alert ( "You have not entered your repassword" );
		document.user_reg_form1.re_password.focus();
	   	document.user_reg_form1.re_password.style.backgroundColor = "#FFFFC6"  
        return (false);
    }
	if ( document.user_reg_form1.re_password.value != document.user_reg_form1.password.value )
    {
        alert ( "You repassword value is not same as password value" );
		document.user_reg_form1.re_password.focus();
	   	document.user_reg_form1.password.style.backgroundColor = "#FFFFC6"  
	   	document.user_reg_form1.re_password.style.backgroundColor = "#FFFFC6"  
        return (false);
    }
	
	if ( document.user_reg_form1.dob1.value == "" )
    {
        alert ( "You have not entered your date of birth" );
		document.user_reg_form1.dob1.focus();
	   	document.user_reg_form1.dob1.style.backgroundColor = "#FFFFC6"  
        return (false);
    }

	if ( document.user_reg_form1.p_address1.value == "" )
    {
        alert ( "You have not entered your  Correspondence Address Line1" );
		document.user_reg_form1.p_address1.focus();
	   	document.user_reg_form1.p_address1.style.backgroundColor = "#FFFFC6"  
        return (false);
    }
	
	
	
	if ( document.user_reg_form1.corr_country.value == "" )
    {
        alert ( "You have not Selected your correspondence country" );
		document.user_reg_form1.corr_country.focus();
	   	document.user_reg_form1.corr_country.style.backgroundColor = "#FFFFC6"  
        return (false);
    }
	
	if ( document.user_reg_form1.corr_country.value == "C_Other" )
    {
		if(document.user_reg_form1.other_country.value == "")
		{
        alert ( "Please entered your correspondence country" );
		document.user_reg_form1.other_country.focus();
	   	document.user_reg_form1.other_country.style.backgroundColor = "#FFFFC6"  
        return (false);
		
		}
    }
	
	if ( document.user_reg_form1.corr_state.value == "" )
    {
        alert ( "You have not Selected your correspondence State" );
		document.user_reg_form1.corr_state.focus();
	   	document.user_reg_form1.corr_state.style.backgroundColor = "#FFFFC6"  
        return (false);
    }
	
	if ( document.user_reg_form1.corr_state.value == "Other" )
    {
		if(document.user_reg_form1.other_state.value == "")
		{
        alert ( "Please enter your correspondence State" );
		document.user_reg_form1.other_state.focus();
	   	document.user_reg_form1.other_state.style.backgroundColor = "#FFFFC6"  
        return (false);
		}
    }

   
	if ( document.user_reg_form1.corr_city_town.value == "" )
    {
        alert ( "You have not Selected your correspondence city town" );
		document.user_reg_form1.corr_city_town.focus();
	   	document.user_reg_form1.corr_city_town.style.backgroundColor = "#FFFFC6"  
        return (false);
    }
	
	if ( document.user_reg_form1.corr_city_town.value == "Other" )
    {
		if(document.user_reg_form1.other_city.value == "")
		{
        alert ( "Please enter your correspondence city town" );
		document.user_reg_form1.other_city.focus();
	   	document.user_reg_form1.other_city.style.backgroundColor = "#FFFFC6"  
        return (false);
		}
    }



//if (document.user_reg_form1.p_address1.disabled==false)
	//{
		if ( document.user_reg_form1.p_address1.value == "" )
    	{
        	alert ( "You have not entered your permanent Address Line1." );
			document.user_reg_form1.p_address1.focus();
	   		document.user_reg_form1.p_address1.style.backgroundColor = "#FFFFC6"  
        	return (false);
    	}
	//}
	
	
	if (document.user_reg_form1.p_country.disabled==false)
	{
		if ( document.user_reg_form1.p_country.value == "" )
    	{
        	alert ( "You have not Selected your permanent country" );
			document.user_reg_form1.p_country.focus();
	   		document.user_reg_form1.p_country.style.backgroundColor = "#FFFFC6"  
        	return (false);
    	}
	}
	
	if ( document.user_reg_form1.p_country.value == "C_P_Other" )
    {
		if ((document.user_reg_form1.other_p_country.disabled==false)&&(document.user_reg_form1.p_country.disabled==false))
		{
			if( document.user_reg_form1.other_p_country.value == "" )
			{
        	alert ( "Please entered your permanent country" );
			document.user_reg_form1.other_p_country.focus();
	   		document.user_reg_form1.other_p_country.style.backgroundColor = "#FFFFC6"  
        	return (false);
			}
    	}
	}
	
	if (document.user_reg_form1.p_state.disabled==false)
	{
		if ( document.user_reg_form1.p_state.value == "" )
    	{
        	alert ( "You have not Selected your permanent State" );
			document.user_reg_form1.p_state.focus();
	   		document.user_reg_form1.p_state.style.backgroundColor = "#FFFFC6"  
        	return (false);
    	}
	}
	
	if (document.user_reg_form1.p_state.value == "Other")
	{
		if (document.user_reg_form1.other_p_state.disabled==false)
		{
			if ( document.user_reg_form1.other_p_state.value == "" )
    		{
        	alert ( "Please entered your permanent State" );
			document.user_reg_form1.other_p_state.focus();
	   		document.user_reg_form1.other_p_state.style.backgroundColor = "#FFFFC6"  
        	return (false);
			}
    	}
	}
	
	
	if (document.user_reg_form1.p_city.disabled==false)
	{
		if ( document.user_reg_form1.p_city.value == "" )
    	{
        	alert ( "You have not Selected your permanent city town" );
			document.user_reg_form1.p_city.focus();
	   		document.user_reg_form1.p_city.style.backgroundColor = "#FFFFC6"  
        	return (false);
    	}
	}

	if ( document.user_reg_form1.p_city.value == "Other" )
	{
		if (document.user_reg_form1.other_p_city.disabled==false)
    	{
			if ( document.user_reg_form1.other_p_city.value == "" )
    		{
        	alert ( "Please entered your permanent city town" );
			document.user_reg_form1.other_p_city.focus();
	   		document.user_reg_form1.other_p_city.style.backgroundColor = "#FFFFC6"  
        	return (false);
			}
    	}
	}




	if( document.user_reg_form1.res_tel_no.value == "")
		{
			if( document.user_reg_form1.off_tel_no.value == "")
				{
					if( document.user_reg_form1.mobile_no.value == "")
						{	
							alert ( "Please Enter Any one Contact Number (Either Res-Telephone/Off-Telephone/Mobile)" );
							document.user_reg_form1.mobile_no.focus();
							document.user_reg_form1.res_tel_no.style.backgroundColor = "#FFFFC6" 
							document.user_reg_form1.off_tel_no.style.backgroundColor = "#FFFFC6" 
							document.user_reg_form1.mobile_no.style.backgroundColor = "#FFFFC6" 
							return (false);
						}
				}

		
		}
		

		if ( document.user_reg_form1.sslc_year.value == "" )
    	{
        	alert ( "You have not Selected the SSLC Year" );
			document.user_reg_form1.sslc_year.focus();
	   		document.user_reg_form1.sslc_year.style.backgroundColor = "#FFFFC6"  
        	return (false);
    	}
		
		if ( document.user_reg_form1.current_industry.value == "" )
    	{
        	alert ( "You have not Selected Your Current Industry" );
			document.user_reg_form1.current_industry.focus();
	   		document.user_reg_form1.current_industry.style.backgroundColor = "#FFFFC6"  
        	return (false);
    	}

	
		if ( document.user_reg_form1.lcs_source.value == "" )
    	{
        	alert ( "You have not Selected LCS Source" );
			document.user_reg_form1.lcs_source.focus();
	   		document.user_reg_form1.lcs_source.style.backgroundColor = "#FFFFC6"  
        	return (false);
    	}
		
		
		if ( document.user_reg_form1.source_name.value == "" )
    	{
        	alert ( "You have not entered Source Name" );
			document.user_reg_form1.source_name.focus();
	   		document.user_reg_form1.source_name.style.backgroundColor = "#FFFFC6"  
        	return (false);
    	}
		
		if ( document.user_reg_form1.resume_title.value == "" )
    	{
        	alert ( "You have not entered Resume Tile" );
			document.user_reg_form1.resume_title.focus();
	   		document.user_reg_form1.resume_title.style.backgroundColor = "#FFFFC6"  
        	return (false);
    	}
	   	if(document.user_reg_form1.u_resume.value == "")
		{
        	alert ( "You have not uploaded your Resume" );
			document.user_reg_form1.u_resume.focus();
	   		document.user_reg_form1.u_resume.style.backgroundColor = "#FFFFC6"  
        	return (false);
			//var fso = new ActiveXObject("Scripting.FileSystemObject");
		 	//fileBool = fso.FileExists("");
		}
	
    return (true);
}

//---------------------email_id_validation---------------------------------------//

 function validate_email_id()
   {
    if (! isValidEmail(document.forms[0].email.value)) {
        alert("Please enter a valid email address");
		document.user_reg_form1.email.focus();
	   	document.user_reg_form1.email.style.backgroundColor = "#FFFFC6"  
        return false;
    }
    return true;
  }


 function forum_email_id()
   {
    if (! isValidEmail(document.forms[0].user_name.value)) {
        alert("Please enter a valid email address");
		document.forum_user_reg.user_name.focus();
	   	document.forum_user_reg.user_name.style.backgroundColor = "#FFFFC6"  
        return false;
    }
    return true;
  }





function isValidEmail(email, required) {
    if (required==undefined) {   // if not specified, assume it's required
        required=true;
    }
    if (email==null) {
        if (required) {
            return false;
        }
        return true;
    }
    if (email.length==0) {  
        if (required) {
            return false;
        }
        return true;
    }
    if (! allValidChars(email)) {  // check to make sure all characters are valid
        return false;
    }
    if (email.indexOf("@") < 1) { //  must contain @, and it must not be the first character
        return false;
    } else if (email.lastIndexOf(".") <= email.indexOf("@")) {  // last dot must be after the @
        return false;
    } else if (email.indexOf("@") == email.length) {  // @ must not be the last character
        return false;
    } else if (email.indexOf("..") >=0) { // two periods in a row is not valid
	return false;
    } else if (email.indexOf(".") == email.length) {  // . must not be the last character
	return false;
    }
    return true;
}

function allValidChars(email) {
  var parsed = true;
  var validchars = "abcdefghijklmnopqrstuvwxyz0123456789@.-_";
  for (var i=0; i < email.length; i++) {
    var letter = email.charAt(i).toLowerCase();
    if (validchars.indexOf(letter) != -1)
      continue;
    parsed = false;
    break;
  }
  return parsed;
}
//---------------------------------------------------------------------------------//

//---------------------check of numeric value--------------------------------------//
function maskKeyPress(objEvent) 
     {
       var iKeyCode;       
       iKeyCode = objEvent.keyCode;               

       // only allow numbers and the minus keys to be entered
       if (iKeyCode>=45 && iKeyCode<=57) {
          return true;

       }
       else
          return false;
     }

     function finalCheck()
     {
                // This final check occurs when then leave the textbox, it ensures that it is an integer
     if (isNaN(parseInt(window.event.srcElement.value))) {
          window.event.srcElement.value = "";

        } else {
          window.event.srcElement.value = parseInt(window.event.srcElement.value);
        }
     }
//--------------------------------------------------------------------------------//

//---------------------------------------------end_of_user_reg_form-----------------------------------------//
