var makes = new Array();
AcuraList = new Array();
AudiList = new Array();
BMWList = new Array();
BuickList = new Array();
CadillacList = new Array();
Chevy_GMList = new Array();
ChryslerList = new Array();
DodgeList = new Array();
FordList = new Array();
HondaList = new Array();
HyundaiList = new Array();
InfinityList = new Array();
IsuzuList = new Array();
JeepList = new Array();
KiaList = new Array();
LandRoverList = new Array();
LexusList = new Array();
Lincoln_MercuryList = new Array();
MazdaList = new Array();
MercedesList = new Array();
MitsubishiList = new Array();
NissanList = new Array();
OldsmobileList = new Array();
PontiacList = new Array();
PorcheList = new Array();
SaabList = new Array();
SaturnList = new Array();
SubaruList = new Array();
SuzukiList = new Array();
ToyotaList = new Array();
VolvoList = new Array();
VWList = new Array();
OtherList = new Array();
NoneList = new Array();

function carInfo2(name,regprice,fullprice,netprice,tailprice)
{
	this.name = name;
	this.regprice = regprice;
	this.fullprice = fullprice;
	if (netprice === undefined)
		this.netprice = 0;
	else this.netprice = netprice;
	if (tailprice === undefined)
		this.tailprice = 0;
	else this.tailprice = tailprice;
}
function carInfo(name, regprice, fullprice)
{
   this.name = name;
   this.regprice = regprice;
   this.fullprice = fullprice;
}

makes[0]="Acura";
makes[1]="Audi";
makes[2]="BMW";
makes[3]="Buick";
makes[4]="Cadillac";
makes[5]="Chevy_GM";
makes[6]="Chrysler";
makes[7]="Dodge";
makes[8]="Ford";
makes[9]="Honda";
makes[10]="Hyundai";
makes[11]="Infinity";
makes[12]="Isuzu";
makes[13]="Jeep";
makes[14]="Kia";
makes[15]="LandRover";
makes[16]="Lexus";
makes[17]="Lincoln_Mercury";
makes[18]="Mazda";
makes[19]="Mercedes";
makes[20]="Mitsubishi";
makes[21]="Nissan";
makes[22]="Oldsmobile";
makes[23]="Pontiac";
makes[24]="Porche";
makes[25]="Saab";
makes[26]="Saturn";
makes[27]="Subaru";
makes[28]="Suzuki";
makes[29]="Toyota";
makes[30]="Volvo";
makes[31]="VW";

var useRadio = false;
// Added by WWK for LSI/CCS June 2005
function setCarInfo(list,nm,hb1,hb2,pn,tg)
{	if (hb1==hb2 || useRadio)
	{	list[list.length]= new carInfo2(nm,hb1,hb2,pn,tg);
	}
	else
	{	list[list.length]= new carInfo2(nm+" 2nd seat in place",hb1,hb1,pn,tg);
		list[list.length]= new carInfo2(nm+" 2nd seat down or out",hb2,hb2,pn,tg);
	}
}
function setCarInfo_0(list,m,p1,p2)
{	if (p1==p2 || useRadio)
	{	list[list.length]= new carInfo(m,p1,p2);
	}
	else
	{	list[list.length]= new carInfo(m+" 2nd seat in place",p1,p2);
		list[list.length]= new carInfo(m+" 2nd seat down or out",p1,p2);
	}
}
// IDM updated 2010_06_22
setCarInfo(AcuraList,"MDX", 125.00, 150.00, 70.00, 32.00);
setCarInfo(AcuraList,"RDX", 125.00, 150.00, 70.00, 32.00);

setCarInfo(AudiList,"A-3 Wagon", 125.00, 150.00, 70.00, 32.00);
setCarInfo(AudiList,"A-4 Wagon", 125.00, 150.00, 70.00, 32.00);
setCarInfo(AudiList,"A-6 Wagon", 125.00, 150.00, 70.00, 32.00);
setCarInfo(AudiList,"Q5", 125.00, 150.00, 70.00, 32.00);
setCarInfo(AudiList,"Q7", 125.00, 150.00, 70.00, 32.00);

setCarInfo(BMWList,"300 Series Sports Wagon", 125.00, 150.00, 70.00, 32.00);
setCarInfo(BMWList,"500 Series Sports Wagon", 125.00, 150.00, 70.00, 32.00);
setCarInfo(BMWList,"X-3", 125.00, 150.00, 70.00, 32.00);
setCarInfo(BMWList,"X-5", 125.00, 150.00, 70.00, 32.00);

setCarInfo(BuickList,"Ranier", 125.00, 150.00, 70.00, 32.00);
setCarInfo(BuickList,"Rendevous", 125.00, 150.00, 70.00, 32.00);
setCarInfo(BuickList,"Enclave (3rd down)", 170.00, 170.00, 70.00, 32.00);
setCarInfo(BuickList,"Enclave (3rd down/2nd down)", 190.00, 190.00, 70.00, 32.00);

setCarInfo(CadillacList,"Escalade '00-'01", 125.00, 150.00, 70.00, 32.00);
setCarInfo(CadillacList,"Escalade (3rd seat out or down)", 170.00, 170.00, 70.00, 32.00);
setCarInfo(CadillacList,"Escalade (3rd out/2nd down)", 190.00, 190.00, 70.00, 32.00);
setCarInfo(CadillacList,"Escalade Hybrid (3rd seat out or down)",170.00, 170.00, 70.00, 32.00);
setCarInfo(CadillacList,"Escalade Hybrid (3rd seat out/2nd seat down)",190.00, 190.00, 70.00, 32.00);
setCarInfo(CadillacList,"Escalade ESV (3rd seat out or down)", 170.00, 170.00, 70.00, 32.00);
setCarInfo(CadillacList,"Escalade ESV (3rd out/2nd down)", 190.00, 190.00, 70.00, 32.00);
setCarInfo(CadillacList,"SRX Wagon", 125.00, 150.00, 70.00, 32.00);

