var arrItems1 = new Array();
var arrItemsGrp1 = new Array();
var arrItemsGrp6 = new Array();

/////----City for Township

arrItems1[1] = "Amritsar";
arrItemsGrp1[1] = 1;
arrItemsGrp6[1] = 1;


arrItems1[2] = "Moradabad";
arrItemsGrp1[2] = 1;
arrItemsGrp6[2] = 2;


arrItems1[3] = "Jaipur";
arrItemsGrp1[3] = 1;
arrItemsGrp6[3] = 3;


arrItems1[4] = "Jhansi";
arrItemsGrp1[4] = 1;
arrItemsGrp6[4] = 4;


arrItems1[5] = "Gwalior";
arrItemsGrp1[5] = 1;
arrItemsGrp6[5] = 5;


//arrItems1[6] = "Puthiyakavu";
//arrItemsGrp1[6] = 1;
//arrItemsGrp6[6] = 6;


arrItems1[7] = "Kochi";
arrItemsGrp1[7] = 1;
arrItemsGrp6[7] = 7;

arrItems1[30] = "Gurgaon";
arrItemsGrp1[30] = 1;
arrItemsGrp6[30] = 30;



/////----City for Housing

arrItems1[8] = "Gurgaon";
arrItemsGrp1[8] = 2;
arrItemsGrp6[8] = 8;


arrItems1[9] = "Bangalore";
arrItemsGrp1[9] = 2;
arrItemsGrp6[9] = 9;


arrItems1[10] = "Kochi";
arrItemsGrp1[10] = 2;
arrItemsGrp6[10] = 7;


arrItems1[11] = "Faridabad";
arrItemsGrp1[11] = 2;
arrItemsGrp6[11] = 10;


arrItems1[12] = "Jammu";
arrItemsGrp1[12] = 2;
arrItemsGrp6[12] = 11;

//// City for Row Housing

arrItems1[13] = "Gurgaon";
arrItemsGrp1[13] = 3;
arrItemsGrp6[13] = 8;


arrItems1[14] = "Jhansi";
arrItemsGrp1[14] = 3;
arrItemsGrp6[14] = 4;


arrItems1[15] = "Dehradun";
arrItemsGrp1[15] = 3;
arrItemsGrp6[15] = 12;


arrItems1[16] = "Gwalior";
arrItemsGrp1[16] = 3;
arrItemsGrp6[16] = 5;

//// City for Independent Floors

arrItems1[17] = "Gurgaon";
arrItemsGrp1[17] = 4;
arrItemsGrp6[17] = 8;

//// City for Hospitality & Clubs

arrItems1[18] = "Gurgaon";
arrItemsGrp1[18] = 5;
arrItemsGrp6[18] = 8;


arrItems1[19] = "Kochi";
arrItemsGrp1[19] = 5;
arrItemsGrp6[19] = 7;

///// City for Commercial Projects

arrItems1[20] = "Gurgaon";
arrItemsGrp1[20] = 6;
arrItemsGrp6[20] = 8;

//// City for Infrastructure

arrItems1[21] = "Dwarka";
arrItemsGrp1[21] = 7;
arrItemsGrp6[21] = 13;


arrItems1[22] = "Mehrauli";
arrItemsGrp1[22] = 7;
arrItemsGrp6[22] = 14;


arrItems1[23] = "Thoubal";
arrItemsGrp1[23] = 7;
arrItemsGrp6[23] = 15;


arrItems1[24] = "Gujarat";
arrItemsGrp1[24] = 7;
arrItemsGrp6[24] = 16;


arrItems1[25] = "Dharamsala";
arrItemsGrp1[25] = 7;
arrItemsGrp6[25] = 17;


arrItems1[26] = "Jammu";
arrItemsGrp1[26] = 7;
arrItemsGrp6[26] = 18;


arrItems1[27] = "Bangladesh";
arrItemsGrp1[27] = 7;
arrItemsGrp6[27] = 19;


arrItems1[28] = "Kolkata";
arrItemsGrp1[28] = 7;
arrItemsGrp6[28] = 20;


arrItems1[29] = "Rishikesh";
arrItemsGrp1[29] = 7;
arrItemsGrp6[29] = 21;

/////// End


////Related City & Links




var arrItems2 = new Array();
var arrItemsGrp2 = new Array();
var arrItemsGrp3 = new Array();
var arrItemsGrp4 = new Array();


arrItems2[1] = "Ansal City";
arrItemsGrp2[1] = 1;
arrItemsGrp4[1] =  1;
arrItemsGrp3[1] =  "townships_ansalcity.asp";


