
/////////////////////////////////////////////////////////////
function openNewWindow(URLtoOpen, windowName, windowFeatures)
{

                newWindow = window.open(URLtoOpen, windowName, windowFeatures);

}


////////////////////
function popup_itinerary(id)
{
        var id = id;

        var lpos = (screen.width) ? (screen.width - 800) / 2 : 0;
        var tpos = (screen.height) ? (screen.height - 450) / 2 : 0;

        var settings ='height=450,width=800,top='+tpos+',left='+lpos+',menubar=no,toolbar=no,scrollbars=yes,resizable=yes'

        win_result = window.open('http://book.cruise-pros.com/travel/cruise/ship.rvlx?ShipID='+id, 'blank' + Math.floor(Math.random()*100000), settings);

        win_result.focus();
        return false;
}


//////////////////////////////
function popup_deckplans(id)
{
        var id = id;

        var lpos = (screen.width) ? (screen.width - 500) / 2 : 0;
        var tpos = (screen.height) ? (screen.height - 500) / 2 : 0;

        var settings ='height=500,width=500,top='+tpos+',left='+lpos+',menubar=no,toolbar=no,scrollbars=yes,resizable=yes'

        win_result = window.open('http://book.cruise-pros.com/travel/cruise/shipdeck.rvlx?printable=1&ShipID='+id, 'blank' + Math.floor(Math.random()*100000), settings);

        win_result.focus();
        return false;
}

//////////////////////////////
function popup_cabinphotos(id)
{
        var id = id;

        var lpos = (screen.width) ? (screen.width - 500) / 2 : 0;
        var tpos = (screen.height) ? (screen.height - 500) / 2 : 0;

        var settings ='height=500,width=500,top='+tpos+',left='+lpos+',menubar=no,toolbar=no,scrollbars=yes,resizable=yes'

        win_result = window.open('http://book.cruise-pros.com/travel/cruise/ship_rooms.rvlx?printable=1&ShipID='+id, 'blank' + Math.floor(Math.random()*100000), settings);

        win_result.focus();
        return false;
}

////////////////////
function popup_port(id)
{
        var id = id;

        var lpos = (screen.width) ? (screen.width - 810) / 2 : 0;
        var tpos = (screen.height) ? (screen.height - 600) / 2 : 0;

        var settings ='height=600,width=810,top='+tpos+',left='+lpos+',menubar=no,toolbar=no,scrollbars=yes,resizable=yes'

        win_result = window.open('http://book.cruise-pros.com/destinations/guide.rvlx?dg_id='+id, 'blank' + Math.floor(Math.random()*100000), settings);

        win_result.focus();
        return false;
}

//////////////////////////////
function popup_faqs(id)
{
        var id = id;

        var lpos = (screen.width) ? (screen.width - 550) / 2 : 0;
        var tpos = (screen.height) ? (screen.height - 500) / 2 : 0;

        var settings ='height=500,width=550,top='+tpos+',left='+lpos+',menubar=no,toolbar=no,scrollbars=yes,resizable=yes'

        win_result = window.open('faqs.php#'+id, 'blank', settings);

        win_result.focus();
        return false;
}

///////////////////////////
function popup_poetry_shipinfo()
{
   // center popups ...
   var lpos = (screen.width) ? (screen.width - 550) /2 :0;
   var tpos = (screen.height) ? (screen.height - 600) /2 : 0;

   var settings = 'height=600,width=550,top='+tpos+',left='+lpos+',menubar=no,toolbar=no,scrollbars=yes,resizable=no'

   //win_result.focus();
   //return false;

	//window.open('http://www.cruise-pros.com/specialty_cruises/river_cruises/poetry_shipinfo.php', 'blank', settings);
	//window.open('poetry_shipinfo.php', 'blank', settings);

	window.open('poetry_shipinfo.php', 'blank' + Math.floor(Math.random()*100000), settings);

	//win_result.focus();
	//return false;
}

///////////////////////////
function popup_poetry_cabinphotos()
{
   // center popups ...
   var lpos = (screen.width) ? (screen.width - 600) /2 :0;
   var tpos = (screen.height) ? (screen.height - 650) /2 : 0;

   var settings = 'height=650,width=600,top='+tpos+',left='+lpos+',menubar=no,toolbar=no,scrollbars=yes,resizable=no'

   //win_result.focus();
   //return false;

	//window.open('http://www.cruise-pros.com/specialty_cruises/river_cruises/poetry_cabinphotos.php', 'blank', settings);
	//window.open('poetry_cabinphotos.php', 'blank', settings);

	window.open('poetry_cabinphotos.php', 'blank' + Math.floor(Math.random()*100000), settings);

	//win_result.focus();
	//return false;
}