setCarInfo(Chevy_GMList,"Acadia(3rd seat down)", 170.00, 170.00, 70.00, 32.00);
setCarInfo(Chevy_GMList,"Acadia(3rd seat down/2nd down)", 190.00, 190.00, 70.00, 32.00);
setCarInfo(Chevy_GMList,"Blazer/Jimmy", 125.00, 150.00, 70.00, 32.00);
setCarInfo(Chevy_GMList,"Envoy", 125.00, 150.00, 70.00, 32.00);
setCarInfo(Chevy_GMList,"EnvoyXL (3rd seat in)", 125.00, 125.00, 70.00, 32.00);
setCarInfo(Chevy_GMList,"EnvoyXL (3rd seat out)", 170.00, 170.00, 70.00, 32.00);
setCarInfo(Chevy_GMList,"EnvoyXL (3rd seat out,2nd seat down)", 190.00, 190.00, 70.00, 32.00);
setCarInfo(Chevy_GMList,"Equinox", 125.00, 150.00, 70.00, 32.00);
setCarInfo(Chevy_GMList,"HHR", 125.00, 150.00, 70.00, 32.00);
setCarInfo(Chevy_GMList,"Suburban/YukonXL (3rd seat in)", 125.00, 125.00, 70.00, 32.00);
setCarInfo(Chevy_GMList,"Suburban/YukonXL (3rd seat out)", 170.00, 170.00, 70.00, 32.00);
setCarInfo(Chevy_GMList,"Suburban/YukonXL (3rd seat out/2nd Seat Dn)", 190.00, 190.00, 70.00, 32.00);
setCarInfo(Chevy_GMList,"Tahoe (3rd seat out) '00+", 170.00, 170.00, 70.00, 32.00);
setCarInfo(Chevy_GMList,"Tahoe (3rd seat out/2nd down) '00+", 190.00, 190.00, 70.00, 32.00);
setCarInfo(Chevy_GMList,"Terrain", 125.00, 150.00, 70.00, 32.00);
setCarInfo(Chevy_GMList,"TrailblazerEXT. (3rd seat in)", 125.00, 125.00, 70.00, 32.00);
setCarInfo(Chevy_GMList,"TrailblazerEXT. (3rd seat out)", 170.00, 170.00, 70.00, 32.00);
setCarInfo(Chevy_GMList,"TrailblazerEXT. (3rd seat out/2nd seat down)", 190.00, 190.00, 70.00, 32.00);
setCarInfo(Chevy_GMList,"Trailblazer", 125.00, 150.00, 70.00, 32.00);
setCarInfo(Chevy_GMList,"Traverse (3rd seat down)", 170.00, 170.00, 70.00, 32.00);
setCarInfo(Chevy_GMList,"Traverse (3rd/2nd seat down)", 190.00, 190.00, 70.00, 32.00);
setCarInfo(Chevy_GMList,"Yukon (3rd seat out) '00+", 170.00, 170.00, 70.00, 32.00);
setCarInfo(Chevy_GMList,"Yukon (3rd seat out/2nd down) '00+", 190.00, 190.00, 70.00, 32.00);

setCarInfo(DodgeList,"Aspen (3rd Seat Dn)", 170.00, 170.00, 70.00, 32.00);
setCarInfo(DodgeList,"Aspen (3rd Seat Dn /2nd Seat Down)", 190.00, 190.00, 70.00, 32.00);
setCarInfo(DodgeList,"Caliber", 125.00, 150.00, 70.00, 32.00);
setCarInfo(DodgeList,"Caravan (third seat out)", 170.00, 170.00, 75.00, 32.00);
setCarInfo(DodgeList,"Caravan (all rear seats out)", 190.00, 190.00, 75.00, 32.00);
setCarInfo(DodgeList,"Grand Caravan (third seat out)", 170.00, 170.00, 75.00, 32.00);
setCarInfo(DodgeList,"Grand Caravan (all rear seats out)", 190.00, 190.00, 75.00, 32.00);
setCarInfo(DodgeList,"Durango (3rd Seat Dn)", 170.00, 170.00, 70.00, 32.00);
setCarInfo(DodgeList,"Durango (3rd Seat Dn /2nd Seat Down)", 190.00, 190.00, 70.00, 32.00);
setCarInfo(DodgeList,"Grand Caravan (3rd seat down)", 170.00, 170.00, 75.00, 32.00);
setCarInfo(DodgeList,"Grand Caravan (3rd seat down/2nd down)", 190.00, 190.00, 75.00, 32.00);
setCarInfo(DodgeList,"Journey (3rd Seat Dn)", 170.00, 170.00, 70.00, 32.00);
setCarInfo(DodgeList,"Journey (3rd dn/2ndDn)", 190.00, 190.00, 70.00, 32.00);
setCarInfo(DodgeList,"Magnum", 125.00, 150.00, 70.00, 32.00);
setCarInfo(DodgeList,"Nitro", 125.00, 150.00, 70.00, 32.00);
setCarInfo(ChryslerList,"Pacifica", 125.00, 150.00, 70.00, 32.00);
setCarInfo(ChryslerList,"PT Cruiser", 125.00, 150.00, 70.00, 32.00);
setCarInfo(DodgeList,"Town & Country (3rd seat down)", 170.00, 170.00, 75.00, 32.00);
setCarInfo(DodgeList,"Town & Country (3rd seat down/2nd down)", 190.00, 190.00, 75.00, 32.00);

