function popup(url,title,width,height)
{
   window.open(url, title, 'resizeable=no,scrollbars=yes,width='+width+',height='+height+',innerWidth='+width+',innerHeight='+height+',titlebar=no');
}

function airportList()
 {
    //var airportList = window.open ("/airportlist",  "airportList","location=1,status=1,scrollbars=1, menubar=0, width=450,height=550");
  	//airportList.moveTo(350,100);
    popup("/airportlist", "airportList", 450, 550);
 } 

function whenTogoPopup()
 {
    //var whenTogoPopuptest = window.open ("/whentogohelp",  "whenTogo_Popup","location=1,status=1,scrollbars=1, menubar=0, width=550,height=300");
  	//whenTogoPopuptest.moveTo(350,100);
    popup("/whentogohelp", "whenTogo_Popup", 550, 300);
	
 } 

function interstitialPop(type)
 {
    //var interstitial = window.open ("/interstitial",  "Interstitial","location=1,status=1,scrollbars=1, menubar=0, width=550,height=300");
  	//interstitial.moveTo(350,100);
   var is_chrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1;
   if (is_chrome)
      newWindowChrome("/interstitial/"+type, 'popup', 990, 420, 1, 1, 0, 0, 'no', 1, 1);
   else
      newWindow("/interstitial/"+type, 'popup', 990, 420, 1, 1, 0, 0, 'no', 1, 1);
	
 } 

function newsFlashPopup()
 {
    //var newsFlashPopup = window.open ("/newsflashhelp",  "newsFlashPopup","location=1,status=1,scrollbars=1, menubar=0, width=450,height=300");
  	//newsFlashPopup.moveTo(350,100);
    popup("/newsflashhelp", "newsFlashPopup", 450, 300);
 } 

 
 function destinationExample()
 {
    //var destinationExample = window.open ("/destinationexample",  "destinationExample","location=1,status=1,scrollbars=1, menubar=0, width=550,height=550");
    //destinationExample.moveTo(350,100);
    popup("/destinationexample", "destinationExample", 550, 550);
 } 
 
 function imageUploadTerms()
 {
    //var imageUploadTerms = window.open ("/imageuploadterms",  "imageUploadTerms","location=1,status=1,scrollbars=1, menubar=0, width=450,height=200");
    //imageUploadTerms.moveTo(350,100);
    popup("/imageuploadterms", "imageUploadTerms", 450, 200);
 } 
 
 function budgetList()
 {
    //var airportList = window.open ("/budgetlist",  "budgetList","location=1,status=1,scrollbars=1, menubar=0, width=450,height=150");
  	//airportList.moveTo(350,100);
    popup("/budgetlist", "budgetList", 450, 150);
 } 
 
 function exampledest()
 {
    //var exampleList = window.open ("/exampledest",  "Example","location=1,status=1,scrollbars=1, menubar=0, width=450,height=450");
    //exampleList.moveTo(350,100);
    popup("/exampledest", "Example", 450, 450);
 } 
 
 function exampleattr()
 {
    //var exampleList = window.open ("/exampleattr",  "Example","location=1,status=1,scrollbars=1, menubar=0, width=450,height=450");
    //exampleList.moveTo(350,100);
    popup("/exampleattr", "Example", 450, 450);
 } 
 
 function exampletour()
 {
    //var exampleList = window.open ("/exampletour",  "Example","location=1,status=1,scrollbars=1, menubar=0, width=450,height=650");
    //exampleList.moveTo(350,100);
    popup("/exampletour", "Example", 450, 650);
 } 
 
 function examplenewsflash()
 {
    //var exampleList = window.open ("/examplenewsflash",  "Example","location=1,status=1,scrollbars=1, menubar=0, width=450,height=300");
    //exampleList.moveTo(350,100);
    popup("/examplenewsflash", "Example", 450, 300);
 } 

function scoreboxdesthelp()
 {
    //var scoreboxhelp = window.open ("/scoreboxdesthelp",  "ScoreBoxDestHelp","location=1,status=1,scrollbars=1, menubar=0, width=550,height=600");
  	//scoreboxhelp.moveTo(350,100);
    popup("/scoreboxdesthelp", "ScoreBoxDestHelp", 550, 600);
 }  

function scoreboxattrhelp()
 {
    //var scoreboxhelp = window.open ("/scoreboxattrhelp",  "ScoreBoxAttrHelp","location=1,status=1,scrollbars=1, menubar=0, width=550,height=600");
  	//scoreboxhelp.moveTo(350,100);
    popup("/scoreboxattrhelp", "ScoreBoxAttrHelp", 550, 600);
 } 

function scoreboxtourhelp()
 {
    //var scoreboxhelp = window.open ("/scoreboxtourhelp",  "ScoreBoxTourHelp","location=1,status=1,scrollbars=1, menubar=0, width=550,height=600");
  	//scoreboxhelp.moveTo(350,100);
    popup("/scoreboxtourhelp", "ScoreBoxTourHelp", 550, 600);
 } 

function why()
 {
    //var why = window.open ("/why",  "Why","location=1,status=1,scrollbars=1, menubar=0, width=450,height=400");
  	//why.moveTo(350,100);
    popup("/why", "Why", 450, 400);
 }

function homepop()
{
   popup('/homepop', 'Help', 700, 550);
} 

function tourcountdown(url)
 {
    var why = window.open ("/tourcountdown/"+url,  "Interstitial","location=1,status=1,scrollbars=1, menubar=1, titlebar=1, toolbar =1");
  	//why.moveTo(350,50);
 } 