///////////////////////////
function popup_poetry_deckplans()
{
   // center popups ...
   var lpos = (screen.width) ? (screen.width - 600) /2 :0;
   var tpos = (screen.height) ? (screen.height - 450) /2 : 0;

   var settings = 'height=450,width=600,top='+tpos+',left='+lpos+',menubar=no,toolbar=no,scrollbars=yes,resizable=no'

   //win_result.focus();
   //return false;

	//window.open('http://www.cruise-pros.com/specialty_cruises/river_cruises/poetry_deckplans.php', 'blank', settings);
	//window.open('poetry_deckplans.php', 'blank', settings);

	window.open('poetry_deckplans.php', 'blank' + Math.floor(Math.random()*100000), settings);

	//win_result.focus();
	//return false;
}

///////////////////////////
function popup_poetry_shipphotos()
{
   // center popups ...
   var lpos = (screen.width) ? (screen.width - 650) /2 :0;
   var tpos = (screen.height) ? (screen.height - 650) /2 : 0;

   var settings = 'height=650,width=650,top='+tpos+',left='+lpos+',menubar=no,toolbar=no,scrollbars=yes,resizable=no'

   //win_result.focus();
   //return false;

	//window.open('http://www.cruise-pros.com/specialty_cruises/river_cruises/poetry_shipphotos.php', 'blank', settings);
	//window.open('poetry_shipphotos.php', 'blank', settings);

	window.open('poetry_shipphotos.php', 'blank' + Math.floor(Math.random()*100000), settings);

	//win_result.focus();
	//return false;
}

///////////////////////////
function popup_tapestry_shipinfo()
{
   // center popups ...
   var lpos = (screen.width) ? (screen.width - 550) /2 :0;
   var tpos = (screen.height) ? (screen.height - 600) /2 : 0;

   var settings = 'height=600,width=550,top='+tpos+',left='+lpos+',menubar=no,toolbar=no,scrollbars=yes,resizable=no'

   //win_result.focus();
   //return false;

	//window.open('http://www.cruise-pros.com/specialty_cruises/river_cruises/tapestry_shipinfo.php', 'blank', settings);
	//window.open('tapestry_shipinfo.php', 'blank', settings);

	window.open('tapestry_shipinfo.php', 'blank' + Math.floor(Math.random()*100000), settings);

	//win_result.focus();
	//return false;
}

///////////////////////////
function popup_tapestry_cabinphotos()
{
   // center popups ...
   var lpos = (screen.width) ? (screen.width - 600) /2 :0;
   var tpos = (screen.height) ? (screen.height - 650) /2 : 0;

   var settings = 'height=650,width=600,top='+tpos+',left='+lpos+',menubar=no,toolbar=no,scrollbars=yes,resizable=no'

   //win_result.focus();
   //return false;

	//window.open('http://www.cruise-pros.com/specialty_cruises/river_cruises/tapestry_cabinphotos.php', 'blank', settings);
	//window.open('tapestry_cabinphotos.php', 'blank', settings);

	window.open('tapestry_cabinphotos.php', 'blank' + Math.floor(Math.random()*100000), settings);

	//win_result.focus();
	//return false;
}

///////////////////////////
function popup_tapestry_deckplans()
{
   // center popups ...
   var lpos = (screen.width) ? (screen.width - 600) /2 :0;
   var tpos = (screen.height) ? (screen.height - 450) /2 : 0;

   var settings = 'height=450,width=600,top='+tpos+',left='+lpos+',menubar=no,toolbar=no,scrollbars=yes,resizable=no'

   //win_result.focus();
   //return false;

	//window.open('http://www.cruise-pros.com/specialty_cruises/river_cruises/tapestry_deckplans.php', 'blank', settings);
	//window.open('tapestry_deckplans.php', 'blank', settings);

	window.open('tapestry_deckplans.php', 'blank' + Math.floor(Math.random()*100000), settings);

	//win_result.focus();
	//return false;
}

///////////////////////////
function popup_portinfo()
{
   // center popups ...
   var lpos = (screen.width) ? (screen.width - 550) /2 :0;
   var tpos = (screen.height) ? (screen.height - 400) /2 : 0;

   var settings = 'height=400,width=550,top='+tpos+',left='+lpos+',menubar=no,toolbar=no,scrollbars=yes,resizable=no'

   //win_result.focus();
   //return false;

	//window.open('http://www.cruise-pros.com/groups/portinfo.php', 'blank', settings);
	//window.open('portinfo.php', 'blank', settings);

	window.open('portinfo.php', 'blank' + Math.floor(Math.random()*100000), settings);

	//win_result.focus();
	//return false;
}

