<!--
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=250,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 = 250;
  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 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;
}

/* 22-Jun-04  HM  Created */
function GetValidCounty(sName,nPk)
{
	if (nPk == 0) 
	{
		return '';
	}
	else if (sName == '')
	{
		return '';
	}
	else
	{
		return sName;
	}
}


function GetTown(sTown,nCntryPK,sCountyName)
{
  var win;
  var w;
  var h;
  var popW = 455;
  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;

  if (isEmpty(sCountyName)) 
  {
  win = window.open('PopupTowns.aspx?mode=1&town=' + sTown + '&cntry_pk=' + nCntryPK, 'TownSelection', 'resizable=no,status=yes,scrollbars=yes,height=' + popH + ',width=' + popW + ',left=' + leftPos + ',top=' + topPos, false);
  }
  else
  {
  win = window.open('PopupTowns.aspx?mode=1&town=' + sTown + '&cntry_pk=' + nCntryPK + '&county=' + sCountyName, 'TownSelection', 'resizable=no,status=yes,scrollbars=yes,height=' + popH + ',width=' + popW + ',left=' + leftPos + ',top=' + topPos, false);
  }
  
}

function GetSupplier(sSupplier)
{
  var win;
  var w;
  var h;
  var popW = 455;
  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('PopupSuppl.aspx', 'TownSelection', 'resizable=no,status=yes,scrollbars=yes,height=' + popH + ',width=' + popW + ',left=' + leftPos + ',top=' + topPos, false);
  
  
}


/* 16-Aug-04 HM Created */
function LogJSCRIPTEvents(iGotoId, ipopW, ipopH, sMailTo)
{
var popW = 455;
var popH = 450;

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;
}

if (ipopW == 0) 
{
  ipopW = popW;
  ipopH = popH;

  leftPos = (w-popW)/2;
  topPos = (h-popH)/2;
}
else
{
  leftPos = (w-ipopW)/2;
  topPos = (h-ipopH)/2;
}
/*window.open('goto.aspx?&pg=' + sPage + '&direct=popup&ct=' + sCtrl, '', 'resizable=no,scrollbars=no,height=' + ipopH + ',width=' + ipopW + ',left=' + leftPos + ',top=' + topPos,false);*/
window.open('goto.aspx?&direct=popup&GotoId=' + iGotoId, '', 'resizable=no,scrollbars=no,height=' + ipopH + ',width=' + ipopW + ',left=' + leftPos + ',top=' + topPos,false);

}

/* 18-Aug-04 HM Created */
function MailAndLogJSCRIPTEvents(smailUrl, iGotoId, ipopW, ipopH, sMailTo) 
{
var popW = 455;
var popH = 450;

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;
}

if (ipopW == 0) 
{
  ipopW = popW;
  ipopH = popH;

  leftPos = (w-popW)/2;
  topPos = (h-popH)/2;
}
else
{
  leftPos = (w-ipopW)/2;
  topPos = (h-ipopH)/2;
}

window.open('goto.aspx?&direct=popup&GotoId=' + iGotoId, '', 'resizable=no,scrollbars=no,height=' + ipopH + ',width=' + ipopW + ',left=' + leftPos + ',top=' + topPos,false);
/*var mailUrl = "mailto:hmainwaring@travelocity-business.co.uk?subject=Hello world&Body=This is my message to the Web Team.";*/
document.location = smailUrl;
}
//-->