﻿// JScript File
function tracking_facebook(ip,src, pgname)
    	{	
	    var xmlHttp;
        try
        {//Firefox, opera 8.0+, Safari
            xmlHttp = new XMLHttpRequest();
        }
        catch(e)
        {//Internet Explorer
            try
            {
                xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
            }
            catch(e)
            {
                try
                {
                    xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
                }
                catch(e)
                {
                    alert("Your browser does not support AJAX!");
                    return false;
                }
            }
        }
        xmlHttp.onreadystatechange=function()
        {                       
            if(xmlHttp.readyState == 4)
            {				
				var output = xmlHttp.responseText;	
			}        
		}
        xmlHttp.open("GET","/nescafe/kickstart/call/ks_call_tracking.aspx?dttime="+ new Date().getTime() +"&ipFrom="+ip+"&srcFrom="+src+"&pgnameFrom="+pgname,true);
        xmlHttp.send(null);
	    
	}	
	
	function tracking_socialsharing(ip,src, pgname)
    	{	
	    var xmlHttp;
        try
        {//Firefox, opera 8.0+, Safari
            xmlHttp = new XMLHttpRequest();
        }
        catch(e)
        {//Internet Explorer
            try
            {
                xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
            }
            catch(e)
            {
                try
                {
                    xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
                }
                catch(e)
                {
                    alert("Your browser does not support AJAX!");
                    return false;
                }
            }
        }
        xmlHttp.onreadystatechange=function()
        {                       
            if(xmlHttp.readyState == 4)
            {				
				var output = xmlHttp.responseText;	
			}        
		}
        //xmlHttp.open("GET","/dn/coffeemate/notacinta/call/nc_ajax_tracking.aspx?ms="+ new Date().getTime()+"&clickthru="+clicktru+"&category="+cat,true);
        xmlHttp.open("GET","/nescafe/kickstart/call/ks_call_tracking.aspx?dttime="+ new Date().getTime() +"&ipFrom="+ip+"&srcFrom="+src+"&pgnameFrom="+pgname,true);
        xmlHttp.send(null);
	    
	}	
	
