function ClearMMTData()
{
	document.DataForm.AS3_Make.value = "";
	document.DataForm.AS3_CompMake.value = "";
	document.DataForm.AS3_Model.value = "";
	document.DataForm.AS3_CompModel.value = "";
	document.DataForm.AS3_Trim.value = "";
	document.DataForm.AS3_CompMMTTrim.value = "";
	document.DataForm.AS3_BodyStyle.value = "";
	document.DataForm.AS3_Year.value = "";
	document.DataForm.AS3_CompYear.value = "";
		if (document.DataForm.AS3_AdvOnly != null)
		document.DataForm.AS3_AdvOnly.value=""
}

function ClearMMTData_Segment()
{
	document.DataForm.AS3_Make.value = "";
	document.DataForm.AS3_CompMake.value = "";
	document.DataForm.AS3_Model.value = "";
	document.DataForm.AS3_CompModel.value = "";
	document.DataForm.AS3_Trim.value = "";
	document.DataForm.AS3_Year.value = "";
		if (document.DataForm.AS3_AdvOnly != null)
		document.DataForm.AS3_AdvOnly.value=""
}
function SetColor(ColorPath)
{
	document.DataForm.AS3_Color.value = ColorPath;
}

function ClearVehicles()
{
	document.DataForm.AS3_NumVehicles.value = 0;
	document.DataForm.AS3_Color.value = "";
}

// Allows user to change target for redirect.  Used to solve Frame issues.
function SetTarget(Tar)
{
	if (Tar != ""){
		document.DataForm.target=Tar
	}

}


//****SetToOneVehicle was added to fix Ford problem created with mixture
//of old datapassing and new datapassing code. (if you go back and select
//another competitor, it get's added instead of replacing the old one and you see
//multiple vehicles in header and should only be 2.
//this can be removed once Ford is completely converted over
function SetToOneVehicle()
{
	document.DataForm.AS3_NumVehicles.value = 1;
}

function SetDest(Dest)
{
	document.DataForm.action = Dest;
}

function SendForm()
{
	if (document.DataForm.action == "")
		alert("Can not submit until a destination has been selected");
	else
	{
		document.DataForm.submit();
	}
}

function SetnSend(Dest)
{
	SetDest(Dest);
	SendForm();
}

function SetUsedMode(Value)
{
	document.DataForm.AS3_UsedMode.value = Value;
}
