﻿//Shared lib for AB Testing-related functions.
var ABTesting = {};
//grabbing the host from the window.location object for now
//this should be replaced when we roll out the new transform from
//xslTransformVars.xsl
ABTesting.currentHost = window.location.hostname;

ABTesting.sendStats = function(tstId, tmpId, id){
	//hard coded vars 
	var testID = tstId; //set up test ID in db first!
	var tempID = tmpId; //arbritrary ID.  something descriptive, such as bizbox
	var uID = id; //passed user choice
	
	//call receiver file.  use a transform var or hard code url
	$.get("http://" + ABTesting.currentHost + "/Services/UXReceiver/Receiver.aspx",

	//jquery will split this json into a get
	{testID: testID, tempID: tempID, uID: uID});
	
}