///////////////////////////
function popup_group_flyer()
{
   // center popups ...
   var lpos = (screen.width) ? (screen.width - 625) /2 :0;
   var tpos = (screen.height) ? (screen.height - 400) /2 : 0;

   var settings = 'height=400,width=625,top='+tpos+',left='+lpos+',menubar=no,toolbar=no,scrollbars=yes,resizable=no'

   //win_result.focus();
   //return false;

	//window.open('http://www.cruise-pros.com/groups/flyer.php', 'blank', settings);
	//window.open('flyer.php', 'blank', settings);

	window.open('flyer.php', 'blank' + Math.floor(Math.random()*100000), settings);

	//win_result.focus();
	//return false;
}


///////////////////////////
function popup_hal_promo()
{
   // center popups ...
   var lpos = (screen.width) ? (screen.width - 800) /2 :0;
   var tpos = (screen.height) ? (screen.height - 600) /2 : 0;

   var settings = 'height=600,width=800,top='+tpos+',left='+lpos+',menubar=no,toolbar=no,scrollbars=yes,resizable=no'

   //win_result.focus();
   //return false;

	//window.open('http://ta1.net/hal_vv/bckpg-vv-1rev.htm', 'blank', settings);
	//window.open('http://ta1.net/hal_vv/bckpg-vv-1rev.htm', 'blank', settings);

	window.open('http://ta1.net/hal_vv/bckpg-vv-1rev.htm', 'blank' + Math.floor(Math.random()*100000), settings);

	//win_result.focus();
	//return false;
}

///////////////////////////
function popup_currency()
{
   // center popups ...
   var lpos = (screen.width) ? (screen.width - 600) /2 :0;
   var tpos = (screen.height) ? (screen.height - 400) /2 : 0;

   var settings = 'height=400,width=600,top='+tpos+',left='+lpos+',menubar=no,toolbar=no,scrollbars=yes,resizable=no'

   //win_result.focus();
   //return false;

	//window.open('http://book.cruise-pros.com/currencyconverter.rvlx?printable=1', 'blank', settings);
	//window.open('http://book.cruise-pros.com/currencyconverter.rvlx?printable=1', 'blank', settings);

	window.open('http://book.cruise-pros.com/currencyconverter.rvlx?printable=1', 'blank' + Math.floor(Math.random()*100000), settings);

	//win_result.focus();
	//return false;
}

///////////////////////////
function popup_culinary_chefs()
{
   // center popups ...
   var lpos = (screen.width) ? (screen.width - 500) /2 :0;
   var tpos = (screen.height) ? (screen.height - 400) /2 : 0;

   var settings = 'height=400,width=500,top='+tpos+',left='+lpos+',menubar=no,toolbar=no,scrollbars=yes,resizable=no'

   //win_result.focus();
   //return false;

	//window.open('http://www.cruise-pros.com/specialty_cruises/culinary_chefs.php', 'blank', settings);
	//window.open('culinary_chefs.php', 'blank', settings);

	window.open('culinary_chefs.php', 'blank' + Math.floor(Math.random()*100000), settings);

	//win_result.focus();
	//return false;
}

///////////////////////////
function popup_culinary_excursions()
{
   // center popups ...
   var lpos = (screen.width) ? (screen.width - 500) /2 :0;
   var tpos = (screen.height) ? (screen.height - 400) /2 : 0;

   var settings = 'height=400,width=500,top='+tpos+',left='+lpos+',menubar=no,toolbar=no,scrollbars=yes,resizable=no'

   //win_result.focus();
   //return false;

	//window.open('http://www.cruise-pros.com/specialty_cruises/culinary_excursions.php', 'blank', settings);
	//window.open('culinary_excursions.php', 'blank', settings);

	window.open('culinary_excursions.php', 'blank' + Math.floor(Math.random()*100000), settings);

	//win_result.focus();
	//return false;
}

///////////////////////////
function PortPromo(URL) 
{
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=yes,location=0,statusbar=0,menubar=1,resizable=0,width=600,height=600,left = 262,top = 84');");
}

///////////////////////////
function popup_freedom()
{
   // center popups ...
   var lpos = (screen.width) ? (screen.width - 800) /2 :0;
   var tpos = (screen.height) ? (screen.height - 600) /2 : 0;

   var settings = 'height=600,width=800,top='+tpos+',left='+lpos+',menubar=no,toolbar=no,scrollbars=yes,resizable=yes'

   //win_result.focus();
   //return false;

	//window.open('http://www.freedomoftheseas.com/?sid=20&sv=trade', 'blank', settings);
	//window.open('http://www.freedomoftheseas.com/?sid=20&sv=trade', 'blank', settings);

	window.open('http://www.freedomoftheseas.com/?sid=20&sv=trade', 'blank' + Math.floor(Math.random()*100000), settings);

	//win_result.focus();
	//return false;
}

