// To Store the List of all Resorts

    var Backwater,Beach,Mountain,Ayervedic,Resorts,i,j,k;
    Backwater = new Array(35);
	Beach = new Array(35);
	Mountain = new Array(25);
	Ayervedic = new Array(15);
	Resorts = new Array(45)
	
	
	for(i=0; i<Backwater.length; i++)
	 Backwater[i]  = new Array(9);
    for(i=0; i<Beach.length; i++)
	 Beach[i]  = new Array(9);
    for(i=0; i<Mountain.length; i++)
    	 Mountain[i]  = new Array(9);
    for(i=0; i<Ayervedic.length; i++)
    	 Ayervedic[i]  = new Array(9);
    for(i=0; i<Resorts.length; i++)
    	 Resorts[i]  = new Array(9);	   

	 
 //---------------------------------------------------------------------------------------------
	 
	 Backwater[0][0]= "Aquaserene";
	 Backwater[0][1]= "Lake Mansion";
	 Backwater[0][2]= "Heritage Villa";
	 Backwater[0][3]= "Lake Villa";
	 
	 Backwater[1][0]= "Ashtamudi Resorts";
	 Backwater[1][1]= "Kings Place";
	 Backwater[1][2]= "Queens Place";
	 Backwater[1][3]= "Multi Level Chalets";
	 
	 Backwater[2][0]= "Backwater Ripples";	
	 
	 Backwater[3][0]= "Cocobay Resort";
	 Backwater[3][1]= "Suite";
	 Backwater[3][2]= "Family Suite";
	 
	 Backwater[4][0]= "Coconut Island";	
	 
	 Backwater[5][0]= "Coconut Lagoon";	
	 
	 Backwater[6][0]= "Coir Village – Lake Resort";
	 
	 Backwater[7][0]= "Duke's Forest Lodge";
	 Backwater[7][1]= "Independent Pool Villas";
	 Backwater[7][2]= "Standard Rooms";
	 
	 Backwater[8][0]= "Golden Waters - Kumarakom";
	 Backwater[8][1]= "Single";
	 Backwater[8][2]= "Double";
	 
	 Backwater[9][0]= "Illikkalam Lake Resort";
	  Backwater[9][1]= "Cottage";
	   Backwater[9][2]= "Deluxe cottage ";
	    Backwater[9][3]= "Deluxe family cottage";
		
	 Backwater[10][0]= "Kadavu Resort";	
	 Backwater[10][1]= "Mapilappura";
	 Backwater[10][2]= "Malabar Suites";
	 Backwater[10][3]= "Superior River View Room";
	 Backwater[10][4]= "Deluxe River View Room";
	 Backwater[10][5]= "Garden View Room";
	 
	 Backwater[11][0]= "Kamyakam Haven";	
	  Backwater[11][1]= "The Neelam AC";
	   Backwater[11][2]= "Vajra AC";
	   
	 Backwater[12][0]= "Kayaloram Heritage Lake Resort";
	 Backwater[12][1]= "Lake Facing Cottage";
	 Backwater[12][2]= "Pool Facing Cottage";
	 
	 Backwater[13][0]= "Kumarakom Lake Resort";
	 Backwater[13][1]= "Presidential Suite with Private Pool";	
	 Backwater[13][2]= "Meandering Pool Duplex Villa";	
	 Backwater[13][3]= "Meandering Pool Villa";	
	 Backwater[13][4]= "Heritage Lake View Villa";	
	 Backwater[13][5]= "Heritage Garden View Villa";	
	 
	 Backwater[14][0]= "Kuttanadu Resorts";
	  Backwater[14][1]= "AC Cottage";	
	   Backwater[14][2]= "AC Duplex villa";	
	    Backwater[14][3]= "Non AC Double";
		
	 Backwater[15][0]= "Lake Palace";
	 Backwater[15][1]= "Water Villa ";
	 Backwater[15][2]= "Suite Room";
	 
	 Backwater[16][0]= "Nalanda Resorts";
	 Backwater[16][1]= "AC Room";
	 Backwater[16][2]= "Non AC";
	 Backwater[16][3]= "Cottages";
	 
	 Backwater[17][0]= "Pagoda Resorts";
	 Backwater[17][1]= "AC Traditional Cottage";
	 Backwater[17][2]= "AC Deluxe Room";
	 Backwater[17][3]= "AC Suite Room";
	 Backwater[17][4]= "Standard Rooms";
	 
	 Backwater[18][0]= "Palmgrove Lake Resort";
	 Backwater[18][1]= "Deluxe Cottage";
	 Backwater[18][2]= "Standard  Cottage";
	 Backwater[18][3]= "Budget Rooms";
	 
	 Backwater[19][0]= "Palm Lagoon";
	 Backwater[19][1]= "Non Air Conditioning ";
	 Backwater[19][2]= "Air Conditioning";
	 
	 Backwater[20][0]= "Paradise Resorts";	
	  Backwater[20][1]= "Single";	
	   Backwater[20][2]= "Double";	
	   
	 Backwater[21][0]= "Punnamada Backwater Resort";
	 Backwater[21][1]= "Standard Villa";
	 Backwater[21][2]= "Lake View Villa";
	 Backwater[21][3]= "Duplex Villa";
	 
	 Backwater[22][0]= "Riverok Villas";
	 Backwater[22][1]= "Double Room ";
	 Backwater[22][2]= "Ordinary Villa";
	 Backwater[22][3]= "AC Villa";
	 Backwater[22][4]= "Deluxe Villa";
	 Backwater[22][5]= "AC Deluxe Villa";
	 
	 Backwater[23][0]= "Taj Garden - Kumarakom";	
	 
	 Backwater[24][0]= "Tharavadu  Heritage Home";	
	  Backwater[24][1]= "Non AC Double Room";
	   Backwater[24][2]= "AC Double Room";
	    Backwater[24][3]= "Heritage Room";
		
	 Backwater[25][0]= "The Backwater Resort";	
	 Backwater[25][1]= "Lake View";
	 Backwater[25][2]= "Canal View";
	 
	 Backwater[26][0]= "The Windsor Castle";	
	 Backwater[26][1]= "Deluxe Room";
	 Backwater[26][2]= "Executive Deluxe Room";
	 Backwater[26][3]= "Suite Room";
	 
	 Backwater[27][0]= "Whispering Palms - Lake Resort";
	 Backwater[27][1]= "Suite";
	 Backwater[27][2]= "Garden/Lagoon Facing Cottage";
	 Backwater[27][3]= "Lake Facing Cottage";
	 Backwater[27][4]= "Bamboo Villa With Pool";
	 Backwater[27][5]= "Bamboo Villa";

 //---------------------------------------------------------------------------------------------
	 
	 Beach[0][0]= "Abad Palmshore Beach Resort";
	  Beach[0][1]= "Sea Facing Room";
	   Beach[0][2]= "AC Cottage";
	   
	 Beach[1][0]= "Alleppey beach resorts";	 
	 Beach[1][1]= "AC cottage";
	 Beach[1][2]= "AC Room Deluxe";
	 Beach[1][3]= "AC Room Double";
	 Beach[1][4]= "Non-AC Deluxe";
	 Beach[1][5]= "Non-AC Double";
	 
	 Beach[2][0]= "Bethsaida Hermitage";
	  Beach[2][1]= "Traditional Cave Built Cottages";
	   Beach[2][2]= "Traditional Kerala Veedu";
	    Beach[2][3]= "Kerala Special Cottages";
		 Beach[2][4]= "Maharaja";
		  Beach[2][5]= "Maharani";
		  
	 Beach[3][0]= "Cherai Beach Resort";
	 Beach[3][1]= "Parnasala";
	 Beach[3][2]= "Kochuthuruth";
	 Beach[3][3]= "Thottaruvu";
	 Beach[3][4]= "Thekkotta";
	 Beach[3][5]= "Maniyara";
	 Beach[3][6]= "Machilakom";
	 Beach[3][7]= "Nalukettu";
	 Beach[3][8]= "Akathalam";
	 Beach[3][9]= "Naduthalam";
	 Beach[3][10]= "Palliyara AC";
	 Beach[3][11]= "Kayaltheeram AC";
	 Beach[3][12]= "Kayaloram AC";
	 Beach[3][13]= "AC Doctors villa";
	 Beach[3][14]= "AC Villa ";
	 
	 Beach[4][0]= "Coconut Bay Beach Resort";
	 Beach[4][1]= "Beach Room";
	 Beach[4][2]= "Zambi's place";
	 Beach[4][3]= "Villas at Zambi's Place";
	 Beach[4][4]= "Villa Non AC";
	 Beach[4][5]= "Poolside Villa (AC)";
	 Beach[4][6]= "Deluxe Villa (AC)";
	 Beach[4][7]= "Super Deluxe Villa (AC)";
	 
	 Beach[5][0]= "Hotel Rockholm";	
	 Beach[5][1]= "AC Single";
	 Beach[5][2]= "AC Double";
	 Beach[5][3]= "Non AC Single";
	 Beach[5][4]= "Non AC Double";
	 Beach[5][5]= "Non AC Pent house";
	 
	 Beach[6][0]= "Hotel Sea Face";
	  Beach[6][1]= "Standard AC";
	   Beach[6][2]= "Standard No AC";
	    Beach[6][3]= "Deluxe";
		 Beach[6][4]= "Suite";
		 
	 Beach[7][0]= "Isola Di Cocco";
	 Beach[7][1]= "Suite";
	 Beach[7][2]= "Heritage";
	 Beach[7][3]= "Standard";
	 
	 Beach[8][0]= "Kadaloram Beach Resort";
	 Beach[8][1]= "Cottage AC";
	 Beach[8][2]= "Deluxe AC";
	 
	 Beach[9][0]= "Kadappuram Beach Resort";
	 Beach[9][1]= "Single";
	 Beach[9][2]= "Double";
	 
	 Beach[10][0]= "Karikatti Beach Resort";
	 Beach[10][1]= "Sea Front Double Room";
	 Beach[10][2]= "Full House";
	 
	 Beach[11][0]= "Kattil Beach Resort";
	 Beach[11][1]= "Cottage-Deluxe";
	 Beach[11][2]= "Apartments";
	 Beach[11][3]= "Cottage-Standard";
	 Beach[11][4]= "Deluxe Room";
	 Beach[11][5]= "Economy";
	 
	 Beach[12][0]= "Lagoona Davina";
	 Beach[12][1]= "Rhino";
	 Beach[12][2]= "Camel";
	 Beach[12][3]= "Horse";
	 Beach[12][4]= "Tiger";
	 Beach[12][5]= "Elephant";
	 Beach[12][6]= "Frog Prince";
	 Beach[12][7]= "Monkey";
	 Beach[12][8]= "Lion";
	 Beach[12][9]= "Leopard";
	 Beach[12][10]= "Peacock";
	 Beach[12][11]= "Yak";
	 Beach[12][12]= "Eagle";
	 Beach[12][13]= "Turtle";
	 Beach[12][14]= "Sunbird";
	 Beach[12][15]= "Buffalo";
	 Beach[12][16]= "Owl";
	 Beach[12][17]= "Mongoose";
	 Beach[12][18]= "Panther";
	 
	 Beach[13][0]= "Manaltheeram Ayurveda Beach Village";
	  Beach[13][1]= "Kerala Houses (A/C)";
	   Beach[13][2]= "Kerala Houses(Non A/C)";
	    Beach[13][3]= "Cottages (Special)";
		 Beach[13][4]= "Cottages (Ordinary)";
		 
	 Beach[14][0]= "Marari Beach Resort";
	 
	 Beach[15][0]= "Mascot Beach Resort";	
	 Beach[15][1]= "Standard Non AC";
	 Beach[15][2]= "Standard AC";
	 Beach[15][3]= "Cottage Type";
	 Beach[15][4]= "Deluxe";
	 Beach[15][5]= "Suite";
	 
	 Beach[16][0]= "Paradise Gardens";	
	 Beach[16][1]= "Category l";
	 Beach[16][2]= "Category ll";
	 Beach[16][3]= "Category lll";
	 
	 Beach[17][0]= "Poovar Island Resorts";
	 Beach[17][1]= "Superior Land Cottages";
	 Beach[17][2]= "Floating Cottages";
	 Beach[17][3]= "Deluxe Floating Villas";
	 
	 Beach[18][0]= "Pozhiyoram Beach Resort";	
	 Beach[18][1]= "Kerala Cottage AC";
	 Beach[18][2]= "Kerala Cottage Non AC";
	 Beach[18][3]= "Beach view Rooms";
	 
	 Beach[19][0]= "Preeth Beach Resort";	
	 Beach[19][1]= "Non AC Standard Room";
	 Beach[19][2]= "Non AC Deluxe Room ";
	 Beach[19][3]= "Non AC Cottage";
	 Beach[19][4]= "AC Cottage";
	 
	 Beach[20][0]= "Raheem Residency";
	 Beach[20][1]= "Deluxe";
	 Beach[20][2]= "Superior Deluxe";
	 Beach[20][3]= "Family Suite";
	 
	 Beach[21][0]= "Surya Samudra Beach Garden";	
	 Beach[21][1]= "Sea Front Deluxe";
	 Beach[21][2]= "Garden Bungalows";
	 Beach[21][3]= "Sea Front Rooms";
	 Beach[21][4]= "Garden Cottages";
	 Beach[21][5]= "Private Cottages";
	 Beach[21][6]= "Small Beach Cottages";
	 
	 Beach[22][0]= "Swagath Resorts";	
	 Beach[22][1]= "Row-House";
	 Beach[22][2]= "Villa";
	 Beach[22][3]= "Pawn";
	 Beach[22][4]= "Rook";
	 Beach[22][5]= "King";
	 
	 Beach[23][0]= "Taj Garden Retreat - Trivandrum";		
	 Beach[24][0]= "Taj Green Cove Resort - Kovalam";			
	 Beach[25][0]= "The leela kovalam Beach";
	 
	 Beach[26][0]= "The Travancore Heritage";	
	  Beach[26][1]= "Heritage Home";	
	   Beach[26][2]= "Heritage Premium";	
	    Beach[26][3]= "Pool Mansion";	
		 Beach[26][4]= "Beach Grove";	
		  Beach[26][5]= "Premium Mansion";	
	 
	 Beach[27][0]= "Uday Samudra Beach Hotel";
	 Beach[27][1]= "AC Deluxe Double";
	 Beach[27][2]= "AC Exotica Double";
	 Beach[27][3]= "AC Exotica Attrium";
	 Beach[27][4]= "AC Deluxe Suite ";
	 Beach[27][5]= "Presidential Suite";


