ANDHRAPRADESH= new Array("AMEERPET","HYDERABAD")

ASSAM= new Array("DIBUGARH","DIGBOI","DIMAPUR","DULIANJAAN","GUWAHATI","JORHAT","NAZIRA","SHIVSAGAR","TINSUKIA")

BIHAR= new Array("MUZZAFARPUR")

CHATTISGARH= new Array("BHILLAI","BILASPUR","RAIPUR")

DELHI= new Array("DELHI","GURGOAN","HAUZ KHAS","NOIDA")

GOA= new Array("GOA","MAPUSA")

GUJARAT= new Array("AHMEDABAD","ANAND","BHARUCH","BILMORO","JAMNAGAR","MEHESANA","PORBANDAR","RAJKOT","SURAT","UDHANA","VADODARA")

HARYANA= new Array("GURGAON","YAMUNAGAR")

HIMACHALPRADESH= new Array()

JAMMUKASHMIR= new Array("JAMMU")

JHARKHAND= new Array("BOKARO","DALTONGANJ","JAMSHEDPUR","RANCHI")

KARNATAKA= new Array("BALLARY","BANAHATTI","BANGALORE","BELGAUM","DAVANGERE","DHARWAD","GULBARGA","HOSPET","HUBLI","KARWAR","KOLAR","KUNDAPUR","MANDYA","MANGALORE","MANGLORE","MYSORE","SHIMOGA","TUMKUR","UDUPI")

KERALA = new Array("KOCHI")

MADHYAPRADESH= new Array("BALAGHAT","BHOPAL","GWALIOR","INDORE","JABALPUR","RATLAM","UJJAIN ")

MAHARASHTRA= new Array("AHMEDNAGAR","AKOLA","AMARAVATI","AURANGABAD","BADLAPUR","BHUSAWAL","BULDHANA","DOMBIVALI","GONDIA","HINGHANGHAT","JALGAON","JALNA","KOLHAPUR","LATUR","MAHAD","MUMBAI","NAGPUR","NASIK","NAVI MUMBAI","Navi Mumbai","PALGHAR","PUNE","RATNAGIRI","SANGLI","SATARA","SOLAPUR","THANE","YAWATMAL")

MEGHALAYA= new Array("MAGHALAYA")

ORISSA= new Array("BARPETA","BHUBANESHWAR","CUTTAK")

PUNJAB= new Array()

RAJASTHAN= new Array("AJMER","ALWAR","BHAWANIMANDI","BHILWARA","BIKANER","GULABPURA","JAIPUR","JHUNJUNU","KAROLI","KHATIPURA","KISHANGANJ","KISHANGARH","KISHNAGAR","KOTA","MANSAROVAR","PILANI","RAMGANJMANDI","SHRIMADHOPUR","UDAIPUR")

TAMILNADU= new Array("CHENNI")

UTTARPRADESH= new Array("ALLAHABAD","DEORIA","FAIZABAD","FARUKHABAD","GORAKHPUR","LAKHIMPUR","LUCKNOW","MIRZAPUR","MUZZAFARNAGAR","RAIBARELI","SAHARANPUR","VARANASI")

UTTRANCHAL= new Array("DEHRADUN","HARIDWAR","RISHIKESH","ROORKEE")

WESTBENGAL= new Array("Dalhousie","HOOGLY","KOLKATA","PURULIA","SILIGURI","UTTARPARA ")

ANDHRAPRADESHURL = new Array("http://www.rathi.com/branches.asp?bid=1&cid=156","http://www.rathi.com/branches.asp?bid=1&cid=123")

ASSAMURL = new Array("http://www.rathi.com/branches.asp?bid=2&cid=1","http://www.rathi.com/branches.asp?bid=2&cid=2","http://www.rathi.com/branches.asp?bid=2&cid=3","http://www.rathi.com/branches.asp?bid=2&cid=4","http://www.rathi.com/branches.asp?bid=2&cid=5","http://www.rathi.com/branches.asp?bid=2&cid=6","http://www.rathi.com/branches.asp?bid=2&cid=7","http://www.rathi.com/branches.asp?bid=2&cid=8","http://www.rathi.com/branches.asp?bid=2&cid=9")