setCarInfo(FordList,"Edge", 125.00, 150.00, 70.00, 32.00);
setCarInfo(FordList,"Escape", 125.00, 150.00, 70.00, 32.00);
setCarInfo(FordList,"Escape Hybrid", 125.00, 150.00, 70.00, 32.00);
setCarInfo(FordList,"Excursion (3rd Seat in)",125.00, 125.00, 70.00, 32.00);
setCarInfo(FordList,"Excursion (3rd Seat out)", 170.00, 170.00, 70.00, 32.00);
setCarInfo(FordList,"Excursion (3rd Seat out, 2nd Down)", 190.00, 190.00, 70.00, 32.00);
setCarInfo(FordList,"Expedition (3rd Seat out/Down)",170.00, 170.00, 70.00, 32.00);
setCarInfo(FordList,"Expedition (3rd Seat out/2nd Down)",190.00, 190.00, 70.00, 32.00);
setCarInfo(FordList,"Expedition EL (3rd Seat out)",170.00, 170.00, 70.00, 32.00);
setCarInfo(FordList,"Expedition EL (3rd Seat out/2nd Down)",190.00, 190.00, 70.00, 32.00);
setCarInfo(FordList,"Explorer '92-'02", 125.00, 150.00, 70.00, 32.00);
setCarInfo(FordList,"Explorer (3rd seat down) '03+", 170.00, 170.00, 70.00, 32.00);
setCarInfo(FordList,"Explorer (3rd seat dn/2nd down) '03+", 190.00, 190.00, 70.00, 32.00);
setCarInfo(FordList,"Flex (3rd seat down) '09+",170.00, 170.00, 70.00, 32.00);
setCarInfo(FordList,"Flex (3rd seat dwn/2nd down) '09+", 190.00, 190.00, 70.00, 32.00);
setCarInfo(FordList,"Freestyle (3rd seat down)", 170.00, 170.00, 70.00, 32.00);
setCarInfo(FordList,"Freestyle (3rd & 2nd seat down)", 190.00, 190.00, 70.00, 32.00);
setCarInfo(FordList,"Focus Wagon", 125.00, 150.00, 70.00, 32.00);
setCarInfo(FordList,"Freestar (3rd seat dn)", 170.00, 170.00, 75.00, 32.00);
setCarInfo(FordList,"Freestar (3rd seat dn/2nd dn)", 190.00, 190.00, 75.00, 32.00);
setCarInfo(FordList,"Taurus X (3rd seat dn)", 170.00, 170.00, 75.00, 32.00);
setCarInfo(FordList,"Taurus X (3rd seat dn/2nd dn)", 190.00, 190.00, 75.00, 32.00);

setCarInfo(HondaList,"CRV", 125.00, 150.00, 70.00, 32.00);
setCarInfo(HondaList,"Element", 125.00, 150.00, 70.00, 32.00);
setCarInfo(HondaList,"Fit", 125.00, 150.00, 70.00, 32.00);
setCarInfo(HondaList,"Odyssey (3rd seat down)", 170.00, 170.00, 75.00, 32.00);
setCarInfo(HondaList,"Odyssey (3rd seat down/2nd down)", 190.00, 190.00, 75.00, 32.00);
setCarInfo(HondaList,"Odyssey (3rd seat down) 09+", 170.00, 170.00, 75.00, 32.00);
setCarInfo(HondaList,"Odyssey (3rd seat dwn/2nd down) 09+", 190.00, 190.00, 75.00, 32.00);
setCarInfo(HondaList,"Pilot", 125.00, 150.00, 70.00, 32.00);
setCarInfo(HondaList,"Pilot (3rd seat down) 10+", 170.00, 170.00, 70.00, 32.00);
setCarInfo(HondaList,"Pilot (3rd seat dn/2nd dn) 10+", 190.00, 190.00, 70.00, 32.00);

setCarInfo(HyundaiList,"Entourage (3rd seat dn)", 170.00, 170.00, 75.00, 32.00);
setCarInfo(HyundaiList,"Entourage (3rd seat dn/2nd dn)", 190.00, 190.00, 75.00, 32.00);
setCarInfo(HyundaiList,"Sante Fe", 125.00, 150.00, 70.00, 32.00);
setCarInfo(HyundaiList,"Tuscon", 125.00, 150.00, 70.00, 32.00);
setCarInfo(HyundaiList,"Veracruze", 125.00, 150.00, 70.00, 32.00);

setCarInfo(InfinityList,"EX (Hatchback/2nd seat down)", 150.00, 150.00, 70.00, 32.00);
setCarInfo(InfinityList,"FX35", 125.00, 150.00, 70.00, 32.00); 
setCarInfo(InfinityList,"QX4", 125.00, 150.00, 70.00, 32.00);
setCarInfo(InfinityList,"QX56 (3rd seat dn)", 170.00, 170.00, 70.00, 32.00);
setCarInfo(InfinityList,"QX56 (3rd seat dn/2nd dn)", 190.00, 190.00, 70.00, 32.00); 

setCarInfo(JeepList,"Cherokee", 125.00, 150.00, 70.00, 32.00);
setCarInfo(JeepList,"Commander (3rd seat dn)", 170.00, 170.00, 70.00, 32.00);
setCarInfo(JeepList,"Commander (3rd seat dn/2nd dn)", 190.00, 190.00, 70.00, 32.00);
setCarInfo(JeepList,"Compass", 125.00, 150.00, 70.00, 32.00);
setCarInfo(JeepList,"Grand Cherokee", 125.00, 150.00, 70.00, 32.00);
setCarInfo(JeepList,"Liberty", 125.00, 150.00, 70.00, 32.00);
setCarInfo(JeepList,"Patriot", 125.00, 150.00, 70.00, 32.00);
setCarInfo(JeepList,"Wrangler Unlimited 4 door hardtop", 125.00, 150.00, 70.00, 32.00);