//----------------------------------------------------------------------	
	 Mountain[0][0]= "Abad Copper Castle Hill Valley";
	 Mountain[0][1]= "Deluxe Room";
	 Mountain[0][2]= "Executive Suite";
	 
	 Mountain[1][0]= "Ananya Hill Resorts";
	 Mountain[1][1]= "Deluxe Cottage";
	 Mountain[1][2]= "Standard Cottage";
	 
	 Mountain[2][0]= "Aranya Nivas";
	 Mountain[2][1]= "AC Suite ";
	 Mountain[2][2]= "Deluxe Non AC ";
	 Mountain[2][3]= "Regular Room";
	 
	 Mountain[3][0]= "Carmelia Haven";
	 Mountain[3][1]= "Tree House";
	 Mountain[3][2]= "Cave Room";
	 Mountain[3][3]= "Suite Room";
	 Mountain[3][4]= "Deluxe Cottage";
	 Mountain[3][5]= "Honeymoon Cottage";
	 Mountain[3][6]= "Deluxe Room";
	 
	 Mountain[4][0]= "Chancellor Resorts";
	 Mountain[4][1]= "Suit Room";
	 Mountain[4][2]= "Two Bed Bungalow";
	 Mountain[4][3]= "Three Bed Bungalow";
	 Mountain[4][4]= "Honey Moon cottage";
	 Mountain[4][5]= "Hill View Cottage";
	 
	 Mountain[5][0]= "Edakkal hermitage";	
	 Mountain[5][1]= "Cottage";
	 Mountain[5][2]= "Tree House";
	 
	 Mountain[6][0]= "Greenberg Resorts";
	 Mountain[6][1]= "Deluxe Room";
	 
	 Mountain[7][0]= "Greeshmam Resorts";
	 Mountain[7][1]= "Deluxe Room Single";
	 Mountain[7][2]= "Deluxe Room Double";
	 
	 Mountain[8][0]= "Hotel Green Gates";
	 Mountain[8][1]= "Cottage";
	 Mountain[8][2]= "Luxury Room";
	 Mountain[8][3]= "Deluxe Room";
	 Mountain[8][4]= "Standard Room";
	 
	 Mountain[9][0]= "Hotel Hillview";	
	 Mountain[9][1]= "Standard Double";
	 Mountain[9][2]= "Deluxe Double";
	 Mountain[9][3]= "Super Deluxe Double";
	 
	 Mountain[10][0]= "Lakeview - Club Mahindra Holidays";	 		 
	 Mountain[11][0]= "Muthoot Cardamom County";	
	 Mountain[11][1]= "Periyar Cottage";
	 Mountain[11][2]= "County Cottage";
	 Mountain[11][3]= "Suite";
	 
	 Mountain[12][0]= "Stream Valley Cottages";
	 Mountain[12][1]= "Independent cottage";	
	 Mountain[12][2]= "Twin Cottage";	
	 Mountain[12][3]= "Tree Huts";		
	 
	 Mountain[13][0]= "Tea County";
	 Mountain[13][1]= "Suite Room";
	 Mountain[13][2]= "Deluxe Room";
	 Mountain[13][3]= "Regular Room";
	 
	 Mountain[14][0]= "Thri Sangu Haven";				
	 Mountain[15][0]= "Tranquil Resorts";		 
	 Mountain[16][0]= "Vythri Resorts";
	 Mountain[16][1]= "Kudeeram Cottafe";
	 Mountain[16][2]= "Deluxe Room";
	 Mountain[16][3]= "Paadi Room";
	
