function resetField(item,mainurl){
	window.location = mainurl+item;
}
function getMake(categoryid, url,hasLabel)
{
	var url = url+'AuctionListing/search_make.cfm?';
	var par = 'categoryid='+categoryid+'&hasLabel='+hasLabel;
	
	$('#ChangeMake').load(url + par);

}
function getmodel(makeid, url,hasLabel)
{
	var url = url+'AuctionListing/search_model.cfm?';
	var par = 'makeid='+makeid+'&hasLabel='+hasLabel;
	
	$('#ChangeModel').load(url + par);

}
function getYear(modelid, url,hasLabel)
{
	var url = url+'AuctionListing/search_year.cfm?';
	var par = 'modelid='+modelid+'&hasLabel='+hasLabel;
	
	$('#ChangeYear').load(url + par);

}
function failureTest()
{
	alert('There was an error.');
}

function popupResize(popup_url, name, width, height, resize, scroll, hasStatus) {
	var winl = (screen.width - width) / 2;
	var wint = (screen.height - height) / 2;
	if (resize == undefined){resize = 'no';}
	if (scroll == undefined){scroll = 'no';}
	if (hasStatus == undefined){hasStatus = 'no';}
	size = 'width=' + width + ',height=' + height + ',top='+wint+',left='+winl;
	newwindow = window.open(popup_url, name, 'resizable=' + resize + ', menubar=no, location=no, toolbar=no, status=' + hasStatus + ', scrollbars=' + scroll + ', directories=no, ' + size);
	newwindow.focus();
}