/* Used to put the continue shopping link on the Cart Page */
function extraValidation() 
{
	var bpSetReq;
	var url = "http://prod1.agileticketing.net/websales/pages/EntryPoint.aspx?varadd=1&csLink=" + document.location.href;
	if(typeof XMLHttpRequest != "undefined")
	{
		bpSetReq = new XMLHttpRequest();
	}
	else if(window.ActiveXObject)
	{
		bpSetReq = new ActiveXObject("Microsoft.XMLHTTP");
	}

	if(bpSetReq != null)
	{
		bpSetReq.open("POST", url, true);
		bpSetReq.send("");
	}

	return true;
}

if(document.location.href && document.location.href.indexOf('ViewBasket') > 0)
{
	var continueButton = document.getElementById('ContinueButton');
	if(continueButton && csLink && evtinfo)
		continueButton.innerHTML = '<button type="button" onClick="continueShopping();" class="InputButton">Return To Schedule</button>';
}

function continueShopping()
{
	var guid = csLink.substring(csLink.indexOf('?epguid=') + 8);

	var link = 'http://prod1.agileticketing.net/WebSales/Pages/VerboseEventList.aspx?epguid=' + guid;
	window.location.href = link;
}