function quality()
 {
    //var quality = window.open ("/quality",  "Quality","location=1,status=1,scrollbars=1, menubar=0, width=350,height=200");
    popup("/quality", "Quality", 350, 200);
 } 

function fit()
 {
    //var fit = window.open ("/fit",  "fit","location=1,status=1,scrollbars=1, menubar=0, width=350,height=200");
    popup("/fit", "fit", 350, 200);
 } 

function overall_rating(id)
 {
    //var why = window.open ("/overall_rating/"+id,  "OverallRating","location=1,status=1,scrollbars=1, menubar=1, width=350,height=200");
    popup("/overall_rating/"+id, "OverallRating", 350, 200);
 }  

function overall_rating_dest(id)
 {
    //var why = window.open ("/overall_rating_dest/"+id,  "OverallRating","location=1,status=1,scrollbars=1, menubar=1, width=350,height=200");
    popup("/overall_rating_dest/"+id, "OverallRating", 350, 200);
 } 

function budget()
 {
    //var budget = window.open ("/budget",  "budget","location=1,status=1,scrollbars=1, menubar=0, width=350,height=200");
    popup("/budget", "budget", 350, 200);
 }  

function tourbudget()
 {
    //var budget = window.open ("/tourbudget",  "TourBudget","location=1,status=1,scrollbars=1, menubar=0, width=350,height=200");
    popup("/tourbudget", "TourBudget", 350, 200);
 }  

function tour()
 {
    //var budget = window.open ("/tour",  "tour","location=1,status=1,scrollbars=1, menubar=0, width=350,height=200");
    popup("/tour", "tour", 350, 200);
 }  

function tourfit()
 {
    //var budget = window.open ("/tourfit",  "TourFit","location=1,status=1,scrollbars=1, menubar=0, width=350,height=200");
    popup("/tourfit", "TourFit", 350, 200);
 }  

function agegroup()
 {
    //var budget = window.open ("/agegroup",  "AgeGroup","location=1,status=1,scrollbars=1, menubar=0, width=350,height=200");
    popup("/agegroup", "AgeGroup", 350, 200);
 } 
 
 function toleranceofhassles()
 {
    //var budget = window.open ("/toleranceofhassles",  "ToleranceOfHassles","location=1,status=1,scrollbars=1, menubar=0, width=350,height=250");
    popup("/toleranceofhassles", "ToleranceOfHassles", 350, 250);
 }
 
 function personalized_rating()
 {
    popup("/personalized_rating", "PersonalizedRating", 450, 400);
 }
 
function WhyThatsGood(type)
 {
    popup("/whythatsgood/"+type, "WhyThatsGood", 550, 300);
	
 } 

 
 function newWindowChrome(a_str_windowURL, a_str_windowName, a_int_windowWidth, a_int_windowHeight, a_bool_scrollbars, a_bool_resizable, a_bool_menubar, a_bool_toolbar, a_bool_addressbar, a_bool_statusbar, a_bool_fullscreen) {
  
  var winX = (document.all)?document.body.scrollLeft:window.pageXOffset;
  var winY = (document.all)?document.body.scrollTop:window.pageYOffset;
  var int_windowLeft = (screen.width - 985 ) / 2;
  var int_windowTop = (screen.height - a_int_windowHeight ) / 2 - winY;
  if (int_windowTop<270)
      int_windowTop=270;
  var str_windowProperties = 'scrollbars=' + a_bool_scrollbars + ',resizable=' + a_bool_resizable + ',menubar=' + a_bool_menubar + ',toolbar=' + a_bool_toolbar + ',location=' + a_bool_addressbar + ',statusbar=' + a_bool_statusbar + ',fullscreen=' + a_bool_fullscreen + '';
  //var obj_window = window.open(a_str_windowURL, a_str_windowName, str_windowProperties)
  //obj_window.moveBy(int_windowLeft, int_windowTop);
  window.open(a_str_windowURL, a_str_windowName, str_windowProperties);
    //if (parseInt(navigator.appVersion) >= 4) {
    //  obj_window.window.focus();
    //}
}

 function newWindow(a_str_windowURL, a_str_windowName, a_int_windowWidth, a_int_windowHeight, a_bool_scrollbars, a_bool_resizable, a_bool_menubar, a_bool_toolbar, a_bool_addressbar, a_bool_statusbar, a_bool_fullscreen) {
  
  var winX = (document.all)?document.body.scrollLeft:window.pageXOffset;
  var winY = (document.all)?document.body.scrollTop:window.pageYOffset;
  var int_windowLeft = (screen.width - 985 ) / 2;
  var int_windowTop = (screen.height - a_int_windowHeight ) / 2 - winY;
  if (int_windowTop<340)
      int_windowTop=340;
  var str_windowProperties = 'scrollbars=' + a_bool_scrollbars + ',resizable=' + a_bool_resizable + ',menubar=' + a_bool_menubar + ',toolbar=' + a_bool_toolbar + ',location=' + a_bool_addressbar + ',statusbar=' + a_bool_statusbar + ',fullscreen=' + a_bool_fullscreen + '';
  var obj_window = window.open(a_str_windowURL, a_str_windowName, str_windowProperties)
  obj_window.moveBy(int_windowLeft, int_windowTop);
  //window.open(a_str_windowURL, a_str_windowName, str_windowProperties);
    if (parseInt(navigator.appVersion) >= 4) {
      obj_window.window.focus();
    }
}