
//Added by Baskar - For Tracking tabs in Unisys.com Homepage

function SendHitsOnTabs(tabTitle)
	{
		var dcs_URI=window.location.pathname;
		var dcs_QRY=window.location.search;
		var dcs_title=document.title;
		var dcs_EXT="";
		var varUID = ""; //uid 081404
		var dCurrent = new Date();
		var P = "";
		P+="http"+(window.location.protocol.indexOf('https:')==0?'s':'')+"://dcs4.unisys.com/dcs.gif?";
		if (typeof(dcs_URI) == "string") P+="dcsuri="+escape(dcs_URI);
		else P+= "dcsuri=/invalidjavascript";
		if (typeof(dcs_QRY) == "string") P+="&dcsqry="+escape(dcs_QRY);
		if ((window.document.referrer != "") && (window.document.referrer != "-"))
		{
			if (!(navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion) < 4) )
			{
				P+="&dcsref="+window.document.referrer;
			}
		}
		if (typeof(dcs_EXT) == "string") P+=dcs_EXT;

		P +="&dcssip="+escape(window.document.domain);  //For Cross domain tracking, replace.
		P+="&dcsdat="+escape(dCurrent.getTime());
		P+="&WT.ti="+escape(dcs_title) + " __ " + escape(tabTitle);      //added 061710 for title tag
		if (varUID !="") 
		{
			P+="&WT.username="+varUID;    //uis added 081404
		}

		if (document.images)
    		{
			dcsTrk.dcs_img[dcsTrk.dcs_ptr] = new Image;
			dcsTrk.dcs_img[dcsTrk.dcs_ptr].src = P;
			dcsTrk.dcs_ptr++; 
		}
	}

//Added by Baskar - For Tracking File Asset Downloads

function SendHitsForDownload(sectionName,articleName,assetfileName)
	{
		var dcs_URI=window.location.pathname;
		var dcs_QRY=window.location.search;
		var dcs_title=document.title;
		var dcs_EXT="";
		var varUID = ""; //uid 081404
		var dCurrent = new Date();
		var P = "";
		P+="http"+(window.location.protocol.indexOf('https:')==0?'s':'')+"://dcs4.unisys.com/dcs.gif?";
		if (typeof(dcs_URI) == "string") P+="dcsuri="+escape(dcs_URI);
		else P+= "dcsuri=/invalidjavascript";
		if (typeof(dcs_QRY) == "string") P+="&dcsqry="+escape(dcs_QRY);
		if ((window.document.referrer != "") && (window.document.referrer != "-"))
		{
			if (!(navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion) < 4) )
			{
				P+="&dcsref="+window.document.referrer;
			}
		}
		if (typeof(dcs_EXT) == "string") P+=dcs_EXT;

		P +="&dcssip="+escape(window.document.domain);  //For Cross domain tracking, replace.
		P+="&dcsdat="+escape(dCurrent.getTime());
		P+="&WT.ti="+escape(sectionName) + " __ " +escape(articleName) + " __ " +escape(assetfileName);      //added 17/06/2010 for file downloads
		if (varUID !="") 
		{
			P+="&WT.username="+varUID;    //uis added 081404
		}

		if (document.images)
    		{
			dcsTrk.dcs_img[dcsTrk.dcs_ptr] = new Image;
			dcsTrk.dcs_img[dcsTrk.dcs_ptr].src = P;
			dcsTrk.dcs_ptr++; 
		}
	}

//Added by Baskar - For Tracking IR File Asset Downloads

	function SendHitsForIRDownload(subSectionName,miscComment,assetfileName)
	{
		var dcs_URI=window.location.pathname;
		var dcs_QRY=window.location.search;
		var dcs_title=document.title;
		var dcs_EXT="";
		var varUID = ""; //uid 081404
		var dCurrent = new Date();
		var P = "";
		P+="http"+(window.location.protocol.indexOf('https:')==0?'s':'')+"://dcs4.unisys.com/dcs.gif?";
		if (typeof(dcs_URI) == "string") P+="dcsuri="+escape(dcs_URI);
		else P+= "dcsuri=/invalidjavascript";
		if (typeof(dcs_QRY) == "string") P+="&dcsqry="+escape(dcs_QRY);
		if ((window.document.referrer != "") && (window.document.referrer != "-"))
		{
			if (!(navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion) < 4) )
			{
				P+="&dcsref="+window.document.referrer;
			}
		}
		if (typeof(dcs_EXT) == "string") P+=dcs_EXT;

		P +="&dcssip="+escape(window.document.domain);  //For Cross domain tracking, replace.
		P+="&dcsdat="+escape(dCurrent.getTime());
		P+="&WT.ti="+ "Investor Relations" + " __ " +escape(subSectionName) + " __ " +escape(miscComment) + " __ " +escape(assetfileName);      //added 07/06/10 for file downloads
		if (varUID !="") 
		{
			P+="&WT.username="+varUID;    //uis added 081404
		}
		if (document.images)
    		{
			dcsTrk.dcs_img[dcsTrk.dcs_ptr] = new Image;
			dcsTrk.dcs_img[dcsTrk.dcs_ptr].src = P;
			dcsTrk.dcs_ptr++; 
		}
	}