setCarInfo(KiaList,"Rondo", 125.00, 150.00, 70.00, 32.00);
setCarInfo(KiaList,"Sedona (3rd Seat out)", 170.00, 170.00, 75.00, 32.00);
setCarInfo(KiaList,"Sedona (all seats out)", 190.00, 190.00, 75.00, 32.00);
setCarInfo(KiaList,"Sorento", 125.00, 150.00, 70.00, 32.00);
setCarInfo(KiaList,"Sportage", 125.00, 150.00, 70.00, 32.00);

setCarInfo(LandRoverList,"LR2", 125.00, 150.00, 70.00, 32.00);
setCarInfo(LandRoverList,"LR3", 125.00, 150.00, 70.00, 32.00);
setCarInfo(LandRoverList,"Rangerover", 125.00, 150.00, 70.00, 32.00);
setCarInfo(LandRoverList,"Rangerover Sport", 125.00, 150.00, 70.00, 32.00);

setCarInfo(LexusList,"LX470 '98-'00", 125.00, 150.00, 70.00, 32.00);
setCarInfo(LexusList,"LX470 (3rd seat out) '01+", 170.00, 170.00, 70.00, 32.00);
setCarInfo(LexusList,"LX470 (3rd seat out/2nd dn) '01+", 190.00, 190.00, 70.00, 32.00);
setCarInfo(LexusList,"LX570 (3rd seats mounted)", 170.00, 170.00, 70.00, 32.00);
setCarInfo(LexusList,"LX570 (3rd mounted/2nd down)",190.00, 190.00, 70.00, 32.00);
setCarInfo(LexusList,"GX470 (3rd seat out)", 170.00, 170.00, 70.00, 32.00);
setCarInfo(LexusList,"GX470 (3rd seat out/2nd dn)", 190.00, 190.00, 70.00, 32.00);
setCarInfo(LexusList,"GX470 (3rd mounted)", 170.00, 170.00, 70.00, 32.00);
setCarInfo(LexusList,"GX470 (3rd mounted/2nd down)", 190.00, 190.00, 70.00, 32.00);
setCarInfo(LexusList,"RX300", 125.00, 150.00, 70.00, 32.00);
setCarInfo(LexusList,"RX330", 125.00, 150.00, 70.00, 32.00);
setCarInfo(LexusList,"RX350", 125.00, 150.00, 70.00, 32.00);
setCarInfo(LexusList,"RX400 (Hybrid)", 125.00, 150.00, 70.00, 32.00);
setCarInfo(LexusList,"RX450 (Hybrid)", 125.00, 150.00, 70.00, 32.00);

setCarInfo(Lincoln_MercuryList,"Aviator (3rd seat down)", 170.00, 170.00, 70.00, 32.00);
setCarInfo(Lincoln_MercuryList,"Aviator (3rd seat dn/2nd dn)", 190.00, 190.00, 70.00, 32.00);
setCarInfo(Lincoln_MercuryList,"MKX", 125.00, 150.00, 70.00, 32.00);
setCarInfo(Lincoln_MercuryList,"Mariner", 125.00, 150.00, 70.00, 32.00);
setCarInfo(Lincoln_MercuryList,"Mariner Hybrid", 125.00, 150.00, 70.00, 32.00);
setCarInfo(Lincoln_MercuryList,"Monterey (3rd seat dn)", 170.00, 170.00, 75.00, 32.00);
setCarInfo(Lincoln_MercuryList,"Monterey (3rd seat dn/2nd seat dn)", 190.00, 190.00, 75.00, 32.00);
setCarInfo(Lincoln_MercuryList,"Mountaineer ", 125.00, 150.00, 70.00, 32.00);
setCarInfo(Lincoln_MercuryList,"Mountaineer (3rd seat down) '03+", 170.00, 170.00, 70.00, 32.00);
setCarInfo(Lincoln_MercuryList,"Mountaineer (3rd seat dn/2nd dn) '03+", 190.00, 190.00, 70.00, 32.00);
setCarInfo(Lincoln_MercuryList,"Navigator (3rd seat out)", 170.00, 170.00, 70.00, 32.00);
setCarInfo(Lincoln_MercuryList,"Navigator (3rd seat out/2nd down)", 190.00, 190.00, 70.00, 32.00);
setCarInfo(Lincoln_MercuryList,"Navigator L series (3rd seat out)", 170.00, 170.00, 70.00, 32.00);
setCarInfo(Lincoln_MercuryList,"Navigator L series (3rd seat out/2nd Down)", 190.00, 190.00, 70.00, 32.00);

setCarInfo(MazdaList,"CX7", 125.00, 150.00, 70.00, 32.00);
setCarInfo(MazdaList,"CX9 (3rd seat out)", 170.00, 170.00, 70.00, 32.00);
setCarInfo(MazdaList,"CX9 (3rd seat out/2nd seat out)", 190.00, 190.00, 70.00, 32.00);
setCarInfo(MazdaList,"Tribute", 125.00, 150.00, 70.00, 32.00);
setCarInfo(MazdaList,"Tribute Hybrid", 125.00, 150.00, 70.00, 32.00);
setCarInfo(MazdaList,"3", 125.00, 150.00, 70.00, 32.00);
setCarInfo(MazdaList,"5 (3rd seat out)", 170.00, 170.00, 75.00, 32.00);
setCarInfo(MazdaList,"5 (3rd seat out/2nd down)", 190.00, 190.00, 75.00, 32.00);
setCarInfo(MazdaList,"6", 125.00, 150.00, 70.00, 32.00);

