<!-- Script hiding --
function CalcCost () {
	// Fair Market Value
	//5000-9999
		f241 = 0.0498
		f361 = 0.0352
		f481 = 0.0283
		f601 = 0.0241
	//10000-24999
		f242 = 0.0476
		f362 = 0.0337
		f482 = 0.0270
		f602 = 0.0231
	//25000-39999
		f243 = 0.0456
		f363 = 0.0324
		f483 = 0.0258
		f603 = 0.0219
	//40000-49999
		f244 = 0.0448
		f364 = 0.0310
		f484 = 0.0248
		f604 = 0.0212
	//50000-74999
		f245 = 0.0442
		f365 = 0.0307
		f485 = 0.0246
		f605 = 0.0210
	//75000-99999
		f246 = 0.0434
		f366 = 0.0299
		f486 = 0.0239
		f606 = 0.0203
	//100000-149999
		f247 = 0.0426
		f367 = 0.0295
		f487 = 0.0236
		f607 = 0.0200
	//150000-250000
		f248 = 0.0425
		f368 = 0.0294
		f488 = 0.0235
		f608 = 0.0199
	
// 10% Buyout
	//5000-9999
		p241 = 0.0575
		p361 = 0.0414
		p481 = 0.0330
		p601 = 0.0241
	//10000-24999
		p242 = 0.0476
		p362 = 0.0337
		p482 = 0.0270
		p602 = 0.0230
	//25000-39999
		p243 = 0.0456
		p363 = 0.0324
		p483 = 0.0258
		p603 = 0.0219
	//40000-49999
		p244 = 0.0447
		p364 = 0.0318
		p484 = 0.0253
		p604 = 0.0215
	//50000-74999
		p245 = 0.0443
		p365 = 0.0315
		p485 = 0.0251
		p605 = 0.0213
	//75000-99999
		p246 = 0.0464
		p366 = 0.0320
		p486 = 0.0257
		p606 = 0.0217
	//100000-149999
		p247 = 0.0426
		p367 = 0.0295
		p487 = 0.0236
		p607 = 0.0200
	//150000-250000
		p248 = 0.0425
		p368 = 0.0294
		p488 = 0.0235
		p608 = 0.0199
	
// $ 1 Buyout
	//5000-9999
		b241 = 0.0534
		b361 = 0.0378
		b481 = 0.0300
		b601 = 0.0255
	//10000-24999
		b242 = 0.0511
		b362 = 0.0362
		b482 = 0.0288
		b602 = 0.0244
	//25000-39999
		b243 = 0.0496
		b363 = 0.0348
		b483 = 0.0275
		b603 = 0.0232
	//40000-49999
		b244 = 0.0486
		b364 = 0.0335
		b484 = 0.0262
		b604 = 0.0219
	//50000-74999
		b245 = 0.0481
		b365 = 0.0331
		b485 = 0.0259
		b605 = 0.0216
	//75000-99999
		b246 = 0.0472
		b366 = 0.0323
		b486 = 0.0252
		b606 = 0.0210
	//100000-149999
		b247 = 0.0465
		b367 = 0.0319
		b487 = 0.0249
		b607 = 0.0207
	//150000-250000
		b248 = 0.0454
		b368 = 0.0318
		b488 = 0.0247
		b608 = 0.0205		
	input=this.document.calc.cost.value
	
	if (input == "") {
		this.document.calc.reset()
		this.document.calc.elements.focus()
		return
	}
	if (input > 250000) {
		alert ("The amount that you specified is too high for us to\ncalculate an accurate value of the lease payments.")
		this.document.calc.reset()
		this.document.calc.elements.focus()
		return
	}
	if (input < 5000) {
		alert ("The amount that you specified is too low for us to\ncalculate an accurate value of the lease payments.")
		this.document.calc.reset()
		this.document.calc.focus()
		return
	}

	function formatDec(total){
			num = 0;
			num = total.toFixed(2);
			return(num);
		}
	
	if (input >= 5000 && input <= 9999){
			
			document.calc.c1.value 	 = formatDec(input * f241);
			document.calc.c2.value	 = formatDec(input * f361);
			document.calc.c3.value	 = formatDec(input * f481);
			document.calc.c4.value	 = formatDec(input * f601);
			
			document.calc.c5.value	 = formatDec(input * p241);
			document.calc.c6.value	 = formatDec(input * p361);
			document.calc.c7.value	 = formatDec(input * p481);
			document.calc.c8.value	 = formatDec(input * p601);
			
			document.calc.c9.value	 = formatDec(input * b241);
			document.calc.c10.value	 = formatDec(input * b361);
			document.calc.c11.value	 = formatDec(input * b481);
			document.calc.c12.value	 = formatDec(input * b601);
	}

	if (input >= 10000 && input <= 24999){
			document.calc.c1.value	 = formatDec(input * f242);
			document.calc.c2.value	 = formatDec(input * f362);
			document.calc.c3.value	 = formatDec(input * f482);
			document.calc.c4.value	 = formatDec(input * f602);
			
			document.calc.c5.value	 = formatDec(input * p242);
			document.calc.c6.value	 = formatDec(input * p362);
			document.calc.c7.value	 = formatDec(input * p482);
			document.calc.c8.value	 = formatDec(input * p602);
			
			document.calc.c9.value	 = formatDec(input * b242);
			document.calc.c10.value	 = formatDec(input * b362);
			document.calc.c11.value	 = formatDec(input * b482);
			document.calc.c12.value	 = formatDec(input * b602);
	}
	
	if (input >= 25000 && input <= 39999){
			document.calc.c1.value	 = formatDec(input * f243);
			document.calc.c2.value	 = formatDec(input * f363);
			document.calc.c3.value	 = formatDec(input * f483);
			document.calc.c4.value	 = formatDec(input * f603);
			
			document.calc.c5.value	 = formatDec(input * p243);
			document.calc.c6.value	 = formatDec(input * p363);
			document.calc.c7.value	 = formatDec(input * p483);
			document.calc.c8.value	 = formatDec(input * p603);
			
			document.calc.c9.value	 = formatDec(input * b243);
			document.calc.c10.value	 = formatDec(input * b363);
			document.calc.c11.value	 = formatDec(input * b483);
			document.calc.c12.value	 = formatDec(input * b603);
	}
	
	if (input >= 40000 && input <= 49999){
			document.calc.c1.value	 = formatDec(input * f244);
			document.calc.c2.value	 = formatDec(input * f364);
			document.calc.c3.value	 = formatDec(input * f484);
			document.calc.c4.value	 = formatDec(input * f604);
			
			document.calc.c5.value	 = formatDec(input * p244);
			document.calc.c6.value	 = formatDec(input * p364);
			document.calc.c7.value	 = formatDec(input * p484);
			document.calc.c8.value	 = formatDec(input * p604);
			
			document.calc.c9.value	 = formatDec(input * b244);
			document.calc.c10.value	 = formatDec(input * b364);
			document.calc.c11.value	 = formatDec(input * b484);
			document.calc.c12.value	 = formatDec(input * b604);
	}
	
	if (input >= 50000 && input <= 74999){
			document.calc.c1.value	 = formatDec(input * f245);
			document.calc.c2.value	 = formatDec(input * f365);
			document.calc.c3.value	 = formatDec(input * f485);
			document.calc.c4.value	 = formatDec(input * f605);
			
			document.calc.c5.value	 = formatDec(input * p245);
			document.calc.c6.value	 = formatDec(input * p365);
			document.calc.c7.value	 = formatDec(input * p485);
			document.calc.c8.value	 = formatDec(input * p605);
			
			document.calc.c9.value	 = formatDec(input * b245);
			document.calc.c10.value	 = formatDec(input * b365);
			document.calc.c11.value	 = formatDec(input * b485);
			document.calc.c12.value	 = formatDec(input * b605);
	}
	
	if (input >= 75000 && input <= 99999){
			document.calc.c1.value	 = formatDec(input * f246);
			document.calc.c2.value	 = formatDec(input * f366);
			document.calc.c3.value	 = formatDec(input * f486);
			document.calc.c4.value	 = formatDec(input * f606);
			
			document.calc.c5.value	 = formatDec(input * p246);
			document.calc.c6.value	 = formatDec(input * p366);
			document.calc.c7.value	 = formatDec(input * p486);
			document.calc.c8.value	 = formatDec(input * p606);
			
			document.calc.c9.value	 = formatDec(input * b246);
			document.calc.c10.value	 = formatDec(input * b366);
			document.calc.c11.value	 = formatDec(input * b486);
			document.calc.c12.value	 = formatDec(input * b606);
	}
	
	if (input >= 100000 && input <= 149999){
			document.calc.c1.value = formatDec(input * f247);
			document.calc.c2.value = formatDec(input * f367);
			document.calc.c3.value = formatDec(input * f487);
			document.calc.c4.value = formatDec(input * f607);
			
			document.calc.c5.value = formatDec(input * p247);
			document.calc.c6.value = formatDec(input * p367);
			document.calc.c7.value = formatDec(input * p487);
			document.calc.c8.value = formatDec(input * p607);
			
			document.calc.c9.value = formatDec(input * b247);
			document.calc.c10.value = formatDec(input * b367);
			document.calc.c11.value = formatDec(input * b487);
			document.calc.c12.value = formatDec(input * b607);
	}

	if (input >= 150000 && input <= 250000){
			document.calc.c1.value = formatDec(input * f248);
			document.calc.c2.value = formatDec(input * f368);
			document.calc.c3.value = formatDec(input * f488);
			document.calc.c4.value = formatDec(input * f608);
			
			document.calc.c5.value = formatDec(input * p248);
			document.calc.c6.value = formatDec(input * p368);
			document.calc.c7.value = formatDec(input * p488);
			document.calc.c8.value = formatDec(input * p608);
			
			document.calc.c9.value = formatDec(input * b248);
			document.calc.c10.value = formatDec(input * b368);
			document.calc.c11.value = formatDec(input * b488);
			document.calc.c12.value = formatDec(input * b608);
	}

this.document.calc.cost.focus()
}
//-->