BIHARURL = new Array("http://www.rathi.com/branches.asp?bid=3&cid=68")

CHATTISGARHURL = new Array("http://www.rathi.com/branches.asp?bid=4&cid=91","http://www.rathi.com/branches.asp?bid=4&cid=10","http://www.rathi.com/branches.asp?bid=4&cid=11")

DELHIURL = new Array("http://www.rathi.com/branches.asp?bid=5&cid=12","http://www.rathi.com/branches.asp?bid=5&cid=73","http://www.rathi.com/branches.asp?bid=5&cid=75","http://www.rathi.com/branches.asp?bid=5&cid=74")

GOAURL = new Array("http://www.rathi.com/branches.asp?bid=6&cid=13","http://www.rathi.com/branches.asp?bid=6&cid=135")

GUJARATURL = new Array("http://www.rathi.com/branches.asp?bid=7&cid=14","http://www.rathi.com/branches.asp?bid=7&cid=96","http://www.rathi.com/branches.asp?bid=7&cid=97","http://www.rathi.com/branches.asp?bid=7&cid=146","http://www.rathi.com/branches.asp?bid=7&cid=148","http://www.rathi.com/branches.asp?bid=7&cid=137","http://www.rathi.com/branches.asp?bid=7&cid=145","http://www.rathi.com/branches.asp?bid=7&cid=15","http://www.rathi.com/branches.asp?bid=7&cid=98","http://www.rathi.com/branches.asp?bid=7&cid=147","http://www.rathi.com/branches.asp?bid=7&cid=16")

HARYANAURL = new Array("http://www.rathi.com/branches.asp?bid=8&cid=122","http://www.rathi.com/branches.asp?bid=8&cid=17")

HIMACHALPRADESHURL = new Array()

JAMMUKASHMIRURL = new Array("http://www.rathi.com/branches.asp?bid=10&cid=155")

JHARKHANDURL = new Array("http://www.rathi.com/branches.asp?bid=11&cid=92","http://www.rathi.com/branches.asp?bid=11&cid=22","http://www.rathi.com/branches.asp?bid=11&cid=18","http://www.rathi.com/branches.asp?bid=11&cid=23")

KARNATAKAURL = new Array("http://www.rathi.com/branches.asp?bid=12&cid=95","http://www.rathi.com/branches.asp?bid=12&cid=153","http://www.rathi.com/branches.asp?bid=12&cid=24","http://www.rathi.com/branches.asp?bid=12&cid=72","http://www.rathi.com/branches.asp?bid=12&cid=103","http://www.rathi.com/branches.asp?bid=12&cid=150","http://www.rathi.com/branches.asp?bid=12&cid=106","http://www.rathi.com/branches.asp?bid=12&cid=152","http://www.rathi.com/branches.asp?bid=12&cid=126","http://www.rathi.com/branches.asp?bid=12&cid=124","http://www.rathi.com/branches.asp?bid=12&cid=149","http://www.rathi.com/branches.asp?bid=12&cid=154","http://www.rathi.com/branches.asp?bid=12&cid=102","http://www.rathi.com/branches.asp?bid=12&cid=99","http://www.rathi.com/branches.asp?bid=12&cid=94","http://www.rathi.com/branches.asp?bid=12&cid=125","http://www.rathi.com/branches.asp?bid=12&cid=105","http://www.rathi.com/branches.asp?bid=12&cid=142","http://www.rathi.com/branches.asp?bid=12&cid=104")

KERALAURL = new Array("http://www.rathi.com/branches.asp?bid=13&cid=25")