//----------------------------------------------------------------------	

     Ayervedic[0][0]= "Athreya Ayurvedic Resorts";
	 Ayervedic[0][1]= "Heritage Cottage";
	 Ayervedic[0][2]= "Deluxe Cottage";
	 Ayervedic[0][3]= "Royal Cottage";
	 
	 Ayervedic[1][0]= "Chamundi Hill Palace Ayurvedic Resort";
	 Ayervedic[1][1]= "Royal Suite";
	 Ayervedic[1][2]= "Super Deluxe";
	 Ayervedic[1][3]= "Deluxe";
	 
	 Ayervedic[2][0]= "Harivihar Heritage Homestead";	 
	 Ayervedic[3][0]= "Harmonia Ayurveda Beach Garden";
	 Ayervedic[3][1]= "Cottage (Non A/c)";
	 Ayervedic[3][2]= "Standard Room (A/c)";
	 Ayervedic[3][3]= "Deluxe Room";
	 
	 Ayervedic[4][0]= "Kairali Ayurvedic Health Resort";
	 Ayervedic[4][1]= "Deluxe";
	 Ayervedic[4][2]= "Classic";
	 Ayervedic[4][3]= "Royal";
	 Ayervedic[4][4]= "Maharajas";
	 
	 Ayervedic[5][0]= "Keraleeyam Heritage Home";	 	 
	 Ayervedic[6][0]= "Nilayoram Resorts";
	 Ayervedic[7][0]= "Somatheeram Ayurvedic Beach Resort";
	 Ayervedic[7][1]= "Sidhartha Palace";
	 Ayervedic[7][2]= "Kerala House Deluxe";
	 Ayervedic[7][3]= "Kerala House Ordinary";
	 Ayervedic[7][4]= "Cottage Special";
	 Ayervedic[7][5]= "Cottage Ordinary";
	 Ayervedic[7][6]= "Cottage Mini";
	 
	 Ayervedic[8][0]= "Surya Ayurvedic Resort";	 	 
	 Ayervedic[9][0]= "The Beach And Lake Ayurvedic Resort";
	 Ayervedic[9][1]= "AC";
	 Ayervedic[9][2]= "Deluxe";
	 Ayervedic[9][3]= "Standard Deluxe";

 //---------------------------------------------------------------------------------------------
	 
	 Resorts[0][0]=   "Anns Homestay";	 
	 Resorts[1][0]=   "Bakers Resort";	
	 Resorts[1][1]=   "Maharajas Suite";
	 Resorts[1][2]=   "Royal Suite";
	 Resorts[1][3]=   "Nini Suite";
	 Resorts[1][4]=   "Deluxe Room";
	 
	 Resorts[2][0]=   "Blackberry Hills";
	 Resorts[2][1]=   "Standard";
	 Resorts[2][2]=   "Deluxe";
	 Resorts[2][3]=   "Luxury";
	 
	 Resorts[3][0]=   "B Six Holiday Resorts";	
	 Resorts[3][1]=   "Super Deluxe Double";
	 Resorts[3][2]=   "Tree House Double";
	 
	 Resorts[4][0]=   "Camelot";
	 Resorts[4][1]=   "Deluxe Room";
	 Resorts[4][2]=   "Super Deluxe Room";
	 Resorts[4][3]=   "Suite Room";
	 Resorts[4][4]=   "Cottage Room";
	 
	 Resorts[5][0]=   "Cloud 9 Resorts";
	 Resorts[5][1]=   "Standard";
	 Resorts[5][2]=   "Deluxe";
	 Resorts[5][3]=   "Suite";
	 
	 Resorts[6][0]=   "Deshadan Mountain Resorts";
	 Resorts[6][1]=   "Double Room";
	 Resorts[6][2]=   "Cottage (2 Double Bedroom)";
	 
	 Resorts[7][0]=   "Forest Haven Resort";
	 Resorts[7][1]=   "Standard Double Room";
	 Resorts[7][2]=   "Forest View Double Room";
	 Resorts[7][3]=   "Suite Room";
	 
	 Resorts[8][0]=   "Green Earth Resorts";
	 Resorts[8][1]=   "Single Cottage";
	 Resorts[8][2]=   "Double Cottage";
	 
	 Resorts[9][0]=   "Haritagiri Hotel & Resort";
	 Resorts[9][1]=   "Single Room";
	 Resorts[9][2]=   "Executive Room";
	 Resorts[9][3]=   "Executive AC";
	 Resorts[9][4]=   "Soorya Kutir";
	 Resorts[9][5]=   "Soorya Duplex";
	 Resorts[9][6]=   "Soorya Suite";
	 
	 Resorts[10][0]=  "Haritha Farm's";	
	 Resorts[10][1]=  "Double";
	 Resorts[10][2]=  "Single";
	 
	 Resorts[11][0]=  "Hotel Ambadi";
	 Resorts[11][1]=  "Duplex Room";
	 Resorts[11][2]=  "Deluxe Room";
	 Resorts[11][3]=  "Cottage";
	 
	 Resorts[12][0]=  "Jungle Park Resorts";
	 Resorts[12][1]=  "Row House Cottage";
	 Resorts[12][2]=  "Villa Room with Private Garden";
	 Resorts[12][3]=  "Villa Room with living hall & Private Garden";
	 Resorts[12][4]=  "Honey Moon Cottage";
	 Resorts[12][5]=  "Tree House";
	 Resorts[12][6]=  "Stream Side Cottage";
	 
	 Resorts[13][0]=  "Marari Beach Homes";	
	 Resorts[13][1]=  "Tamarind House - Double";
	 Resorts[13][2]=  "Papaya House - Double";
	 Resorts[13][3]=  "Heritage Wooden House - Double";
	 Resorts[13][4]=  "Fisherman's Cottage - Double";
	 Resorts[13][5]=  "Fisherman's Cottage single room - Double";
	 
	 Resorts[14][0]=  "Munnar Woods Resort";
	 Resorts[14][1]=  "Super Deluxe";
	 Resorts[14][2]=  "Deluxe Suite";
	 Resorts[14][3]=  "Executive Suite";
	 
	 Resorts[15][0]=  "Nazarani Tharavad";		
	 Resorts[16][0]=  "Oak Fields";
	 Resorts[17][0]=  "Olavipe Homestay";
	 Resorts[18][0]=  "Olive Brook";
	 Resorts[18][1]=  "Adam Cottage Single";
	 Resorts[18][2]=  "Adam Cottage Double";
	 Resorts[18][3]=  "Eve Cottage Single";
	 Resorts[18][4]=  "Eve Cottage Double";
	 
	 Resorts[19][0]=  "Orchid Resorts";
	 Resorts[19][1]=  "Executive";
	 Resorts[19][2]=  "Suite Room";
	 Resorts[19][3]=  "Tribal Hut(Cottage)";
	 Resorts[19][4]=  "Tree House";
	 
	 Resorts[20][0]=  "Paradise Plantation Retreat";
	 Resorts[20][1]=  "Deluxe";
	 Resorts[20][2]=  "Superior";
	 Resorts[20][3]=  "Single Occupancy";
	 
	 Resorts[21][0]=  "Philipkutty’s Farm";
	 Resorts[22][0]=  "Pooppallys Heritage Resort";
	 Resorts[22][1]=  "Economy";
	 Resorts[22][2]=  "Standard";
	 Resorts[22][3]=  "Standard + Full Board";
	 Resorts[22][4]=  "Deluxe";
	 
	 Resorts[23][0]=  "Pranavam Resorts";	
	 Resorts[23][1]=  "Tree House";
	 
	 Resorts[24][0]=  "Rain Country Resorts";
	 Resorts[24][1]=  "Cottage Room";
	 Resorts[24][2]=  "Single Occupancy";
	 Resorts[24][3]=  "Independent Cottage";
	 Resorts[24][4]=  "Honeymoon Cottage";
	 
	 Resorts[25][0]=  "Royal Palm Resorts";
	 Resorts[25][1]=  "Independent cottage";
	 Resorts[25][2]=  "Cottage Room";
	 Resorts[25][3]=  "Standard Room";
	 
	 Resorts[26][0]=  "Sterling Munnar Resort";
	 Resorts[27][0]=  "Tall Trees";
	 Resorts[27][1]=  "Standard";
	 Resorts[27][2]=  "Deluxe";
	 Resorts[27][3]=  "Luxury";
	 
	 Resorts[28][0]=  "Thai Resorts";
	 Resorts[28][1]=  "AC Cottage";
	 Resorts[28][2]=  "AC Cottages Deluxe";
	 Resorts[28][3]=  "Non AC Cottage";
	 Resorts[28][4]=  "Non AC Cottage Deluxe";
	 
	 Resorts[29][0]=  "The Siena Village";
	 Resorts[29][1]=  "Standard Room";
	 Resorts[29][2]=  "Deluxe Room";
	 Resorts[29][3]=  "Luxury Suite";
	 
	 Resorts[30][0]=  "Wild Side Villa";
	 Resorts[30][1]=  "Rent-a-Villa";
	 Resorts[30][2]=  "Double Room";
	 
	 Resorts[31][0]=  "Windermere Estate";	
	 Resorts[32][0]=  "Wynberg Resorts";	
	 Resorts[32][1]=  "The Ashram";
	 Resorts[32][2]=  "Log House 1&2";
	 Resorts[32][3]=  "The Hut";
	 Resorts[32][4]=  "The Igloo";
	 Resorts[32][5]=  "The Pharaoh";
	 Resorts[32][6]=  "Tree Tops";

 //---------------------------------------------------------------------------------------------

	function changeHotels(no)
	{
	   // Clear all
	   
	    if(no == "1")
	    {
		     for(i=0;i<document.f1.hotel.options.length;i++)
			     document.f1.hotel.options[i].value = document.f1.hotel.options[i].text="";
			
			 document.f1.hotel.options[0].value="";
			 document.f1.hotel.options[0].text="Select One";
			 
			 var hindex = document.f1.hindex.value;
			  
   	        if(document.f1.category.selectedIndex==0)
	        {
	           document.f1.hotel.disabled=true;
	            return;
	        }
	        else
			{
	          document.f1.hotel.disabled=false;
		      document.f1.hotel.options.length=20;
			}
			 
	 	    if(document.f1.category.selectedIndex==1)
		    {
		       document.f1.hotel.options.length=Backwater.length;
			   for(i=0;Backwater[i][0]!=null;i++)
			   {
			      document.f1.hotel.options[parseInt(i)+1].value= document.f1.hotel.options[parseInt(i)+1].text=Backwater[i][0]; 
			  	 if( parseInt(i) == parseInt(hindex) )
				    document.f1.hotel.selectedIndex=i+1;
		       }		
    	    }	 
	 	    
			if(document.f1.category.selectedIndex==2)
		    {
			   document.f1.hotel.options.length=Beach.length;
			    for(i=0;Beach[i][0]!=null;i++)
			    {
			       document.f1.hotel.options[parseInt(i)+1].value= document.f1.hotel.options[parseInt(i)+1].text=Beach[i][0];
				    if( parseInt(i) == parseInt(hindex))
				    document.f1.hotel.selectedIndex=i+1;
			     }	
		   }	 
	 	 if(document.f1.category.selectedIndex==3)
		 {
			 document.f1.hotel.options.length=Mountain.length;
			 for(i=0;Mountain[i][0]!=null;i++)
			 {
			   document.f1.hotel.options[parseInt(i)+1].value= document.f1.hotel.options[parseInt(i)+1].text=Mountain[i][0]; 
			    if( parseInt(i) == parseInt(hindex))
				  document.f1.hotel.selectedIndex=i+1;
			 }  
 	     }	 

	 	 if(document.f1.category.selectedIndex==4)
		 {
			 document.f1.hotel.options.length=Ayervedic.length;
			  for(i=0;Ayervedic[i][0]!=null;i++)
			  {
			    document.f1.hotel.options[parseInt(i)+1].value= document.f1.hotel.options[parseInt(i)+1].text=Ayervedic[i][0];
				 if( parseInt(i) == parseInt(hindex))
				  document.f1.hotel.selectedIndex=i+1;
			  }	
		  }	
        if(document.f1.category.selectedIndex==5)
		 {
			 document.f1.hotel.options.length=Resorts.length;
			 for(i=0;Resorts[i][0]!=null;i++)
			 {
			   document.f1.hotel.options[parseInt(i)+1].value= document.f1.hotel.options[parseInt(i)+1].text=Resorts[i][0]; 
			    if( parseInt(i) == parseInt(hindex))
				  document.f1.hotel.selectedIndex=i+1;
			 }  
 	     }	
   		   document.f1.hotel.length=i+1;
           changeRoomType(1);		  
	   }
	   else
	   {
	    		    for(i=0;i<document.f1.hotel2.options.length;i++)
			           document.f1.hotel2.options[i].value = document.f1.hotel2.options[i].text="";
			
  			 document.f1.hotel2.options[0].value="";
			 document.f1.hotel2.options[0].text="Select One";
			 
			 var hindex = document.f1.hindex.value;
			  
	   if(document.f1.category2.selectedIndex==0)
	   {
	      document.f1.hotel2.disabled=true;
	      return;
	   }
	   else
	   {
	       document.f1.hotel2.disabled=false;
		   document.f1.hotel2.options.length=20;
	    }		
	 	 if(document.f1.category2.selectedIndex==1)
		 {
		    	 
			 document.f1.hotel2.options.length=Backwater.length;
			 for(i=0;Backwater[i][0]!=null;i++)
			 {
			    document.f1.hotel2.options[parseInt(i)+1].value= document.f1.hotel2.options[parseInt(i)+1].text=Backwater[i][0]; 
				 if( parseInt(i) == parseInt(hindex) )
				  document.f1.hotel2.selectedIndex=i+1;
		     }		
    	 }	 
	 	 if(document.f1.category2.selectedIndex==2)
		 {
			 document.f1.hotel2.options.length=Beach.length;
			 for(i=0;Beach[i][0]!=null;i++)
			 {
			    document.f1.hotel2.options[parseInt(i)+1].value= document.f1.hotel2.options[parseInt(i)+1].text=Beach[i][0];
				 if( parseInt(i) == parseInt(hindex))
				  document.f1.hotel2.selectedIndex=i+1;
			 }	
		  }
		  
	 	 if(document.f1.category2.selectedIndex==3)
		 {
			 document.f1.hotel2.options.length=Mountain.length;
			 for(i=0;Mountain[i][0]!=null;i++)
			 {
			   document.f1.hotel2.options[parseInt(i)+1].value= document.f1.hotel.options[parseInt(i)+1].text=Mountain[i][0]; 
			    if( parseInt(i) == parseInt(hindex))
				  document.f1.hotel2.selectedIndex=i+1;
			 }  
 	     }	 
	 	 if(document.f1.category2.selectedIndex==4)
		 {
			 document.f1.hotel2.options.length=Ayervedic.length;
			  for(i=0;Ayervedic[i][0]!=null;i++)
			  {
			    document.f1.hotel2.options[parseInt(i)+1].value= document.f1.hotel2.options[parseInt(i)+1].text=Ayervedic[i][0];
				 if( parseInt(i) == parseInt(hindex))
				  document.f1.hotel2.selectedIndex=i+1;
			  }	
		  }	 
		  
 	 	 if(document.f1.category2.selectedIndex==5)
		 {
			 document.f1.hotel2.options.length=Resorts.length;
			 for(i=0;Resorts[i][0]!=null;i++)
			 {
			    document.f1.hotel2.options[parseInt(i)+1].value= document.f1.hotel2.options[parseInt(i)+1].text=Resorts[i][0];
				 if( parseInt(i) == parseInt(hindex))
				  document.f1.hotel2.selectedIndex=i+1;
			 }	
		  }	 

   		   document.f1.hotel2.length=i+1;
           changeRoomType(2);		
	  
	  }	   
		  
	} 
	
	function changeRoomType(no)
	{
	     var x,y;
		 if(no == "1")
		 {
	    	x = document.f1.category.selectedIndex;
	        k = document.f1.hotel.options.selectedIndex;
		    k = parseInt(k-1);
		   for(y=0; y<document.f1.typeofroom.options.length; y++)
		      document.f1.typeofroom.options[y].value = document.f1.typeofroom.options[y].text ="";
		  
     		document.f1.typeofroom.options.length=20;
               y=1;		
		    if(k>=0 && x >0)
		    {
 	            document.f1.typeofroom.options[0].value="";
   	            document.f1.typeofroom.options[0].text="Select One";
		        switch(parseInt(x))
			    {
			        case 1:
			             for(y=1; Backwater[k][y]!=null; y++)
    			            document.f1.typeofroom.options[y].value= document.f1.typeofroom.options[y].text=Backwater[k][y];
							document.f1.typeofroom.options[0].selected = true;
							document.f1.typeofroom.options.length=parseInt(y);
							break;	
				   case 2:
					     for(y=1; Beach[k][y]!=null; y++)
		    			    document.f1.typeofroom.options[y].value= document.f1.typeofroom.options[y].text=Beach[k][y];
						break;	
				   case 3:
					     for(y=1; Mountain[k][y]!=null; y++)
    			    		document.f1.typeofroom.options[y].value= document.f1.typeofroom.options[y].text=Mountain[k][y];
						break;	
				
				   case 4:
					      for(y=1; Ayervedic[k][y]!=null; y++)
		    			    document.f1.typeofroom.options[y].value= document.f1.typeofroom.options[y].text=Ayervedic[k][y];
							break;	
                  case 5:
						    for(y=1; Resorts[k][y]!=null; y++)
		    			    document.f1.typeofroom.options[y].value= document.f1.typeofroom.options[y].text=Resorts[k][y];
							break;				       
			}
			   if(document.f1.typeofroom.options[0] != null)
				 document.f1.typeofroom.options[0].selected = true;
 			     document.f1.typeofroom.options.length=parseInt(y);
  		 } 
	}

		else
		{
		  	x = document.f1.category2.selectedIndex;
	        k = document.f1.hotel2.options.selectedIndex;
		    k = parseInt(k-1);
		for(y=0; y<document.f1.typeofroom2.options.length; y++)
		  document.f1.typeofroom2.options[y].value = document.f1.typeofroom2.options[y].text ="";
		  
		document.f1.typeofroom2.options.length=20;
         y=1;		
		if(k>=0 && x >0)
		{
 	      document.f1.typeofroom2.options[0].value="";
	      document.f1.typeofroom2.options[0].text="Select One";
		    switch(parseInt(x))
			{
			   case 1:
			     for(y=1; Backwater[k][y]!=null; y++)
    			    document.f1.typeofroom2.options[y].value= document.f1.typeofroom2.options[y].text=Backwater[k][y];
					document.f1.typeofroom2.options[0].selected = true;
					document.f1.typeofroom2.options.length=parseInt(y);
				break;	
			   case 2:
			     for(y=1; Beach[k][y]!=null; y++)
    			    document.f1.typeofroom2.options[y].value= document.f1.typeofroom2.options[y].text=Beach[k][y];
				break;	
			   case 3:
			     for(y=1; Mountain[k][y]!=null; y++)
    			    document.f1.typeofroom2.options[y].value= document.f1.typeofroom2.options[y].text=Mountain[k][y];
				break;	
				
			   case 4:
			      for(y=1; Ayervedic[k][y]!=null; y++)
    			    document.f1.typeofroom2.options[y].value= document.f1.typeofroom2.options[y].text=Ayervedic[k][y];
				break;	
				
			   case 4:
			      for(y=1; Resorts[k][y]!=null; y++)
    			    document.f1.typeofroom2.options[y].value= document.f1.typeofroom2.options[y].text=Resorts[k][y];
				break;	


			}
			   if(document.f1.typeofroom2.options[0] != null)
				 document.f1.typeofroom2.options[0].selected = true;
 			     document.f1.typeofroom2.options.length=parseInt(y);
		}
		
	 }
	
	}


			  function validate()
			{
			  if(document.f1.name.value=="")
			  {
			    alert("Please enter your name");
				document.f1.name.focus();
				return false;
			  }
			   if(document.f1.phone.value=="" || ! (properNo()) )
			  {
			    alert("Please enter your phone number \n phone number  can have only digits from 0 to 9 and special like +,-");
				document.f1.phone.focus();
				return false;
			  }
              if(document.f1.email.value=="" || document.f1.email.value.indexOf("@")== -1 ||document.f1.email.value.indexOf(".")== -1)
			  {
			    alert("Please enter your proper e-mail ID");
				document.f1.email.focus();
				return false;
			  }
			  if(document.f1.category.value=="")
			  {
			    alert("Please select the Resort category");
				document.f1.category.focus();
				return false;
			  }
			  
			
			   if(document.f1.hotel.value=="")
			  {
			    alert("Please select the Resort");
				document.f1.hotel.focus();
				return false;
			  }
			  
			    if(document.f1.category2.value=="")
			  {
			    alert("Please select the Resort category & Resort from option 2 ");
				document.f1.category2.focus();
				return false;
			  }
			   if(document.f1.hotel2.value=="")
			  {
			    alert("Please select the Resort from option 2");
				document.f1.hotel2.focus();
				return false;
			  }
		 if(document.f1.checkindate.value=="" ||document.f1.checkindate.value== "dd/mm/yyyy" )
			  {
			     alert("Please enter the check in date");
				 document.f1.checkindate.focus();
				 return false;
			  }
			  if(document.f1.checkoutdate.value=="" || document.f1.checkoutdate.value=="dd/mm/yyyy" )
			  {
			     alert("Please enter the check Out date");
				 document.f1.checkindate.focus();
				 return false;
			  }
	
	  		  if(document.f1.terms.checked==false)
			  {
			    alert("Please checkout terms");
				document.f1.terms.focus();
				return false;
			  }

  			  return (validateDate());
		    }
			// check for the acceptence of terms and conditions 
			
			function properNo()
			{
			   var s = "abcdefghijklmnopqrstuvwxyz/<>?{}[]!@#$%^&*()_";
			   var ph = document.f1.phone.value;
			   for( i=0; i< ph.length; i++)
			   {
			     if( s.indexOf( ph.charAt(i)) != -1)
			       return false;
 			   } 
			   return true;
			}
			function checkAccept(){
				if(document.f1.terms.checked==true){
					document.f1.Submit.disabled=false;
				}else{
				document.f1.Submit.disabled=true;
				}
			}