arrItems2[2] = "Prakash Enclave";
arrItemsGrp2[2] = 1;
arrItemsGrp4[2] =  2;
arrItemsGrp3[2] =  "townships_prakash.asp";


arrItems2[3] = "Ansal City";
arrItemsGrp2[3] = 1;
arrItemsGrp4[3] =  3;
arrItemsGrp3[3] =  "townships_ansalcity_jaipur.asp";


arrItems2[4] = "Ansal Basera City";
arrItemsGrp2[4] = 1;
arrItemsGrp4[4] =  4;
arrItemsGrp3[4] =  "townships_ansalbasera_city.asp";


arrItems2[5] = "Ansal Aditya Vatika";
arrItemsGrp2[5] = 1;
arrItemsGrp4[5] =  5;
arrItemsGrp3[5] =  "townships_ansaladitya.asp";


arrItems2[6] = "Ansal City";
arrItemsGrp2[6] = 1;
arrItemsGrp4[6] =  5;
arrItemsGrp3[6] =  "townships_ansalcity_gwalior.asp";


arrItems2[7] = "Ansal City";
arrItemsGrp2[7] = 1;
arrItemsGrp4[7] =  7;
arrItemsGrp3[7] =  "townships_ansalcity_puthivakavu.asp";


arrItems2[8] = "Riverdale";
arrItemsGrp2[8] = 1;
arrItemsGrp4[8] =  7;
arrItemsGrp3[8] =  "townships_riverdale.asp";


arrItems2[9] = "Harmony Homes";
arrItemsGrp2[9] = 2;
arrItemsGrp4[9] =  8;
arrItemsGrp3[9] =  "gh_harmony.asp";


arrItems2[10] = "Ansal Forte";
arrItemsGrp2[10] = 2;
arrItemsGrp4[10] =  9;
arrItemsGrp3[10] =  "gh_ansalforte.asp";


arrItems2[11] = "Garden View Apartment";
arrItemsGrp2[11] = 2;
arrItemsGrp4[11] =  7;
arrItemsGrp3[11] =  "gh_gardenview.asp";


arrItems2[12] = "Canel Heights";
arrItemsGrp2[12] = 2;
arrItemsGrp4[12] =  10;
arrItemsGrp3[12] =  "gh_canel.asp";


arrItems2[13] = "ABL Housing";
arrItemsGrp2[13] = 2;
arrItemsGrp4[13] =  11;
arrItemsGrp3[13] =  "gh_abl.asp";


arrItems2[14] = "Florence Elite";
arrItemsGrp2[14] = 3;
arrItemsGrp4[14] =  8;
arrItemsGrp3[14] =  "rh_florenceelite.asp";


arrItems2[15] = "Florence Marvel";
arrItemsGrp2[15] = 3;
arrItemsGrp4[15] =  8;
arrItemsGrp3[15] =  "rh_florence_marvel.asp";


arrItems2[16] = "Florence Villa";
arrItemsGrp2[16] = 3;
arrItemsGrp4[16] =  8;
arrItemsGrp3[16] =  "rh_florencevilla.asp";


arrItems2[17] = "Ansal Basera Estate";
arrItemsGrp2[17] = 3;
arrItemsGrp4[17] =  4;
arrItemsGrp3[17] =  "rh_ansalbasera.asp";


arrItems2[18] = "Green Valley";
arrItemsGrp2[18] = 3;
arrItemsGrp4[18] =  12;
arrItemsGrp3[18] =  "rh_greenvalley.asp";


arrItems2[19] = "Florence Abode";
arrItemsGrp2[19] = 3;
arrItemsGrp4[19] =  8;
arrItemsGrp3[19] =  "rh_florenceabode.asp";


arrItems2[20] = "Ansal's Farm Houses";
arrItemsGrp2[20] = 3;
arrItemsGrp4[20] =  5;
arrItemsGrp3[20] =  "rh_ansalfarm.asp";


arrItems2[21] = "Silver Crest";
arrItemsGrp2[21] = 3;
arrItemsGrp4[21] =  8;
arrItemsGrp3[21] =  "rh_silvercrest.asp";


arrItems2[22] = "Oriental Homes";
arrItemsGrp2[22] = 3;
arrItemsGrp4[22] =  8;
arrItemsGrp3[22] =  "rh_oriental.asp";


arrItems2[23] = "Oriental Villa";
arrItemsGrp2[23] = 3;
arrItemsGrp4[23] =  8;
arrItemsGrp3[23] =  "rh_orientalvilla.asp";


arrItems2[24] = "Eden Villa";
arrItemsGrp2[24] = 3;
arrItemsGrp4[24] =  8;
arrItemsGrp3[24] =  "rh_eden.asp";