MADHYAPRADESHURL = new Array("http://www.rathi.com/branches.asp?bid=14&cid=89","http://www.rathi.com/branches.asp?bid=14&cid=76","http://www.rathi.com/branches.asp?bid=14&cid=26","http://www.rathi.com/branches.asp?bid=14&cid=27","http://www.rathi.com/branches.asp?bid=14&cid=28","http://www.rathi.com/branches.asp?bid=14&cid=77","http://www.rathi.com/branches.asp?bid=14&cid=160")

MAHARASHTRAURL = new Array("http://www.rathi.com/branches.asp?bid=15&cid=29","http://www.rathi.com/branches.asp?bid=15&cid=30","http://www.rathi.com/branches.asp?bid=15&cid=85","http://www.rathi.com/branches.asp?bid=15&cid=83","http://www.rathi.com/branches.asp?bid=15&cid=84","http://www.rathi.com/branches.asp?bid=15&cid=163","http://www.rathi.com/branches.asp?bid=15&cid=87","http://www.rathi.com/branches.asp?bid=15&cid=164","http://www.rathi.com/branches.asp?bid=15&cid=90","http://www.rathi.com/branches.asp?bid=15&cid=86","http://www.rathi.com/branches.asp?bid=15&cid=166","http://www.rathi.com/branches.asp?bid=15&cid=167","http://www.rathi.com/branches.asp?bid=15&cid=82","http://www.rathi.com/branches.asp?bid=15&cid=31","http://www.rathi.com/branches.asp?bid=15&cid=144","http://www.rathi.com/branches.asp?bid=15&cid=32","http://www.rathi.com/branches.asp?bid=15&cid=33","http://www.rathi.com/branches.asp?bid=15&cid=81","http://www.rathi.com/branches.asp?bid=15&cid=139","http://www.rathi.com/branches.asp?bid=15&cid=168","http://www.rathi.com/branches.asp?bid=15&cid=108","http://www.rathi.com/branches.asp?bid=15&cid=34","http://www.rathi.com/branches.asp?bid=15&cid=35","http://www.rathi.com/branches.asp?bid=15&cid=36","http://www.rathi.com/branches.asp?bid=15&cid=109","http://www.rathi.com/branches.asp?bid=15&cid=37","http://www.rathi.com/branches.asp?bid=15&cid=165","http://www.rathi.com/branches.asp?bid=15&cid=88")

MEGHALAYAURL = new Array("http://www.rathi.com/branches.asp?bid=16&cid=67")

ORISSAURL = new Array("http://www.rathi.com/branches.asp?bid=17&cid=69","http://www.rathi.com/branches.asp?bid=17&cid=38","http://www.rathi.com/branches.asp?bid=17&cid=66")

PUNJABURL = new Array()

RAJASTHANURL = new Array("http://www.rathi.com/branches.asp?bid=19&cid=161","http://www.rathi.com/branches.asp?bid=19&cid=39","http://www.rathi.com/branches.asp?bid=19&cid=40","http://www.rathi.com/branches.asp?bid=19&cid=41","http://www.rathi.com/branches.asp?bid=19&cid=80","http://www.rathi.com/branches.asp?bid=19&cid=42","http://www.rathi.com/branches.asp?bid=19&cid=50","http://www.rathi.com/branches.asp?bid=19&cid=43","http://www.rathi.com/branches.asp?bid=19&cid=78","http://www.rathi.com/branches.asp?bid=19&cid=44","http://www.rathi.com/branches.asp?bid=19&cid=132","http://www.rathi.com/branches.asp?bid=19&cid=131","http://www.rathi.com/branches.asp?bid=19&cid=79","http://www.rathi.com/branches.asp?bid=19&cid=45","http://www.rathi.com/branches.asp?bid=19&cid=46","http://www.rathi.com/branches.asp?bid=19&cid=47","http://www.rathi.com/branches.asp?bid=19&cid=48","http://www.rathi.com/branches.asp?bid=19&cid=49","http://www.rathi.com/branches.asp?bid=19&cid=162")