setCarInfo(MercedesList,"GLK  series SUV", 125.00, 150.00, 70.00, 32.00);
setCarInfo(MercedesList,"GL series SUV (3rd seat in) '06+", 125.00, 125.00, 70.00, 32.00);
setCarInfo(MercedesList,"GL Series SUV (3rd Seat Down) '06+", 170.00, 170.00, 70.00, 32.00);
setCarInfo(MercedesList,"GL series SUV (3rd & 2nd Seat Down) '06+", 190.00, 190.00, 70.00, 32.00);
setCarInfo(MercedesList,"ML320/430/500 '97-'04", 125.00, 150.00, 70.00, 32.00);
setCarInfo(MercedesList,"ML Series SUV (3rd Seat Down) '05+", 170.00, 170.00, 70.00, 32.00);
setCarInfo(MercedesList,"ML Series SUV (3rd & 2nd Seat Down) '05+", 190.00, 190.00, 70.00, 32.00);
setCarInfo(MercedesList,"E Series Wagon", 125.00, 150.00, 70.00, 32.00);
setCarInfo(MercedesList,"300 Series Wagon", 125.00, 150.00, 70.00, 32.00);
setCarInfo(MercedesList,"R350/500", 125.00, 150.00, 70.00, 32.00);

setCarInfo(MitsubishiList,"Montero Sport LS (tool compartment in floor)", 125.00, 150.00, 70.00, 32.00);
setCarInfo(MitsubishiList,"Montero Sport ES", 125.00, 150.00, 70.00, 32.00);
setCarInfo(MitsubishiList,"Outlander", 125.00, 150.00, 70.00, 32.00);

setCarInfo(NissanList,"Armada (3rd seat down)", 170.00, 170.00, 70.00, 32.00);
setCarInfo(NissanList,"Armada (3rd seat dn/2nd down)", 190.00, 190.00, 70.00, 32.00);
setCarInfo(NissanList,"Murano", 125.00, 150.00, 70.00, 32.00);
setCarInfo(NissanList,"Pathfinder", 125.00, 150.00, 70.00, 32.00);
setCarInfo(NissanList,"Pathfinder (3rd seat down)", 170.00, 170.00, 70.00, 32.00);
setCarInfo(NissanList,"Pathfinder (3rd seat dwn/2nd down)", 190.00, 190.00, 70.00, 32.00);
setCarInfo(NissanList,"Quest (3rd seat dn)", 170.00, 170.00, 75.00, 32.00);
setCarInfo(NissanList,"Quest (3rd seatdn/2nd dn)", 190.00, 190.00, 75.00, 32.00);
setCarInfo(NissanList,"Rogue", 125.00, 150.00, 70.00, 32.00); 
setCarInfo(NissanList,"X-Terra 4 door outside spare)",125.00, 150.00, 70.00, 32.00);

setCarInfo(OldsmobileList,"Bravada", 125.00, 150.00, 70.00, 32.00);

setCarInfo(PontiacList,"Torrent", 125.00, 150.00, 70.00, 32.00);
setCarInfo(PontiacList,"Vibe", 125.00, 150.00, 70.00, 32.00);

setCarInfo(PorcheList,"Cayenne", 125.00, 150.00, 70.00, 32.00);

setCarInfo(SaabList,"9-3 Sport  Wagon", 125.00, 150.00, 70.00, 32.00);
setCarInfo(SaabList,"9-5 Wagon", 125.00, 150.00, 70.00, 32.00);
setCarInfo(SaabList,"9-7 wagon", 125.00, 150.00, 70.00, 32.00);

setCarInfo(SaturnList,"Outlook Wagon (3rd seat down)", 170.00, 170.00, 70.00, 32.00);
setCarInfo(SaturnList,"Outlook wagon (3rd & 2nd seat down)", 190.00, 190.00, 70.00, 32.00);
setCarInfo(SaturnList,"Relay (3rd seat down)", 170.00, 170.00, 75.00, 32.00);
setCarInfo(SaturnList,"Relay (3rd down/2nd down)", 190.00, 190.00, 75.00, 32.00);
setCarInfo(SaturnList,"Vue", 125.00, 150.00, 70.00, 32.00);

setCarInfo(SubaruList,"Forester", 125.00, 150.00, 70.00, 32.00);
setCarInfo(SubaruList,"Legacy Wagon", 125.00, 150.00, 70.00, 32.00);
setCarInfo(SubaruList,"Outback", 125.00, 150.00, 70.00, 32.00);
setCarInfo(SubaruList,"Outback Wagon", 125.00, 150.00, 70.00, 32.00);
setCarInfo(SubaruList,"Tribeca", 125.00, 150.00, 70.00, 32.00);

setCarInfo(SuzukiList,"XL7", 125.00, 150.00, 70.00, 32.00);

setCarInfo(ToyotaList,"4 Runner 2010+ (3rd seat down)", 170.00, 170.00, 70.00, 32.00);
setCarInfo(ToyotaList,"4 Runner 2010+ (3rd/2nd seats down)", 190.00, 190.00, 70.00, 32.00);
setCarInfo(ToyotaList,"4 Runner", 125.00, 150.00, 70.00, 32.00);
setCarInfo(ToyotaList,"FJ Cruiser", 125.00, 150.00, 70.00, 32.00);
setCarInfo(ToyotaList,"Highlander ’01-‘07", 125.00, 150.00, 70.00, 32.00);
setCarInfo(ToyotaList,"Highlander (3rd seat out)", 170.00, 170.00, 70.00, 32.00);
setCarInfo(ToyotaList,"Highlander (3rd seat out/2nd dn)", 190.00, 190.00, 70.00, 32.00);
setCarInfo(ToyotaList,"Land Cruiser (3rd seat out)", 170.00, 170.00, 70.00, 32.00);
setCarInfo(ToyotaList,"Land Cruiser (3rd seat out/2nd dn)", 190.00, 190.00, 70.00, 32.00);
setCarInfo(ToyotaList,"Matrix", 125.00, 150.00, 70.00, 32.00);
setCarInfo(ToyotaList,"Prius Hybrid", 125.00, 150.00, 70.00, 32.00);
setCarInfo(ToyotaList,"RAV 4", 125.00, 150.00, 70.00, 32.00);
setCarInfo(ToyotaList,"Scion XB", 125.00, 150.00, 70.00, 32.00);
setCarInfo(ToyotaList,"Sequoia (3rd seat out)", 170.00, 170.00, 70.00, 32.00);
setCarInfo(ToyotaList,"Sequoia (3rd seat out/2nd dn)", 190.00, 190.00, 70.00, 32.00);
setCarInfo(ToyotaList,"Sienna (3rd seat out)", 170.00, 170.00, 75.00, 32.00);
setCarInfo(ToyotaList,"Sienna (3rd seat out/2nd dn)", 190.00, 190.00, 75.00, 32.00);
setCarInfo(ToyotaList,"Venza", 125.00, 150.00, 70.00, 32.00);

