//
// JavaScript:
// Dong Chen
//

var win_result;
var win_result2;
var win_result3;

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

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

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

	//window.open('http://www.vacationonline.com/cruises/itineraries.php', 'blank', settings);
	//window.open('/cruises/itineraries.php', 'blank', settings);

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

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

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

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

}

/////////////////////////////////////////////////////////////
function
jumpTo(url) {
		window.location.href = url;
}

function
formSubmit(form, submitTo){
	form.action = submitTo;
	form.submit();
}

//////////////////////////
function popup_converter()
{
   var lpos = (screen.width) ? (screen.width - 630) /2 :0;
   var tpos = (screen.height) ? (screen.height - 300) /2 : 0;

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

   win_result = window.open('http://www.vacationonline.com/converter.php', 'blank', settings);
   
	win_result.focus();
}

//////////////////////////
function popup_timezones()
{
   var lpos = (screen.width) ? (screen.width - 275) /2 :0;
   var tpos = (screen.height) ? (screen.height - 370) /2 : 0;

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

   win_result = window.open('http://www.amadeus.net/home/worldtime/en/calculator.htm', 'blank', settings);
   
	win_result.focus();
}

//////////////////////////
function showPanofull(mapid)
{
var win = window.open('http://display.maxvr.com/mapviewer/fullpopup.asp?nc=1&ident=AA337-' + mapid,'vrxviewer','height=470,width=796,menubar=no,top=5,scrollbars=no,resizable=no,left=0');
win.focus();
}