TAMILNADUURL = new Array("http://www.rathi.com/branches.asp?bid=20&cid=51")

UTTARPRADESHURL = new Array("http://www.rathi.com/branches.asp?bid=21&cid=133","http://www.rathi.com/branches.asp?bid=21&cid=52","http://www.rathi.com/branches.asp?bid=21&cid=54","http://www.rathi.com/branches.asp?bid=21&cid=53","http://www.rathi.com/branches.asp?bid=21&cid=117","http://www.rathi.com/branches.asp?bid=21&cid=55","http://www.rathi.com/branches.asp?bid=21&cid=56","http://www.rathi.com/branches.asp?bid=21&cid=118","http://www.rathi.com/branches.asp?bid=21&cid=57","http://www.rathi.com/branches.asp?bid=21&cid=58","http://www.rathi.com/branches.asp?bid=21&cid=59","http://www.rathi.com/branches.asp?bid=21&cid=60")

UTTRANCHALURL = new Array("http://www.rathi.com/branches.asp?bid=22&cid=61","http://www.rathi.com/branches.asp?bid=22&cid=93","http://www.rathi.com/branches.asp?bid=22&cid=62","http://www.rathi.com/branches.asp?bid=22&cid=63")

WESTBENGALURL = new Array("http://www.rathi.com/branches.asp?bid=23&cid=151","http://www.rathi.com/branches.asp?bid=23&cid=159","http://www.rathi.com/branches.asp?bid=23&cid=64","http://www.rathi.com/branches.asp?bid=23&cid=157","http://www.rathi.com/branches.asp?bid=23&cid=65","http://www.rathi.com/branches.asp?bid=23&cid=158")





  function init()
  {
    getstate();

  }
 function getstate()
 {
 document.forms['formajay'].city.options.length = 0;
document.forms['formajay'].city.options[0] = new Option('Select City','');
var x=document.getElementById("quicklinks1").value;


if (x=='1') {		 
var row=ANDHRAPRADESH.length;
			  for (var loop = 0; loop< row; loop++)
			  {
	document.forms['formajay'].city.options[loop+1] = new Option(ANDHRAPRADESH[loop],ANDHRAPRADESHURL[loop]);
	}
}

if (x=='2') {		 
var row=ASSAM.length;
			  for (var loop = 0; loop< row; loop++)
			  {
	document.forms['formajay'].city.options[loop+1] = new Option(ASSAM[loop],ASSAMURL[loop]);
	}
   }




if (x=='4') {

var row=CHATTISGARH.length;

			  for (var loop = 0; loop< row; loop++)
			  {
	document.forms['formajay'].city.options[loop+1] = new Option(CHATTISGARH[loop], CHATTISGARHURL[loop]);
	}
   }

if (x=='5') {		 
var row=DELHIURL.length;
			  for (var loop = 0; loop< row; loop++)
			  {
	document.forms['formajay'].city.options[loop+1] = new Option(DELHI[loop], DELHIURL[loop]);
	}
   }


if (x=='7') {		 
var row=GUJARAT.length;
			  for (var loop = 0; loop< row; loop++)
			  {
	document.forms['formajay'].city.options[loop+1] = new Option(GUJARAT[loop], GUJARATURL[loop]);
	}
   }


   if (x=='8') {		 
var row=HARYANAURL.length;
			  for (var loop = 0; loop< row; loop++)
			  {
	document.forms['formajay'].city.options[loop+1] = new Option(HARYANA[loop], HARYANAURL[loop]);
	}
   }


 if (x=='10') {		 
var row=JAMMUKASHMIRURL.length;
			  for (var loop = 0; loop< row; loop++)
			  {
	document.forms['formajay'].city.options[loop+1] = new Option(JAMMUKASHMIR[loop], JAMMUKASHMIRURL[loop]);
	}
   }




if (x=='14') {		 
var row=MADHYAPRADESH.length;
			  for (var loop = 0; loop< row; loop++)
			  {
	document.forms['formajay'].city.options[loop+1] = new Option(MADHYAPRADESH[loop],MADHYAPRADESHURL[loop]);
	}
  }

 
 if (x=='11') {	
var row=JHARKHANDURL.length;
			  for (var loop = 0; loop< row; loop++)
			  {
	document.forms['formajay'].city.options[loop+1] = new Option(JHARKHAND[loop],JHARKHANDURL[loop]);
	}
   }


if (x=='12') {		 
var row=KARNATAKA.length;
			  for (var loop = 0; loop< row; loop++)
			  {
	document.forms['formajay'].city.options[loop+1] = new Option(KARNATAKA[loop],KARNATAKAURL[loop]);
	}
   }

   if (x=='13') {		 
var row=KERALAURL.length;
			  for (var loop = 0; loop< row; loop++)
			  {
	document.forms['formajay'].city.options[loop+1] = new Option(KERALA[loop],KERALAURL[loop]);
	}
   }


   if (x=='17') {		 
var row=ORISSA.length;
			  for (var loop = 0; loop< row; loop++)
			  {
	document.forms['formajay'].city.options[loop+1] = new Option(ORISSA[loop],ORISSAURL[loop]);
	}
   }

	if (x=='20') {		 
var row=TAMILNADUURL.length;
			  for (var loop = 0; loop< row; loop++)
			  {
	document.forms['formajay'].city.options[loop+1] = new Option(TAMILNADU[loop],TAMILNADUURL[loop]);
	}
   }





  if (x=='21') {		 
var row=UTTARPRADESH.length;
			  for (var loop = 0; loop< row; loop++)
			  {
	document.forms['formajay'].city.options[loop+1] = new Option(UTTARPRADESH[loop],UTTARPRADESHURL[loop]);
	}
   }




   if (x=='6') {		 
var row=GOA.length;
			  for (var loop = 0; loop< row; loop++)
			  {
	document.forms['formajay'].city.options[loop+1] = new Option(GOA[loop],GOAURL[loop]);
	}
   }
  
if (x=='15') {		 
var row=MAHARASHTRAURL.length;
			  for (var loop = 0; loop< row; loop++)
			  {
	document.forms['formajay'].city.options[loop+1] = new Option(MAHARASHTRA[loop],MAHARASHTRAURL[loop]);
	}
}

if (x=='19') {		 
var row=RAJASTHANURL.length;
			  for (var loop = 0; loop< row; loop++)
			  {
	document.forms['formajay'].city.options[loop+1] = new Option(RAJASTHAN[loop],RAJASTHANURL[loop]);
	}
}


if (x=='22') {		 
var row=UTTRANCHAL.length;
			  for (var loop = 0; loop< row; loop++)
			  {
	document.forms['formajay'].city.options[loop+1] = new Option(UTTRANCHAL[loop],UTTRANCHALURL[loop]);
	}
}

if (x=='3') {		 
var row=BIHAR.length;
			  for (var loop = 0; loop< row; loop++)
			  {
	document.forms['formajay'].city.options[loop+1] = new Option(BIHAR[loop],BIHARURL[loop]);
	}
}


if (x=='23') {		 
var row=WESTBENGALURL.length;
			  for (var loop = 0; loop< row; loop++)
			  {
	document.forms['formajay'].city.options[loop+1] = new Option(WESTBENGAL[loop],WESTBENGALURL[loop]);
	}
}




if (x=='16') {		 
var row=MEGHALAYAURL.length;
			  for (var loop = 0; loop< row; loop++)
			  {
	document.forms['formajay'].city.options[loop+1] = new Option(MEGHALAYA[loop],MEGHALAYAURL[loop]);
	}
}
 }



function getcity(){


  alert(document.getElementById("city").value);

 }