//Added by Baskar - For Tracking Secondary & Teritiary Pages

	function SendHitsForSTPages(pageElement,pTitle)
	{
		var dcs_URI=window.location.pathname;
		var dcs_QRY=window.location.search;
		var dcs_title=document.title;
		var test='&#45';		
		var dcs_EXT="";
		var varUID = ""; //uid 081404
		var dCurrent = new Date();
		var P = "";
		P+="http"+(window.location.protocol.indexOf('https:')==0?'s':'')+"://dcs4.unisys.com/dcs.gif?";
		if (typeof(dcs_URI) == "string") P+="dcsuri="+escape(dcs_URI);
		else P+= "dcsuri=/invalidjavascript";
		if (typeof(dcs_QRY) == "string") P+="&dcsqry="+escape(dcs_QRY);
		if ((window.document.referrer != "") && (window.document.referrer != "-"))
		{
			if (!(navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion) < 4) )
			{
				P+="&dcsref="+window.document.referrer;
			}
		}
		if (typeof pTitle == 'undefined' )
		{
			pTitle='';
		}else
			pTitle+=" " + String.fromCharCode(43) + " ";
		if (typeof(dcs_EXT) == "string") P+=dcs_EXT;

		P +="&dcssip="+escape(window.document.domain);  //For Cross domain tracking, replace.
		P+="&dcsdat="+escape(dCurrent.getTime());
		P+="&WT.ti="+ escape(dcs_title) + " __ " +  escape(pTitle) + escape(pageElement);      //added 07/06/10 for file downloads
		if (varUID !="") 
		{
			P+="&WT.username="+varUID;    //dsm added 17/06/2010
		}
		if (document.images)
    		{
			dcsTrk.dcs_img[dcsTrk.dcs_ptr] = new Image;
			dcsTrk.dcs_img[dcsTrk.dcs_ptr].src = P;
			dcsTrk.dcs_ptr++; 
		}
	}

	//AOS & Tabs Tacking for Country Sites - 09/14/2010

	 function SendHitsOnCSTabs(tabTitle)
	{

		var dcs_URI=window.location.pathname;
		var dcs_QRY=window.location.search;
		var dcs_title=document.title;

		var titlelen=dcs_title.length;
		var dshfind=dcs_title.indexOf('-');
		var spfind=dcs_title.indexOf(' ');

		//var cntryName=dcs_title.substring(spfind,dshfind);
		var aosvar='AOS';
		
		var dcs_EXT="";
		var varUID = ""; //uid 081404
		var dCurrent = new Date();
		var P = "";
		P+="http"+(window.location.protocol.indexOf('https:')==0?'s':'')+"://dcs4.unisys.com/dcs.gif?";
		if (typeof(dcs_URI) == "string") P+="dcsuri="+escape(dcs_URI);
		else P+= "dcsuri=/invalidjavascript";
		if (typeof(dcs_QRY) == "string") P+="&dcsqry="+escape(dcs_QRY);
		if ((window.document.referrer != "") && (window.document.referrer != "-"))
		{
			if (!(navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion) < 4) )
			{
				P+="&dcsref="+window.document.referrer;
			}
		}
		if (typeof(dcs_EXT) == "string") P+=dcs_EXT;

		P +="&dcssip="+escape(window.document.domain);  //For Cross domain tracking, replace.
		P+="&dcsdat="+escape(dCurrent.getTime());
		P+="&WT.ti="+escape(aosvar) + " __ " + escape(dcs_title) + " __ " + escape(tabTitle);      //added 061710 for title tag
		if (varUID !="") 
		{
			P+="&WT.username="+varUID;    //uis added 081404
		}

		if (document.images)
    		{
			dcsTrk.dcs_img[dcsTrk.dcs_ptr] = new Image;
			dcsTrk.dcs_img[dcsTrk.dcs_ptr].src = P;
			dcsTrk.dcs_ptr++; 
		}
	}



