<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function DatePicker(ctl)
{ 
  var PopupWindow=null; 
  //settings='width=400,height=400,location=no,directories=no,menubar=no,toolbar=no, 
  // 'status=no,scrollbars=no,resizable=no,dependent=no'; 
  PopupWindow=window.open('DateSelector.aspx?Ctl=' + ctl, 'DateSelection', 'width=250,height=300,location=no,directories=no,menubar=no,toolbar=no,status=no,scrollbars=no,resizable=no,dependent=no'); 
  PopupWindow.focus(); 
}


function GetDate(frmX,ctrlX)
{
  var win;
  var w;
  var h;
  var popW = 250;
  var popH = 300;
  var leftPos;
  var topPos;

  if (document.all) 
  {
   /* the following is only available after onLoad */
   w = document.body.clientWidth;
   h = document.body.clientHeight;
  }
  else if (document.layers) 
  {
   w = window.innerWidth;
   h = window.innerHeight;
  }

  leftPos = (w-popW)/2;
  topPos = (h-popH)/2;

  win = window.open('DateSelector.aspx?frm=' + frmX + '&ctrl=' + ctrlX, 'DateSelection', 'resizable=no,scrollbars=no,height=' + popH + ',width=' + popW + ',left=' + leftPos + ',top=' + topPos, false);
}
function GetDate2(frmX,ctrlX,ctrlX2)
{
  var win;
  var w;
  var h;
  var popW = 250;
  var popH = 300;
  var leftPos;
  var topPos;

  if (document.all) 
  {
   /* the following is only available after onLoad */
   w = document.body.clientWidth;
   h = document.body.clientHeight;
  }
  else if (document.layers) 
  {
   w = window.innerWidth;
   h = window.innerHeight;
  }

  leftPos = (w-popW)/2;
  topPos = (h-popH)/2;

  win = window.open('DateSelectorForRooms.aspx?frm=' + frmX + '&btn=' +ctrlX2 + '&ctrl=' + ctrlX, 'DateSelection', 'resizable=no,scrollbars=no,height=' + popH + ',width=' + popW + ',left=' + leftPos + ',top=' + topPos, false);
}

function getRadioValue (radioButtonOrGroup) 
{
  var value = null;
  if (radioButtonOrGroup.length) 
  { 
    for (var b = 0; b < radioButtonOrGroup.length; b++)
      if (radioButtonOrGroup[b].checked)
        value = radioButtonOrGroup[b].value;
  }
  else if (radioButtonOrGroup.checked)
    value = radioButtonOrGroup.value;
  return value;
}

function GetTown(sTown,nCntryPK)
{
  var win;
  var w;
  var h;
  var popW = 345;
  var popH = 450;
  var leftPos;
  var topPos;

  if (document.all) 
  {
   /* the following is only available after onLoad */
   w = document.body.clientWidth;
   h = document.body.clientHeight;
  }
  else if (document.layers) 
  {
   w = window.innerWidth;
   h = window.innerHeight;
  }

  leftPos = (w-popW)/2;
  topPos = (h-popH)/2;

  win = window.open('PopupTowns.aspx?mode=1&town=' + sTown + '&cntry_pk=' + nCntryPK, 'TownSelection', 'resizable=no,scrollbars=yes,height=' + popH + ',width=' + popW + ',left=' + leftPos + ',top=' + topPos, false);
}

function GetTownParam(ctrolToFill,sTown,nCntryPK)
{
  var win;
  var w;
  var h;
  var popW = 345;
  var popH = 450;
  var leftPos;
  var topPos;

  if (document.all) 
  {
   /* the following is only available after onLoad */
   w = document.body.clientWidth;
   h = document.body.clientHeight;
  }
  else if (document.layers) 
  {
   w = window.innerWidth;
   h = window.innerHeight;
  }

  leftPos = (w-popW)/2;
  topPos = (h-popH)/2;

  win = window.open('PopupTowns.aspx?mode=1&town=' + sTown + '&cntry_pk=' + nCntryPK + '&ctrolToFill=' + ctrolToFill, 'TownSelection', 'resizable=no,scrollbars=yes,height=' + popH + ',width=' + popW + ',left=' + leftPos + ',top=' + topPos, false);
}


function GetVenue(ctrolToFill , defaultCity  , defaultCityPK, toUpdate)
{
  var win;
  var w;
  var h;
  var popW = 500;
  var popH = 650;
  var leftPos;
  var topPos;

  if (document.all) 
  {
   /* the following is only available after onLoad */
   w = document.body.clientWidth;
   h = document.body.clientHeight;
  }
  else if (document.layers) 
  {
   w = window.innerWidth;
   h = window.innerHeight;
  }

  leftPos = (w-popW)/2;
  topPos = (h-popH)/2;

  win = window.open('VenueSearch.aspx?ctrolToFill='+ctrolToFill+'&defaultCity='+defaultCity.value+'&defaultCityPK='+defaultCityPK.value +'&toUpdate='+toUpdate , 'VenueSelection', 'resizable=no,scrollbars=yes,height=' + popH + ',width=' + popW + ',left=' + leftPos + ',top=' + topPos, false);
}

function GetHotel(preferenceToFill , defaultCity  , defaultCityPK , defaultDate)
{
  var win;
  var w;
  var h;
  var popW = 650;
  var popH = 450;
  var leftPos;
  var topPos;

  if (document.all) 
  {
   /* the following is only available after onLoad */
   w = document.body.clientWidth;
   h = document.body.clientHeight;
  }
  else if (document.layers) 
  {
   w = window.innerWidth;
   h = window.innerHeight;
  }

  leftPos = (w-popW)/2;
  topPos = (h-popH)/2;
  
  win = window.open('HotelSearchHK.aspx?preferenceToFill='+preferenceToFill+'&defaultCity='+defaultCity.value+'&defaultCityPK='+defaultCityPK.value + '&defaultDate='+ defaultDate.value  , 'HotelSelection', 'resizable=no,scrollbars=yes,height=' + popH + ',width=' + popW + ',left=' + leftPos + ',top=' + topPos, false);
}

function GetHotelGroup(controlToFill , nCountryPK)
{
	var win;
  var w;
  var h;
  var popW = 200;
  var popH = 450;
  var leftPos;
  var topPos;

  if (document.all) 
  {
   /* the following is only available after onLoad */
   w = document.body.clientWidth;
   h = document.body.clientHeight;
  }
  else if (document.layers) 
  {
   w = window.innerWidth;
   h = window.innerHeight;
  }

  leftPos = (w-popW)/2;
  topPos = (h-popH)/2;
  
  win = window.open('HotelGroupSearch.aspx?controlToFill='+controlToFill.id  , 'HotelGroupSelection', 'resizable=no,scrollbars=yes,height=' + popH + ',width=' + popW + ',left=' + leftPos + ',top=' + topPos, false);
}

//-->