
//track-click function runs when a doc is downloaded
function tp(userCode, link){

	
	// Create a YUI instance using io-base module.
	YUI().use("io-base", function(Y) {
	    //var uri = "trackPages.php";
	    var uri = "trackPages.php";
	 
	    // Define a function to handle the response data.
	    function complete(id, o, args) {
	        var id = id; // Transaction ID.
	        var data = o.responseText; // Response data.
	        //doing nothing - don't want to interrupt user under any circumstance
	        var args = args[1]; // 'ipsum'.
	    };
	 
	    // Subscribe to event "io:complete", and pass an array
	    // as an argument to the event handler "complete", since
	    // "complete" is global.   At this point in the transaction
	    // lifecycle, success or failure is not yet known.
	    Y.on('io:complete', complete, Y, ['uname', 'ipsum']);
	 
	 	var cfg = {
			method: 'POST',
			data: 'userCode='+userCode+'&link='+link
		};

	 
	    // Make an HTTP request to 'get.php'.
	    // NOTE: This transaction does not use a configuration object.
	    var request = Y.io(uri, cfg);
	    
	});



}
