var http = createAjaxObj();
var httpdet = createAjaxObj();

var addshurl = "http://"+window.location.hostname+"/shortlist-ajax.lml?shortlist_F=";

function addtoshortlist(carID,override) {
	http.open("GET",addshurl + escape(carID), true);
	http.onreadystatechange = function() {
		if (http.readyState == 4) {
			if (http.responseText.indexOf('invalid') == -1) {
				document.getElementById("shlist").innerHTML = http.responseText;
			}
		}
	}
	http.send(null);
}