// JavaScript Document


//--------------------------------------------------------------------------------------
// To show the tariff page on the reservation form [ click here for tariff ]
       function showTarrif(no)
			{
			    var hotelname = "";
			     if(no == "1")
				{
			       hotelname = document.f1.hotel.options[document.f1.hotel.selectedIndex].text;
				}
				else
				{
     			   hotelname = document.f1.hotel2.options[document.f1.hotel.selectedIndex].text;
				}  
				  if(hotelname =="" || hotelname == "Select One") return;
				  var sourcefile="resorts/tariff/"+hotelname+".htm";
				 NewWindow(sourcefile,'Tariff','440','250','yes','center')
			}
//--------------------------------------------------------------------------------------
// Reset the form on load

			 function resetform()
             {
			   if(document.f1.terms != null )
                document.f1.terms.checked = false;
               	changeHotels(1);
				if(document.f1.name != null )
            	document.f1.name.focus();
				return;
            }
//--------------------------------------------------------------------------------------



//  Calendar form

var now = new Date(); 
now.setDate( parseInt(now.getDate()) -1 );
var cal = new CalendarPopup();
cal.addDisabledDates(null,formatDate(now,"yyyy-MM-dd")); 
cal.addDisabledDates("12/25/2007"); 
cal.addDisabledDates("Jan 1, 2008",null);

// -----------------------------------------------------------------------------------
//  To open new Window     

	var win=null;
	function NewWindow(mypage,myname,w,h,scroll,pos){
		if(pos=="random")
			{LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;
			TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
		if(pos=="center")
			{LeftPosition=(screen.width)?(screen.width-w)/2:100;
			TopPosition=(screen.height)?(screen.height-h)/2:100;}
		else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
	settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes';
	win=window.open(mypage,myname,settings);
	}
// -----------------------------------------------------------------------------------

