function setReferrer() 
{
  if (!(navigator.appName=="Microsoft Internet Explorer"&&parseInt(navigator.appVersion)<4))
  {
    _tag.DCS.dcsref = self.location.href.substring(0,self.location.href.indexOf(self.location.pathname)) + _tag.DCS.dcsuri;
  }  
}

function trackAbsolute(hostname, objectReference, objectTitle, productGroup, fileName, trackingType, locale, keepLastReferrer)
{ 
  setReferrer();
  currentUri = _tag.DCS.dcsuri;
  path = objectReference;
  var queryString = '';
  var orderCode = '';
  var wt_cg_s = '';
  var wt_cg_n = '';
  var wt_tx_s = '';
  var orderDistributor = '';
  var orderSample = '';
  
  if(path.indexOf('?') != -1)
  {
    var splitted = path.split('?');
    path = splitted[0];
	queryString = '?'+splitted[1];
  }  
    
  if (trackingType=='distributor')
  {
	orderCode = fileName;
	orderDistributor = productGroup;
	path = path.replace('.pdf','.'+trackingType);
  }
  else if (trackingType=='sample')
  {
	orderCode = fileName;
	orderSample = productGroup;
	path = path.replace('.pdf','.'+trackingType);
  }
  else
  {
	wt_cg_s = fileName;
	wt_cg_n = productGroup;
	wt_tx_s = '1.00';
  }

  dcsMultiTrack(
		  'DCS.dcssip',hostname,
		  'DCS.dcsuri',path, 
		  'DCS.dcsqry', queryString,
		  'WT.ti',objectTitle, 
		  'WT.tx_s', wt_tx_s, 
		  'WT.cg_n', wt_cg_n, 
		  'WT.cg_s', wt_cg_s,
		  'DCSext.ProductGroup', '', 
		  'DCSext.AREA', '', 
		  'DCSext.order_distributor', orderDistributor, 
		  'DCSext.order_sample', orderSample,
		  'DCSext.order_code', orderCode,		  
		  'DCSext.locale', locale);
   
  if (keepLastReferrer) 
  {
	  _tag.DCS.dcsuri = currentUri;
  } 
}