arrItems2[25] = "Royale Casa";
arrItemsGrp2[25] = 3;
arrItemsGrp4[25] =  8;
arrItemsGrp3[25] =  "rh_royalecasa.asp";


arrItems2[26] = "Shalimar";
arrItemsGrp2[26] = 3;
arrItemsGrp4[26] =  8;
arrItemsGrp3[26] =  "rh_shalimar.asp";


arrItems2[27] = "Flexi Homes";
arrItemsGrp2[27] = 4;
arrItemsGrp4[27] =  8;
arrItemsGrp3[27] =  "floors_flexihomes.asp";


arrItems2[28] = "Royal Residency";
arrItemsGrp2[28] = 4;
arrItemsGrp4[28] =  8;
arrItemsGrp3[28] =  "floors_rr.asp";


arrItems2[29] = "Sushant Floors";
arrItemsGrp2[29] = 4;
arrItemsGrp4[29] =  8;
arrItemsGrp3[29] =  "floors_sushant.asp";


arrItems2[30] = "Executive Residency";
arrItemsGrp2[30] = 4;
arrItemsGrp4[30] =  8;
arrItemsGrp3[30] =  "floors_er.asp";


arrItems2[31] = "Club Florence";
arrItemsGrp2[31] = 5;
arrItemsGrp4[31] =  8;
arrItemsGrp3[31] =  "hospitality_florence.asp";


arrItems2[32] = "Club Harmony";
arrItemsGrp2[32] = 5;
arrItemsGrp4[32] =  8;
arrItemsGrp3[32] =  "hospitality_harmony.asp";


arrItems2[33] = "Riverdale Club";
arrItemsGrp2[33] = 5;
arrItemsGrp4[33] =  7;
arrItemsGrp3[33] =  "hospitality_riverdale.asp";


arrItems2[34] = "Boom Plaza";
arrItemsGrp2[34] = 6;
arrItemsGrp4[34] =  8;
arrItemsGrp3[34] =  "commercial_boom_plaza.asp";


arrItems2[35] = "Navkriti Arcade";
arrItemsGrp2[35] = 6;
arrItemsGrp4[35] =  8;
arrItemsGrp3[35] =  "commercial_navkriti_arcade.asp";


arrItems2[36] = "Sushant Tower";
arrItemsGrp2[36] = 6;
arrItemsGrp4[36] =  8;
arrItemsGrp3[36] =  "commercial_sushant_tower.asp";


arrItems2[37] = "Baulevard Centre";
arrItemsGrp2[37] = 6;
arrItemsGrp4[37] =  8;
arrItemsGrp3[37] =  "commercial_bcentre.asp";


arrItems2[38] = "Covering of Palam Drain Project";
arrItemsGrp2[38] = 7;
arrItemsGrp4[38] =  13;
arrItemsGrp3[38] =  "infrastructure_palam.asp";


arrItems2[39] = "C-Dot Main R&D Building Project";
arrItemsGrp2[39] = 7;
arrItemsGrp4[39] =  14;
arrItemsGrp3[39] =  "infrastructure_cdot.asp";


arrItems2[40] = "Thoubal Multipurpose Project";
arrItemsGrp2[40] = 7;
arrItemsGrp4[40] =  15;
arrItemsGrp3[40] =  "infrastructure_thoubal.asp";


arrItems2[41] = "Narmada Main Canal Project";
arrItemsGrp2[41] = 7;
arrItemsGrp4[41] =  16;
arrItemsGrp3[41] =  "infrastructure_narmada.asp";


arrItems2[42] = "Baner Hydel Project";
arrItemsGrp2[42] = 7;
arrItemsGrp4[42] =  17;
arrItemsGrp3[42] =  "infrastructure_baner.asp";


arrItems2[43] = "Jammu Udhampur Rail Link Project";
arrItemsGrp2[43] = 7;
arrItemsGrp4[43] =  18;
arrItemsGrp3[43] =  "infrastructure_jammu.asp";


arrItems2[44] = "Bangladesh Road Project";
arrItemsGrp2[44] = 7;
arrItemsGrp4[44] =  19;
arrItemsGrp3[44] =  "infrastructure_bangladesh.asp";


arrItems2[45] = "American Centre";
arrItemsGrp2[45] = 7;
arrItemsGrp4[45] =  20;
arrItemsGrp3[45] =  "infrastructure_american.asp";


arrItems2[46] = "Russian Colony at Pragatipuram";
arrItemsGrp2[46] = 7;
arrItemsGrp4[46] =  21;
arrItemsGrp3[46] =  "infrastructure_russian.asp";

