function showparts(element) {
	var Model = element.firstChild.nodeValue;
	var Make = element.parentNode.parentNode.parentNode.firstChild.firstChild.nodeValue;
	makeRequest('/query?Make=' + Make + '&Model=' + Model, show, null);
}

function showtype(element) {
	var Type = element.firstChild.nodeValue;
	makeRequest('/query?Type=' + Type, show, null);
	return false;
}

function showoption(part, option) {
	document.getElementById('option-img').firstChild.src =
		'/images/' + part + '/options/' + option + '.jpg';
}

function show(responseText, element) {
	document.getElementById('content').innerHTML = responseText;
}
