document.form1.price.value = MakeCents(400000 * 100);
calculate();
function calculate(){
	document.Ready_to_Post = false;
	validate_form('price','','RinRange       1:10000000','Selling Price');
	if (!document.Ready_to_Post) return;
	var price = parseFloat(document.form1.price.value);
	document.form1.price.value = MakeCents(price * 100);
	var old_comm = price * .06;
	document.form1.old_comm.value = MakeCents(old_comm * 100);
	var new_comm = price * .03 + 495;
	document.form1.new_comm.value = MakeCents(new_comm * 100);
	var savings = old_comm - new_comm;
	document.form1.savings.value = MakeCents(savings * 100);
	//var mi = 6.5 / 1200;
	//var base = 1;
	//var mbase = 1 + mi;
	//for (i=0; i< 30 * 12; i++){
	//	base = base * mbase
	//}
	//var old_pi = savings * mi / ( 1 - (1/base))
	//document.form1.monthly.value = MakeCents(old_pi * 100);
	//document.form1.life.value = MakeCents(old_pi * 100 * 360);
	document.form1.price.focus();
	document.form1.price.select();
}
function Ready_Post (){
	calculate();
	document.Ready_to_Post = false;
	return document.Ready_to_Post;
}