function updateDropDown(responseText,selectBox)
{
	updateSelect(responseText, selectBox);
}

function updateMake(responseText,selectBox)
{
	updateDropDown(responseText,selectBox);
	removeAllOptions(document.getElementById("seriesSelect"));
	removeAllOptions(document.getElementById("modelSelect"));
	removeAllOptions(document.getElementById("bodySelect"));
	removeAllOptions(document.getElementById("yearSelect"));
}

function updateSeries(responseText,selectBox)
{
	updateDropDown(responseText,selectBox);
	removeAllOptions(document.getElementById("modelSelect"));
	removeAllOptions(document.getElementById("bodySelect"));
	removeAllOptions(document.getElementById("yearSelect"));
}

function updateModel(responseText,selectBox)
{
	updateDropDown(responseText,selectBox);
	removeAllOptions(document.getElementById("bodySelect"));
	removeAllOptions(document.getElementById("yearSelect"));

}

function updateBody(responseText,selectBox)
{
	updateDropDown(responseText,selectBox);
	removeAllOptions(document.getElementById("yearSelect"));

}

function updateYears(responseText,selectBox)
{
	updateDropDown(responseText,selectBox);
}

function selectCaption(selectBox)
{
	document.getElementById("caption").value=selectBox.value;
	document.getElementById("detailsForm").submit();
}