<!-- 

// *** Version 1.09 *** 

document.domain = 'cheapflights.co.uk';

function SFSS(F)
{
	_tag.dcsMultiTrack(	'DCS.dcsuri', F.action.replace(homeUrl,''),
				'DCS.dcsref',window.location.href,
			 	'WT.cg_n',_tag.WT.sp +' Search',
				'WT.cg_s',_tag.WT.cg_n,
				'DCSext.cf_sp_from',F.from.value,	
				'DCSext.cf_sp_to',F.to.value);	
}

//tracking on comment form buttons
function LogSubmit( isPreview )
{
	var contentGroup = isPreview ? _tag.WT.sp +' Comment Preview' : _tag.WT.sp +' Comment Post';

	_tag.dcsMultiTrack(	'DCS.dcsuri','/comment',
				'DCS.dcsref',window.location.href,
				'WT.cg_n',contentGroup,
				'WT.cg_s',window.location.href);
}

//tracking on exit links
function LogExit( currentLink, isAirlinePage )
{
	var contentGroup = isAirlinePage ? _tag.WT.sp +' Airline Exit' : _tag.WT.sp +' Other Exit';

	_tag.dcsMultiTrack(	'DCS.dcsuri','/exit',
				'DCS.dcsref',window.location.href,
				'WT.cg_n',contentGroup,
				'WT.cg_s',ExtractDomain( currentLink.href ));
}

function ExtractDomain( url)
{
	var domain = url.match( /:\/\/(www\.)?([^\/:]+)/ );
	return domain[2]?domain[2]:'';
}

//--><!-- ph=1 -->
<!-- nhm:from_kauri -->