setCarInfo(VolvoList,"C30 (Hatchback/2nd seat down)", 150.00, 150.00, 70.00, 32.00);
setCarInfo(VolvoList,"CX60", 125.00, 150.00, 70.00, 32.00);
setCarInfo(VolvoList,"V-50 Wagon", 125.00, 150.00, 70.00, 32.00);
setCarInfo(VolvoList,"V-70 Wagon", 125.00, 150.00, 70.00, 32.00);
setCarInfo(VolvoList,"XC70 Wagon", 125.00, 150.00, 70.00, 32.00);
setCarInfo(VolvoList,"XC90 Wagon", 125.00, 150.00, 70.00, 32.00);

setCarInfo(VWList,"Jetta", 125.00, 150.00, 70.00, 32.00);
setCarInfo(VWList,"Jetta Sports Wagon", 125.00, 150.00, 70.00, 32.00);
setCarInfo(VWList,"Passat", 125.00, 150.00, 70.00, 32.00);
setCarInfo(VWList,"Routan (3rd down)", 170.00, 170.00, 70.00, 32.00);
setCarInfo(VWList,"Routan (3rd dn/2nd dn)", 190.00, 190.00, 70.00, 32.00);
setCarInfo(VWList,"Tiguan", 125.00, 150.00, 70.00, 32.00);
setCarInfo(VWList,"Touareg", 125.00, 150.00, 70.00, 32.00);



/////////////////
/////////////////

setCarInfo(NoneList,"Select Vehicle Make First", 0.00, 0.00);

