/*
  This javascript handles tids.  If there is a TID in the URL,
  it will contact WCS and WCS will create a cookie if needed.
*/
var Turl = document.location.href;
var url = Turl.toUpperCase();
var re = new RegExp("TID.([0-9a-zA-Z]*)");
var match = re.exec(url);
var tidParm = "";

if (match != null)
{
	var tid = match[1];
	if (tid != null)
	{
	  tidParm = "TID=" + tid + "&";
	}
}


document.write("<img src=\"/autoparts/StartSession?"+ tidParm+"storeId=10101&catalogId=10101&langId=-1\" width=\"1\" height=\"1\">");