function AcceptOrDecline(accept, amount) {
	// Create the XMLHttpRequest object.
	var c1 = CreateHTMLRequestor();
	// if the XMLHttpRequest object is in any state other than 0 (unitialized), then stop the current request.
	if (c1 && c1.readyState!=0) {
		c1.abort();
	}
	c1.open("GET", '/flipswap/tradeincartpopup.htm?overlay=1&action='+(accept ? 'accept&amount='+amount : 'decline'), true);
	c1.send(null);
	c1.onreadystatechange = function() {
		if(c1.readyState == 4) {
			if(c1.status == 200) {
				window.location = window.location;
			} else {
				alert("There was a problem retrieving the HTML data:\n"+c.statusText);
			}
		}
	}
}

