function abrirNueva(URL)
{
	day=new Date();
	id=day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'directories=no,toolbar=1,scrollbars=1,location=no,statusbar=1,menubar=1,resizable=1,width=800,height=600,left = 50,top = 75');");
}
function redirect()
{
	var page = "http://www.agencyengine.com/web/cruises/search.aspx?sid1=9548227062&referrer=&CruiseLine="+ 
	document.form.CruiseLine.value ;
	page = page + "&Ship="+ document.form.Ship.value ;
	page = page + "&Destinations="+ document.form.Destinations.value ;
	page = page + "&MinDuration=&MaxDuration=";
	page = page + "&StartDate="+ document.form.StartDate.value ;
	page = page + "&EndDate=" ;
	page = page + "&DeparturePorts="+ document.form.DeparturePorts.value ;
	page = page + "&Duration="+ document.form.Duration.value;
	abrirNueva(page);
}
function ShipInformation(cruiser)
{
    var Num= document.form.Ship.length;
	for (i=1; i <=Num; i++)
        document.form.Ship.remove(1)
	var nameShip="";
	var Name1;
	var Value1;
	if (cruiser==1)//carnival
	{
		Name1=new Array  ("Carnival - Celebration","Carnival - Conquest","Carnival - Destiny","Carnival - Ecstasy","Carnival - Elation","Carnival - Fantasy","Carnival - Fascination","Carnival - Glory","Carnival - Holiday","Carnival - Imagination","Carnival - Inspiration","Carnival - Legend","Carnival - Liberty","Carnival - Miracle","Carnival - Paradise","Carnival - Pride","Carnival - Sensation","Carnival - Spirit","Carnival - Triumph","Carnival - Valor","Carnival - Victory");
		Value1=new Array (9,1,2,10,11,12,13,3,14,15,16,4,96,5,17,18,19,6,7,93,8);
	}
	else if(cruiser==2)
	{
		Name1=new Array  ("Celebrity - Century","Celebrity - Constellation","Celebrity - Galaxy","Celebrity - Horizon","Celebrity - Infinity","Celebrity - Kapitan Khlebnikov","Celebrity - Mercury","Celebrity - Millennium","Celebrity - Summit","Celebrity - Xpedition","Celebrity - Zenith");
		Value1=new Array (20,21,22,23,24,98,25,26,27,97,28);
	}
	else if(cruiser==10)
	{
		Name1=new Array  ("Costa - Allegra","Costa - Atlantica","Costa - Classica","Costa - Europa","Costa - Fortuna","Costa - Magica","Costa - Marina","Costa - Mediterranea","Costa - Romantica","Costa - Tropicale","Costa - Victoria");
		Value1=new Array (100,101,102,103,104,107,105,106,108,109,110);
	}
	else if(cruiser==12)
	{
		Name1=new Array  ("Cunard - Queen Elizabeth 2","Cunard - Queen Mary 2");
		Value1=new Array (117,118);
	}
	else if(cruiser==5)
	{
		Name1=new Array  ("Holland America - ms Amsterdam","Holland America - ms Maasdam","Holland America - ms Noordam","Holland America - ms Oosterdam","Holland America - ms Prinsendam","Holland America - ms Rotterdam","Holland America - ms Ryndam","Holland America - ms Statendam","Holland America - ms Veendam","Holland America - ms Volendam","Holland America - ms Westerdam","Holland America - ms Zaandam","Holland America - ms Zuiderdam");
		Value1=new Array (34,35,36,37,38,39,40,41,42,43,44,45,46);
	}
    else if(cruiser==6)
	{
		Name1=new Array  ("Norwegian - Crown","Norwegian - Dawn","Norwegian - Dream","Norwegian - Jewel","Norwegian - Majesty","Norwegian - Pride of Aloha","Norwegian - Pride of America","Norwegian - Sea","Norwegian - Spirit","Norwegian - Star","Norwegian - Sun","Norwegian - Wind");
		Value1=new Array (47,48,49,95,50,55,56,51,94,52,53,54);
	}
	else if(cruiser==7)
	{
		Name1=new Array  ("Princess - Caribbean Princess","Princess - Coral Princess","Princess - Crown Princess","Princess - Dawn Princess","Princess - Diamond Princess","Princess - Golden Princess","Princess - Grand Princess","Princess - Island Princess","Princess - Pacific Princess","Princess - Practice Princess","Princess - Regal Princess","Princess - Royal Princess","Princess - Sapphire Princess","Princess - Sea Princess","Princess - Star Princess","Princess - Sun Princess","Princess - Tahitian Princess");
		Value1=new Array (57,58,114,59,60,61,62,63,64,115,65,66,67,99,68,69,70);
	}
	else if(cruiser==8)
	{
		Name1=new Array  ("Adventure of the Seas","Brilliance of the Seas","Empress of the Seas","Enchantment of the Seas","Explorer of the Seas","Freedom of the Seas","Grandeur of the Seas","Jewel of the Seas","Legend of the Seas","Majesty of the Seas","Mariner of the Seas","Monarch of the Seas","Navigator of the Seas","Radiance of the Seas","Rhapsody of the Seas","Serenade of the Seas","Sovereign of the Seas","Splendour of the Seas","Vision of the Seas","Voyager of the Seas");
		Value1=new Array (71,72,82,73,74,116,75,76,77,78,79,80,81,83,84,85,86,87,88,89);
	}
	else if(cruiser==11)
	{
		Name1=new Array  ("Seabourn - Legend","Seabourn - Pride","Seabourn - Spirit");
		Value1=new Array (111,112,113);
	}	
	else if(cruiser==9)
	{
		Name1=new Array  ("Windstar - Wind Spirit","Windstar - Wind Star","Windstar - Wind Surf");
		Value1=new Array (90,91,92);
	}
	if(cruiser!='')
	{
		for (i=0; i <=Name1.length - 1; i++)
		{
			var oOption = document.createElement("OPTION");
			form.Ship.options.add(oOption);
			oOption.value = Value1[i];
			oOption.innerText = Name1[i];
		}
	}
}