// setCarInfo(TailList,"4 Runner", 29.00, 29.00);
// setCarInfo(TailList,"Blazer S (2 or 4 door)", 29.00, 29.00);
// setCarInfo(TailList,"Jimmy S (2 or 4 door)", 29.00, 29.00);
// setCarInfo(TailList,"Suburban/Yukon/Tahoe, Horizontal Gate 1992-'99", 29.00, 29.00);
// setCarInfo(TailList,"Suburban/Yukon/Tahoe, barn doors1992-'99", 29.00, 29.00);
// setCarInfo(TailList,"Suburban/YukonXL/Tahoe, Horizontal Gate 2000+", 29.00, 29.00);
// setCarInfo(TailList,"Suburban/YukonXL/Tahoe,barn doors 2000+", 29.00, 29.00);
 
 
var noUpdateTotal = false;
function writeMakes(sname,onchg,ddname,dfltval)
{	select = '<select size=1 name="' + sname + '"' + ' onChange="' + onchg + '(this,this.form.'+ddname+')">' + '<option value="None">' + dfltval + "\n";
	i=0;
	while(makes[i] != null)
	{	select += '<option value="' + makes[i] +
			'">' + makes[i];
		i++;		
	}
	select += '</select>';
	document.write(select);
	// alert("writeMakes: "+select);
}
function writeTails()
{	writeMakes("tgMake","updateBagModels","tgmodel","Vehicle Make");
	writeYears("tgYear");
	writeModels("None","tgmodel","updateTailgatePrice");
}
function writeYears(sname)
{
	yearsHtml = "";
	yearsHtml += '<select size=1 name="'+sname+'">' + 
		'<option value="none">Select Year';
	for (i=2011; i >= 2003; i--)
	{
		yearsHtml += '<option value="' + i + '">' + i;
	}
	yearsHtml += '</select>'
	// alert("writeYears:"+name+"\n"+yearsHtml);
	document.write(yearsHtml);
}
function writeModels(makename,ddname,onchng)
{	list = eval(makename + "List");
	if(list[0] == null)
		return;
	// to_alert("writeModels("+makename + ") " + ddname+" ["+i+"]", list[i]);
	modelHtml = "";
	modelHtml +=
	'<select size=1 name="'+ddname+'"' +
	' onChange="' + onchng + '(this.form,this.form.'+ddname+')">\n';
	i=(-1);
	while(list[++i] != null)
	{	
		modelHtml += '<option value="' + list[i].name + '">\n' + list[i].name;

	}
	modelHtml += '</select>';
	// alert("writeModels["+i+"]: "+makename+"\n"+modelHtml);
	document.write(modelHtml);

}
function changePrice (content,id)
{	var temp = document.getElementById (id);
	if (!siteConfig['rules'])
	{	if (content==" " || content == 0)
		{	content=parseFloat(0);
			content=content.toFixed(2);
		}
	}
	if (!content == "")
		if (!isNaN(content))
		{	if (!siteConfig['rules'] || parseFloat(content))
				content = "$"+content;
		}
	if(temp.firstChild) { temp.firstChild.data = content; }
	else { temp.data = content; }
}
function displayPrice(where, val)
{	floatValue=parseFloat(val);
	if (isNaN(floatValue))
		where.value = val ;
	else if (floatValue)
		where.value = floatValue.toFixed(2);
		else where.value = " ";
}
function displayOrderedPrice(checked,varptr,val)
{	displayPrice(varptr,checked ? val : "");
}
function updateBagPrice(whichform)
{	price = " ";
    // get the object for the 
	objectName = getSelectedValue(whichform.Make);
	if (objectName == "None")
	{	price = "Select Vehicle Make, Year, Model";
		whichform.bagselect.checked = false;
	}
	else
	{	getObject = eval(objectName + "List");
		thisObject = getObject[whichform.model.selectedIndex];
		if(useRadio)
		{	if (whichform.hatchbagsize[0].checked)
			{	if (thisObject != null) price = thisObject.fullprice;
			}
			else
			{	if (thisObject != null) price = thisObject.regprice;
			}
		}
		else
			price = thisObject.fullprice;
	}
    displayPrice(whichform.baguprice,price);
	changePrice(whichform.baguprice.value,"bagnuprice");
	displayOrderedPrice(whichform.bagselect.checked,whichform.bagprice,price);
	changePrice(whichform.bagprice.value,"bagnprice");
    updateTotal(whichform);
}
function updateTwistPrice(whichform)
{	priceEach = 10.00;
    displayPrice(whichform.twistuprice,priceEach);
	changePrice(whichform.twistuprice.value,"twistnuprice");
	displayOrderedPrice(whichform.twistselect.checked,whichform.twistprice,getSelectedValue(whichform.twistLockCount) * priceEach);
	changePrice(whichform.twistprice.value,"twistnprice");
    updateTotal(whichform);
}
function updateSherpaPrice(whichform)
{	whichSize=getSelectedValue(whichform.sherpaSize);
	if(whichSize=="Large") price=165.00;
	else price=140.00;
	if(whichform.sherpaGutterHook.checked)
	     price+=8.50;
//	price+=SherpaSH; // add shipping and handling
	displayPrice(whichform.sherpauprice,price);
	changePrice(whichform.sherpauprice.value,"sherpanuprice");
	displayOrderedPrice(whichform.sherpaselect.checked,whichform.sherpaprice,price);
	changePrice(whichform.sherpaprice.value,"sherpanprice");
    updateTotal(whichform);
}
function to_alert(oname,optr)
{	if (optr==null || optr === undefined)
		return;
	alert("Object:"+oname+"\n"+
		"name = "+optr.name+",\n"+
		"reg price = "+optr.regprice+",\n"+
		"full price = "+optr.fullprice+",\n"+
		"net price = "+optr.netprice+",\n"+
		"tailgate price = "+optr.tailprice
	)
}
function updatePetPrice(whichform)
{	price=null;
	objectName = getSelectedValue(whichform.pnMake);
	getObject = eval(objectName + "List");
	modelOffset = offsetMap['pnmodel'][whichform.pnmodel.selectedIndex];
	thisObject = getObject[modelOffset];
	// to_alert("updatePetPrice("+objectName+"["+whichform.pnmodel.selectedIndex+"="+modelOffset+"])",thisObject);
	if (thisObject != null && thisObject.netprice > 0)
		price = thisObject.netprice;
//    price+=PetNetSH; // add shipping and handling
	if (!price)
	{	price = "Select Vehicle Make, Year, Model";
		whichform.petnetselect.checked = false;
	}
    displayPrice(whichform.petuprice,price);
	changePrice(whichform.petuprice.value,"petnuprice");
	displayOrderedPrice(whichform.petnetselect.checked,whichform.petprice,price);
	changePrice(whichform.petprice.value,"petnprice");
    updateTotal(whichform);
}
// function updateBoxPrice(whichform)
// {	whichSize=getSelectedValue(whichform.boxSize);
// 	if(whichSize=="Small") price=36.00;
// 	else price=39.00;
// //	price+=BoxSH; // add shipping and handling
// 	displayPrice(whichform.boxuprice,price);
// 	changePrice(whichform.boxuprice.value,"boxnuprice");
// 	displayOrderedPrice(whichform.boxselect.checked,whichform.boxprice,price);
// 	changePrice(whichform.boxprice.value,"boxnprice");
//     updateTotal(whichform);
// }
function updateCoverPrice(whichform)
{	whichSize=getSelectedValue(whichform.coverSize);
	if(whichSize=="Regular") price=39.95;
	else price=29.95;
//	price+=BoxSH; // add shipping and handling
	displayPrice(whichform.coveruprice,price);
	changePrice(whichform.coveruprice.value,"covernuprice");
	displayOrderedPrice(whichform.coverselect.checked,whichform.coverprice,price);
	changePrice(whichform.coverprice.value,"covernprice");
    updateTotal(whichform);
}
function updateTailgatePrice(whichform)
{	price=null;
	objectName = getSelectedValue(whichform.tgMake);
	getObject = eval(objectName + "List");
	modelOffset = offsetMap['tgmodel'][whichform.tgmodel.selectedIndex];
	thisObject = getObject[modelOffset];
	// to_alert("updateTailgatePrice("+objectName+"["+whichform.tgmodel.selectedIndex+"="+modelOffset+"])",thisObject);
	if (thisObject != null && thisObject.tailprice > 0)
		price = thisObject.tailprice;
	if (!price)
	{	price = "Select Vehicle Make, Year, Model";
		whichform.tailgateselect.checked = false;
	}
	displayPrice(whichform.tailgateuprice,price);
	changePrice(whichform.tailgateuprice.value,"tailgatenuprice");
	displayOrderedPrice(whichform.tailgateselect.checked,whichform.tailgateprice,price);
	changePrice(whichform.tailgateprice.value,"tailgatenprice");
    updateTotal(whichform);
}
function getSelectedValue(field)
{	var si = field.options.selectedIndex;
	if (si < 0) si = 0;
	return(field.options[si].value);
}
function setUnitPrices(whichForm)
{	noUpdateTotal = true;
	whichForm.reset();
	updateBagPrice(whichForm);
	updateTwistPrice(whichForm);
	updateSherpaPrice(whichForm);
	updatePetPrice(whichForm);
	// updateBoxPrice(whichForm);
	updateCoverPrice(whichForm);
	updateTailgatePrice(whichForm);
	noUpdateTotal = false;
	updateTotal(whichForm);
}
function updateTotal(whichForm)
{	if (noUpdateTotal) return;
	noUpdateTotal = true;
    calctotal=0.00;
    if (whichForm.bagselect.checked)
	{	updateBagPrice(whichForm);
		calctotal += parseFloat(whichForm.bagprice.value);
	}
	if (whichForm.twistselect.checked)
	{	updateTwistPrice(whichForm)
		calctotal += parseFloat(whichForm.twistprice.value);
	}
    if (whichForm.sherpaselect.checked)
	{	updateSherpaPrice(whichForm);
		calctotal += parseFloat(whichForm.sherpaprice.value);
	}
    if (whichForm.petnetselect.checked)
	{	updatePetPrice(whichForm);
		calctotal += parseFloat(whichForm.petprice.value);
	}
//    if (whichForm.boxselect.checked)
//	{	updateBoxPrice(whichForm);
//		calctotal += parseFloat(whichForm.boxprice.value);
//	}
    if (whichForm.coverselect.checked)
	{	updateCoverPrice(whichForm);
		calctotal += parseFloat(whichForm.coverprice.value);
	}
	if (whichForm.tailgateselect.checked)
	{	updateTailgatePrice(whichForm);
		calctotal += parseFloat(whichForm.tailgateprice.value);
	}
	shippingTotal = 0;
    if (calctotal > 0)
    {
       if (calctotal <= 99.99)       shippingTotal = 8.50;
       else if (calctotal <= 199.99) shippingTotal = 18.00;
       else if (calctotal <= 299.99) shippingTotal = 22.00;
       else if (calctotal <= 399.99) shippingTotal = 27.00;
       else if (calctotal <= 499.99) shippingTotal = 28.00;
       else if (calctotal > 499.99)  shippingTotal = 32.00;
    }
    if (isNaN(calctotal))
    	whichForm.total.value = "Fix Order";
    else 
    {	displayPrice(whichForm.total,(calctotal + shippingTotal));
		changePrice(whichForm.total.value,"ntotal");
    	displayPrice(whichForm.shipping,shippingTotal);
		changePrice(whichForm.shipping.value,"nshipping");
    }
	noUpdateTotal = false;
}
function skipNoprice(opn,nm,pr)
{	// alert("skipNoprice("+opn+","+nm+","+pr+")");
	if (opn != nm) return false;
	if (pr > 0) return false;
	return true;
}
var offsetMap = new Array();
offsetMap['model'] = new Array();
offsetMap['pnmodel'] = new Array();
offsetMap['tgmodel'] = new Array();
function updateBagModels(mkOpts,opts)
{ // Update the select list for hatchbags based on the Model Selected
	whichMake=mkOpts.options[mkOpts.selectedIndex].value;
	for(i=0;i<opts.length;i++) opts[i]=null; // clear the array
	opts.length=0;
	models = eval(whichMake + "List");
	I_in=(-1);
	I_out=(-1);
	while(models[++I_in] != null)
	{	if (skipNoprice(opts.name,"pnmodel",models[I_in].netprice))
			continue;
		if (skipNoprice(opts.name,"tgmodel",models[I_in].tailprice))
			continue;
		// alert("Adding "+models[I_in].name+" = "+models[I_in].netprice+" = "+models[I_in].tailprice);
		modelOpt = new Option(models[I_in].name, models[I_in].name, false, false);
		opts[++I_out] = modelOpt;
		offsetMap[opts.name][I_out]=I_in;
	}
	modelOpt = new Option("Select Model","Select Model",false,false);
	opts[++I_out]=modelOpt;
	opts.selectedIndex=I_out;
	//	REFRESH THE DOCUMENT
	//	Netscape and microsoft handle this differently.
	//	if (isNetscape) { history.go(0); updateBagPrice(opts); }
	//	else { history.go(1); }
}
function checkHere(varname,pricename,funcname)
{	document.write("<center><span class='small'>Check&nbsp;Here&nbsp;<input type=checkbox name='"+varname+"' onClick='"+funcname+"(this.form);'> To&nbsp;Order&nbsp;This&nbsp;Item</span></center>");
}
function orderClicked(varname,whichForm)
{	if (varname=="bagselect")
		updateBagPrice(whichForm);
}
function checkForm()
{	updateTotal(document.orderForm);
	if (isNaN(document.orderForm.bagprice.value))
	{	alert("The Hatchbag you have selected is not available in the Full size,\n please select \"regular\" instead.");
	return(false);
     }
	 // (document.orderForm.boxselect.checked) || 
     else if ((document.orderForm.bagselect.checked) ||
         (document.orderForm.twistselect.checked) ||
         (document.orderForm.coverselect.checked) ||
         (document.orderForm.sherpaselect.checked) ||
         (document.orderForm.tailgateselect.checked) ||
         (document.orderForm.petnetselect.checked))
	      return(true);
     else
     {
          alert("You have not selected any Items to order.  \nPlease check the box in the \"ITEM PRICE\" column for \nthe Item(s) you would like to order, and re-submit your order.  \nThank You.");
	  return(false);
     }
}
