/*
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//	Project Name		: 	SteelExchangeIndia 								//
//  	File Name		:	states.js									//
//  	Author Name		: 	--										//
//	Date			: 	13/03/2001									//
// 	Purpose			: 	To populate states for the selected city					//
// 	Required Tables		:	NA										//
//	Last Modified by  	:     	Kiran Tatineni                     						//
//      Last checked by         :     	--		                                				//
//      Revision Number         :     	1.1                                       					//
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
*/

function getcity()
{
var state

state = document.form1.state.options[document.form1.state.selectedIndex].value

if (state == "Andhra Pradesh")
{
	document.form1.city.length = 20;
        document.form1.city.options[1] = new Option('Anakapalli','Anakapalli');
	document.form1.city.options[2] = new Option('Anantapur','Anantapur');
        document.form1.city.options[3] = new Option('Chittor','Chittor');
        document.form1.city.options[4] = new Option('Cuddapah','Cuddapah');
        document.form1.city.options[5] = new Option('Gudivada','Gudivada');
        document.form1.city.options[6] = new Option('Hindupur','Hindupur');
        document.form1.city.options[7] = new Option('Hyderabad','Hyderabad');
	document.form1.city.options[8] = new Option('Kakinada','Kakinada');
	document.form1.city.options[9] = new Option('Kammam','Kammam');
	document.form1.city.options[10] = new Option('Medak','Medak');
	document.form1.city.options[11] = new Option('Nalgonda','Nalgonda');
	document.form1.city.options[12] = new Option('Nellore','Nellore');
	document.form1.city.options[13] = new Option('Nizamabad','Nizamabad');
	document.form1.city.options[14] = new Option('Ongole','Ongole');
	document.form1.city.options[15] = new Option('Rajahmundry','Rajahmundry');
	document.form1.city.options[16] = new Option('Secunderabad','Secunderabad');
	document.form1.city.options[17] = new Option('Srikakulam','Srikakulam');
	document.form1.city.options[18] = new Option('Tirupati','Tirupati');
	document.form1.city.options[19] = new Option('Vijayawada','Vijayawada');
	document.form1.city.options[20] = new Option('Visakhapatnam','Visakhapatnam');
	document.form1.city.options[21] = new Option('Others','Others');
}

if (state == "ArunachalPradesh")
{
	document.form1.city.length = 1;

        document.form1.city.options[1] = new Option('Itanagar','Itanagar');
	document.form1.city.options[2] = new Option('Others','Others');

}

if (state == "AndamanNicobarIslands")
{
	document.form1.city.length = 3;

        document.form1.city.options[1] = new Option('Hindustan Nagar','HindustanNagar');
        document.form1.city.options[2] = new Option('Shamshabad','Shamshabad');
	document.form1.city.options[3] = new Option('Others','Others');

}

if (state == "Assam")
{
	document.form1.city.length = 7;
        document.form1.city.options[1] = new Option('Guwahati','Guwahati');
        document.form1.city.options[2] = new Option('Dispur','Dispur');
	document.form1.city.options[3] = new Option('Dibrugarh','Dibrugarh');
 	document.form1.city.options[4] = new Option('Jorhat','Jorhat');
 	document.form1.city.options[5] = new Option('Siliguri','Siliguri');
 	document.form1.city.options[6] = new Option('Tinsukia','Tinsukia');
	document.form1.city.options[7] = new Option('Others','Others');

}

if (state == "Bihar")
{
	document.form1.city.length = 5;

        document.form1.city.options[1] = new Option('Gaya','Gaya');
        document.form1.city.options[2] = new Option('Jamshedpur','Jamshedpur');
	document.form1.city.options[3] = new Option('Patna','Patna');
 	document.form1.city.options[4] = new Option('Ranchi','Ranchi');
	document.form1.city.options[5] = new Option('Others','Others');

}

if (state == "DadarNagarHaveli")
{
	document.form1.city.length = 2;

        document.form1.city.options[1] = new Option('Dadar Nagar Haveli','DadarNagarHaveli');
       	document.form1.city.options[2] = new Option('Others','Others');

}

if (state == "Delhi")
{
	document.form1.city.length = 2;

        document.form1.city.options[1] = new Option('Delhi','Delhi');
       	document.form1.city.options[2] = new Option('Others','Others');

}

if (state == "Daman")
{
	document.form1.city.length = 2;

        document.form1.city.options[1] = new Option('Daman & Diu','Daman');
       	document.form1.city.options[2] = new Option('Others','Others');

}

if (state == "Goa")
{
	document.form1.city.length = 2;

        document.form1.city.options[1] = new Option('Panaji','Panaji');
       	document.form1.city.options[2] = new Option('Others','Others');

}


if (state == "Gujarat")
{
	document.form1.city.length = 8;

        document.form1.city.options[1] = new Option('Ahmedabad','Ahmedabad');
        document.form1.city.options[2] = new Option('Bhavanagar','Bhavanagar');
        document.form1.city.options[3] = new Option('GandhiNagar','GandhiNagar');
        document.form1.city.options[4] = new Option('Jamnagar','Jamnagar');
        document.form1.city.options[5] = new Option('Rajkot','Rajkot');
        document.form1.city.options[6] = new Option('Surat','Surat');
        document.form1.city.options[7] = new Option('Vadodara','Vadodara');
        document.form1.city.options[8] = new Option('Others','Others');

}

   
if (state == "Haryana")
{
	document.form1.city.length = 7;

        document.form1.city.options[1] = new Option('Amritsar','Amritsar');
        document.form1.city.options[2] = new Option('Chandigarh','Chandigarh');
        document.form1.city.options[3] = new Option('Jalandhar','Jalandhar');
        document.form1.city.options[4] = new Option('Ludhiana','Ludhiana');
        document.form1.city.options[5] = new Option('Pathankot','Pathankot');
        document.form1.city.options[6] = new Option('Patiala','Patiala');
        document.form1.city.options[7] = new Option('Others','Others');

}

if (state == "Haryana")
{
	document.form1.city.length = 7;

        document.form1.city.options[1] = new Option('Amritsar','Amritsar');
        document.form1.city.options[2] = new Option('Chandigarh','Chandigarh');
        document.form1.city.options[3] = new Option('Jalandhar','Jalandhar');
        document.form1.city.options[4] = new Option('Ludhiana','Ludhiana');
        document.form1.city.options[5] = new Option('Pathankot','Pathankot');
        document.form1.city.options[6] = new Option('Patiala','Patiala');
        document.form1.city.options[7] = new Option('Others','Others');

}
	
if (state == "HimachalPradesh")
{
	document.form1.city.length = 5;

        document.form1.city.options[1] = new Option('Dharmasala','Dharmasala');
        document.form1.city.options[2] = new Option('Kangra','Kangra');
        document.form1.city.options[3] = new Option('Kulur','Kulu');
        document.form1.city.options[4] = new Option('Shimla','Shimla');
        document.form1.city.options[5] = new Option('Others','Others');

}

if (state == "JammuKashmir")
{
	document.form1.city.length = 2;

        document.form1.city.options[1] = new Option('Srinagar','Srinagar');
        document.form1.city.options[2] = new Option('Others','Others');

}

if (state == "Karnataka")
{
	document.form1.city.length = 6;

        document.form1.city.options[1] = new Option('Bangalore','Bangalore');
        document.form1.city.options[2] = new Option('Belgaum','Belgaum');
        document.form1.city.options[3] = new Option('Hubli','Hubli');
        document.form1.city.options[4] = new Option('Mangalore','Mangalore');
        document.form1.city.options[5] = new Option('Mysore','Mysore');
        document.form1.city.options[6] = new Option('Others','Others');

}


if (state == "Kerala")
{
	document.form1.city.length = 5;

        document.form1.city.options[1] = new Option('Cochin','Cochin');
        document.form1.city.options[2] = new Option('Kozhikode','Kozhikode');
        document.form1.city.options[3] = new Option('Quilon','Quilon');
        document.form1.city.options[4] = new Option('Trivandrum','Trivandrum');
        document.form1.city.options[5] = new Option('Others','Others');

}

if (state == "Lakhsyadeep")
{
	document.form1.city.length = 2;

        document.form1.city.options[1] = new Option('Lakhsyadeep','Lakhsyadeep');
        document.form1.city.options[2] = new Option('Others','Others');

}

if (state == "MadhyaPradesh")
{
	document.form1.city.length = 7;

        document.form1.city.options[1] = new Option('Bhopal','Bhopal');
        document.form1.city.options[2] = new Option('Gwalior','Gwalior');
        document.form1.city.options[3] = new Option('Indore','Indore');
        document.form1.city.options[4] = new Option('Jabalpur','Jabalpur');
        document.form1.city.options[5] = new Option('Khajuraho','Khajuraho');
        document.form1.city.options[6] = new Option('Raipur','Raipur');
        document.form1.city.options[7] = new Option('Others','Others');

}


if (state == "Maharashtra")
{
	document.form1.city.length = 5;

        document.form1.city.options[1] = new Option('Aurangabad','Aurangabad');
        document.form1.city.options[2] = new Option('Mumbai','Mumbai');
        document.form1.city.options[3] = new Option('Nagpur','Nagpur');
        document.form1.city.options[4] = new Option('Pune','Pune');
        document.form1.city.options[5] = new Option('Others','Others');

}

if (state == "Manipur")
{
	document.form1.city.length = 2;

        document.form1.city.options[1] = new Option('Imphal','Imphal');
        document.form1.city.options[2] = new Option('Others','Others');

}

if (state == "Meghalaya")
{
	document.form1.city.length = 2;

        document.form1.city.options[1] = new Option('Shillong','Shillong');
        document.form1.city.options[2] = new Option('Others','Others');

}

if (state == "Mizoram")
{
	document.form1.city.length = 2;

        document.form1.city.options[1] = new Option('Aizawal','Aizawal');
        document.form1.city.options[2] = new Option('Others','Others');

}

if (state == "Nagaland")
{
	document.form1.city.length = 2;

        document.form1.city.options[1] = new Option('Kohima','Kohima');
        document.form1.city.options[2] = new Option('Others','Others');
}

if (state == "Orissa")
{
	document.form1.city.length = 4;

        document.form1.city.options[1] = new Option('Bhubaneswar','Bhubaneswar');
        document.form1.city.options[2] = new Option('Cuttack','Cuttack');
        document.form1.city.options[3] = new Option('Puri','Puri');
        document.form1.city.options[4] = new Option('Others','Others');
}


if (state == "Pondicherry")
{
	document.form1.city.length = 2;

        document.form1.city.options[1] = new Option('Pondicherry','Pondicherry');
        document.form1.city.options[2] = new Option('Others','Others');
}

if (state == "Punjab")
{
	document.form1.city.length = 7;

        document.form1.city.options[1] = new Option('Amritsar','Amritsar');
        document.form1.city.options[2] = new Option('Chandigarh','Chandigarh');
        document.form1.city.options[3] = new Option('Jalandhar','Jalandhar');
        document.form1.city.options[4] = new Option('Ludhiana','Ludhiana');
        document.form1.city.options[5] = new Option('Pathankot','Pathankot');
        document.form1.city.options[6] = new Option('Patiala','Patiala');
        document.form1.city.options[7] = new Option('Others','Others');
}

if (state == "Rajasthan")
{
	document.form1.city.length = 8;

        document.form1.city.options[1] = new Option('Ajmer','Ajmer');
        document.form1.city.options[2] = new Option('Alwar','Alwar');
        document.form1.city.options[3] = new Option('Bikaner','Bikaner');
        document.form1.city.options[4] = new Option('Jaipur','Jaipur');
        document.form1.city.options[5] = new Option('Jodhpur','Jodhpur');
        document.form1.city.options[6] = new Option('Kota','Kota');
        document.form1.city.options[7] = new Option('Udaipur','Udaipur');
        document.form1.city.options[8] = new Option('Others','Others');
}

if (state == "Sikkim")
{
	document.form1.city.length = 2;

        document.form1.city.options[1] = new Option('Gangtok','Gangtok');
        document.form1.city.options[2] = new Option('Others','Others');
}

if (state == "Tamilnadu")
{
	document.form1.city.length = 6;

        document.form1.city.options[1] = new Option('Chennai','Chennai');
        document.form1.city.options[2] = new Option('Coimbatore','Coimbatore');
        document.form1.city.options[3] = new Option('Madurai','Madurai');
        document.form1.city.options[4] = new Option('Salem','Salem');
        document.form1.city.options[5] = new Option('Trichy','Trichy');
        document.form1.city.options[6] = new Option('Others','Others');
}

if (state == "Tripura")
{
	document.form1.city.length = 2;

        document.form1.city.options[1] = new Option('Agartala','Agartala');
        document.form1.city.options[2] = new Option('Others','Others');
}


if (state == "UttarPradesh")
{
	document.form1.city.length = 11;

        document.form1.city.options[1] = new Option('Agra','Agra');
        document.form1.city.options[2] = new Option('Allahabad','Allahabad');
        document.form1.city.options[3] = new Option('Aligarh','Aligarh');
        document.form1.city.options[4] = new Option('Bareilly','Bareilly');
        document.form1.city.options[5] = new Option('Dehradun','Dehradun');
        document.form1.city.options[6] = new Option('Kanpur','Kanpur');
        document.form1.city.options[7] = new Option('Lucknow','Lucknow');
        document.form1.city.options[8] = new Option('Mathura','Mathura');
        document.form1.city.options[9] = new Option('Meerut','Meerut');
        document.form1.city.options[10] = new Option('Varnasi','Varnasi');
        document.form1.city.options[11] = new Option('Others','Others');
}

if (state == "WestBengal")
{
	document.form1.city.length = 4;

        document.form1.city.options[1] = new Option('Kolkata','Kolkata');
        document.form1.city.options[2] = new Option('Darjeeling','Darjeeling');
        document.form1.city.options[3] = new Option('Kharagpur','Kharagpur');
        document.form1.city.options[4] = new Option('Others','Others');
}


if (state == "Chattisgarh")
{
	document.form1.city.length = 15;

        document.form1.city.options[1] = new Option('Bastar','Bastar');
        document.form1.city.options[2] = new Option('Bilaspur','Bilaspur');
        document.form1.city.options[3] = new Option('Dantewada','Dantewada');
        document.form1.city.options[4] = new Option('Dhamtari','Dhamtari');
        document.form1.city.options[5] = new Option('Durg','Durg');
        document.form1.city.options[6] = new Option('Janjgir','Janjgir');
        document.form1.city.options[7] = new Option('Jashpur','Jashpur');
        document.form1.city.options[8] = new Option('Kanker','Kanker');
        document.form1.city.options[9] = new Option('Kawardha','Kawardha');
        document.form1.city.options[10] = new Option('Korba','Korba');
        document.form1.city.options[11] = new Option('Koriya','Koriya');
        document.form1.city.options[12] = new Option('Raigarh','Raigarh');
        document.form1.city.options[13] = new Option('Raipur','Raipur');
        document.form1.city.options[14] = new Option('Rajnandgaon','Rajnandgaon');
        document.form1.city.options[15] = new Option('Surguja','Surguja');

}


if (state == "Jharkand")
{
	document.form1.city.length = 18;

        document.form1.city.options[1] = new Option('Bokaro','Bokaro');
        document.form1.city.options[2] = new Option('Chatra','Chatra');
        document.form1.city.options[3] = new Option('Deogarh','Deogarh');
        document.form1.city.options[4] = new Option('Dhanbad','Dhanbad');
        document.form1.city.options[5] = new Option('Dumka','Dumka');
        document.form1.city.options[6] = new Option('East Singhbhum','EastSinghbhum');
        document.form1.city.options[7] = new Option('Garhwa','Garhwa');
        document.form1.city.options[8] = new Option('Giridih','Giridih');
        document.form1.city.options[9] = new Option('Godda','Godda');
        document.form1.city.options[10] = new Option('Gumla','Gumla');
        document.form1.city.options[11] = new Option('Hazaribagh','Hazaribagh');
        document.form1.city.options[12] = new Option('Koderma','Koderma');
        document.form1.city.options[13] = new Option('Lohardaga','Lohardaga');
        document.form1.city.options[14] = new Option('Pakaur','Pakaur');
        document.form1.city.options[15] = new Option('Palamau','Palamau');
        document.form1.city.options[16] = new Option('Ranchi','Ranchi');
        document.form1.city.options[17] = new Option('Sahibgani','Sahibgani');
        document.form1.city.options[18] = new Option('West Singhbhum','WestSinghbhum');

}

if (state == "Uttaranchal")
{
	document.form1.city.length = 13;

        document.form1.city.options[1] = new Option('Almora','Almora');
        document.form1.city.options[2] = new Option('Bagheshwar','Bagheshwar');
        document.form1.city.options[3] = new Option('Chamoli','Chamoli');
        document.form1.city.options[4] = new Option('Champawath','Champawath');
        document.form1.city.options[5] = new Option('Dehradun','Dehradun');
        document.form1.city.options[6] = new Option('Haridwar','Haridwar');
        document.form1.city.options[7] = new Option('Nainital','Nainital');
        document.form1.city.options[8] = new Option('Pauri','Pauri');
        document.form1.city.options[9] = new Option('Pithoragarh','Pithoragarh');
        document.form1.city.options[10] = new Option('Rudra Prayag','RudraPrayag');
        document.form1.city.options[11] = new Option('Tehri Gharwal','TehriGharwal');
        document.form1.city.options[12] = new Option('Udham Singh Nagar','UdhamSinghNagar');
        document.form1.city.options[13] = new Option('Uttarakshi','Uttarakshi');
}

}
