function addlist(){
var selectList = document.sexch.exch;
if(selectList.value=="selectcat")
{
var llen = document.sexch.indxs.length;
var sellst = document.sexch.indxs;
for (i=1; i<=parseInt(llen); i++){
document.sexch.indxs.length--;
}
sellst.options[0] = new Option( "Hotel Name","");
}
//	alert(selectList.value);
if (selectList.value == "Fstar" ){
var llen = document.sexch.indxs.length;
var sellst = document.sexch.indxs;
for (i=1; i<=parseInt(llen); i++){
document.sexch.indxs.length--;
}
sellst.options[0] = new Option( "Barcelona Hilton","barcelona_hilton_hotel_barcelona.html");
sellst.options[1] = new Option( "Claris","claris_hotelbarcelona.html");
}
if (selectList.value == "Fostar" ){
//alert("im in nse");
var llen = document.sexch.indxs.length;
var sellst = document.sexch.indxs;
for (i=1; i<=parseInt(llen); i++){
document.sexch.indxs.length--;
}
sellst.options[0] = new Option( "Abba Sants Hotel","abba_sants_hotel_barcelona.html");
sellst.options[1] = new Option( "Aparthotel Mariano Cubi","aparthotel_mariano_cubi_hotel_barcelona.html");
sellst.options[2] = new Option( "Catalonia Atenas","catalonia_atenashotel_barcelona.html");
sellst.options[3] = new Option( "Catalonia Corcega","catalonia_corcega_hotel_barcelona.html");
sellst.options[4] = new Option( "Catalonia Park Putxet","catalonia_park_putxet_barcelonahotel.html");
sellst.options[5] = new Option( "Catalonia Suite","catalonia_suite_barcelona_hotels.html");
sellst.options[6] = new Option( "Derby Hotel","derby_hotel_barcelona.html");
sellst.options[7] = new Option( "Expo Hotel","expo_hotel_barcelona.html");
sellst.options[8] = new Option( "Fira Palace Hotel","fira_palace_hotel-barcelona.html");
sellst.options[9] = new Option( "Guitart Almirante","guitart_almirante_hotel_barcelona.html");
sellst.options[10] = new Option( "Hotel Barcino","hotel_barcino_barcelona.html");
sellst.options[11] = new Option( "Hotel Bel Art, Barcelona","hotel_bel_art_barcelona.html");
sellst.options[12] = new Option( "Husa L'illa","husa_lilla_hotel_barcelona.html");
sellst.options[13] = new Option( "Rafael Hotel Diagonal Port","rafael_hotel_diagonal_port_barcelona.html");
sellst.options[14] = new Option( "St. Moritz","st_moritz_hotel_barcelona.html");
sellst.options[15] = new Option( "Regente Hotel","regente_hotel_barcelona.html");
sellst.options[16] = new Option( "Torre Catalunya","torre_catalunya_hotel_barcelona.html");
sellst.options[17] = new Option( "Tryp Apolo","tryp_apolo_hotel_barcelona.html");
 }
if (selectList.value == "Tstar" ){
var llen = document.sexch.indxs.length;
var sellst = document.sexch.indxs;
for (i=1; i<=parseInt(llen); i++){
document.sexch.indxs.length--;
}
sellst.options[0] = new Option( "Aston Hotel","aston_hotel_barcelona.html");
sellst.options[1] = new Option( "Astoria","astoria_hotel_barcelona.html");
sellst.options[2] = new Option( "Balmes Hotel","balmes_hotel_barcelona.html");
sellst.options[3] = new Option( "Catalonia Aragon","catalonia_aragon_hotel_barcelona.html");
sellst.options[4] = new Option( "Catalonia Princesa","catalonia_princesa_hotel_barcelona.html");
sellst.options[5] = new Option( "Catalonia Rubens","catalonia_rubens_hotel_barcelona.html");
sellst.options[6] = new Option( "Covadonga","covadonga_hotel_barcelona.html");
sellst.options[7] = new Option( "Hotel Amrey Diagonal","hotel_amrey_diagonal_hotel_barcelona.html");
sellst.options[8] = new Option( "Hotel Rialto","hotel_rialto_hotelbarcelona.html");
sellst.options[9] = new Option( "Montblanc","montblanc_hotel_barcelona.html");
sellst.options[10] = new Option( "Nouvel","nouvel_hotel_barcelona.html");
sellst.options[11] = new Option( "Open Hotel","open_hotel_barcelona.html");
sellst.options[12] = new Option( "Oriente Hotel","oriente_hotel_barcelona.html");
sellst.options[13] = new Option( "Suizo Hotel","suizo_hotel-barcelona.html");
sellst.options[14] = new Option( "Taber Hotel","taber_hotel_barcelona.html");
//loadpage('nsegraphfeed1.xml');
//document.aa.ind.value=
  }
if (selectList.value == "Other" ){
//alert("im in nse");
//var llen = document.sexch.indxs.length;
var sellst = document.sexch.indxs;
for (i=1; i<=parseInt(llen); i++){
document.sexch.indxs.length--;
}
sellst.options[0] = new Option( "Hostal Lami","hostal_lami_hotel_barcelona.html");
sellst.options[1] = new Option( "Hotel Amrey Sant Pau","hotel_amrey_sant_pau_hotel_barcelona.html");
sellst.options[2] = new Option( "Husa International","husa_international_hotel_barcelona.html");
sellst.options[3] = new Option( "Junior","junior_hotel_barcelona.html");
sellst.options[4] = new Option( "Santa Marta","santa_marta_hotel_barcelona.html");
//loadpage('nsegraphfeed1.xml');
//document.aa.ind.value=
  }
if (selectList.value == "other" ){
var llen = document.sexch.indxs.length;
var sellst = document.sexch.indxs;
for (i=1; i<=parseInt(llen); i++){
document.sexch.indxs.length--;
}
//sellst.options[0] = new Option( "Sensex","bsegraphfeed1.xml");
//loadpage('bsegraphfeed1.xml');
  }
var len = selectList.options.length;
//selectList.options[len] = new Option("cc", "cc");
  }
    function loadPage()
  {
  var i
  i=document.sexch.indxs.value
  if(i=="")
	{
	//alert('hello')
	return false
	}
  //alert(i)
  else  
    {
	window.location.href=i
	}
	
  }