arrItems2[47] = "Sushant Lok City";
arrItemsGrp2[47] = 1;
arrItemsGrp4[47] =  30;
arrItemsGrp3[47] =  "sushant_lok.asp";


function selectChange(control, controlToPopulate, ItemArray, GroupArray) {
  var myEle ;
  var x ;
  // Empty the second drop down box of any choices
  for (var q=controlToPopulate.options.length;q>=0;q--) controlToPopulate.options[q]=null;
  if (control.name == "firstChoice") {
    // Empty the third drop down box of any choices
    for (var q=form.thirdChoice.options.length;q>=0;q--) form.thirdChoice.options[q] = null;
 }
  // ADD Default Choice - in case there are no values
  myEle = document.createElement("option") ;
  myEle.value = 0 ;
  myEle.text = "[SELECT]" ;
  // controlToPopulate.add(myEle) ;
  controlToPopulate.appendChild(myEle)
  // Now loop through the array of individual items
  // Any containing the same child id are added to
  // the second dropdown box
  for ( x = 0 ; x < ItemArray.length  ; x++ ) {
    if ( GroupArray[x] == control.value ) {
      myEle = document.createElement("option") ;
      //myEle.value = x ;
      myEle.setAttribute('value',arrItemsGrp6[x]);
      // myEle.text = ItemArray[x] ;
      var txt = document.createTextNode(ItemArray[x]);
      myEle.appendChild(txt)
      // controlToPopulate.add(myEle) ;
      controlToPopulate.appendChild(myEle)
    }
  }
}

function selectChange(control, controlToPopulate, ItemArray, GroupArray) {
  var myEle ;
  var x ;
  // Empty the second drop down box of any choices
  for (var q=controlToPopulate.options.length;q>=0;q--) controlToPopulate.options[q]=null;
  if (control.name == "firstChoice") {
    // Empty the third drop down box of any choices
    for (var q=form.thirdChoice.options.length;q>=0;q--) form.thirdChoice.options[q] = null;
  }
  // ADD Default Choice - in case there are no values
  myEle=document.createElement("option");
  theText=document.createTextNode("[select location]");
  myEle.appendChild(theText);
  myEle.setAttribute("value","0");
  controlToPopulate.appendChild(myEle);
  // Now loop through the array of individual items
  // Any containing the same child id are added to
  // the second dropdown box
 
  for ( x = 0 ; x < ItemArray.length  ; x++ ) {
    if ( GroupArray[x] == control.value ) {
      myEle = document.createElement("option") ;
      //myEle.value = x ;
      myEle.setAttribute("value",arrItemsGrp6[x]);
      // myEle.text = ItemArray[x] ;
      var txt = document.createTextNode(ItemArray[x]);
      myEle.appendChild(txt)
      // controlToPopulate.add(myEle) ;
      controlToPopulate.appendChild(myEle)
    }
  }
}
// -->

function select1(sid,controlToPopulate)
{
  for (var q=form.thirdChoice.options.length;q>=0;q--) 
	form.thirdChoice.options[q] = null;
    myEle=document.createElement("option");
  theText=document.createTextNode("[select project]");
  myEle.appendChild(theText);
  myEle.setAttribute("value","0");
  controlToPopulate.appendChild(myEle);
	  for ( x = 0 ; x < arrItems2.length  ; x++ )
	   {
			
			if((arrItemsGrp2[x]== form.firstChoice.value) &&(form.secondChoice.value==arrItemsGrp4[x]))
			  { 
      myEle = document.createElement("option") ;
      //myEle.value = x ;
      myEle.setAttribute("value",arrItemsGrp3[x]);
      // myEle.text = ItemArray[x] ;
      var txt = document.createTextNode(arrItems2[x]);
      myEle.appendChild(txt)
      // controlToPopulate.add(myEle) ;
      controlToPopulate.appendChild(myEle)
   			  }
		  }
 }



function toggleBox(szDivID, iState) // 1 visible, 0 hidden
{
    if(document.layers)	   //NN4+
    {
       document.layers[szDivID].visibility = iState ? "show" : "hide";
    }
    else if(document.getElementById)	  //gecko(NN6) + IE 5+
    {
        var obj = document.getElementById(szDivID);
        obj.style.visibility = iState ? "visible" : "hidden";
    }
    else if(document.all)	// IE 4
    {
        document.all[szDivID].style.visibility = iState ? "visible" : "hidden";
    }
}
// -->
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


function open_project(id)
{
if(id=="")
alert("Select the project under category");
else
document.location.href=id;
}
