function Calculate(form,Price,t)
{
if (Price < 55000.01)
{
	if (form.chk2.checked == true)  { form.Tax.value = 0;} 
	else { form.Tax.value = Price * 0.005; }	
	if (form.chk1.checked == true)    {
		if (form.chk2.checked == true)  { form.NTax.value = 0;} 
		else { form.NTax.value = Price * 0.005; }
	} else { form.NTax.value = 0; }
}
else if (Price > 55000)
{
	if (Price < 250000.01) {
		if (form.chk2.checked == true)  { form.Tax.value = 0;} 
		else { form.Tax.value = (55000 * .005) + ((Price - 55000) * 0.01) }

		if (form.chk1.checked == true)    {
			if (form.chk2.checked == true)  { form.NTax.value = 0;} 
			else { form.NTax.value = (55000 * .005) + ((Price - 55000) * 0.01); }
		} else { form.NTax.value = 0; }
	} else if (Price < 400000.01) {
		if (form.chk2.checked == true)  { form.Tax.value = Math.max(0,(55000 * .005) + ((250000 - 55000) * 0.01) + ((Price - 250000)*.015) - 2000);} 
		else { form.Tax.value = (55000 * .005) + ((250000 - 55000) * 0.01) + ((Price - 250000)*.015); }
		if (form.chk1.checked == true)    {
			if (form.chk2.checked == true)  { form.NTax.value = 0;} 
			else { form.NTax.value = (55000 * .005) + ((Price - 55000) * 0.01); }
		} else { form.NTax.value = 0; }
	} else {
		if (form.chk2.checked == true)  { form.Tax.value = Math.max(0,((55000 * .005) + ((250000 - 55000) * 0.01) + ((400000 - 250000) * .015) + ((Price - 400000) * .02)) - 2000);} 
		else { form.Tax.value = (55000 * .005) + ((250000 - 55000) * 0.01) + ((400000 - 250000) * .015) + ((Price - 400000) * .02); }
		if (form.chk1.checked == true)    {
			if ( form.chk2.checked == true)  {form.NTax.value = ((Price - 400000) * 0.02); } 
			else { form.NTax.value = (55000 * .005) + ((400000 - 55000) * 0.01) + ((Price - 400000) * 0.02); }
		} else { form.NTax.value = 0; }	
}
}
var Sum = parseFloat(form.Tax.value) + parseFloat(form.NTax.value);
form.GTax.value = Sum;
}
randomNumber = (Math.round(Math.random() * 10000));
