<!--
function Calculate(form,Price)
{
	TaxOntario(form,Price);
	TaxToronto(form,Price);
	
	var Sum = parseFloat(form.Tax.value) + parseFloat(form.NTax.value);
	form.GTax.value = Sum;
}

function TaxOntario(form,Price)
{
	if((Price == "") || (Price == 0))
	{
		alert("Please enter price to calculate tax amount");
		return false;
	}
	if (Price < 250000.01)
	{
		form.Tax.value = (Price * 0.01) - 275;
	}
	else if (Price > 250000)
	{
		if (Price < 400000.01) {		
			form.Tax.value = (Price * 0.015) - 1525;
		} 
		else {
			form.Tax.value = (Price * 0.02) - 3525;
		}
	}
}

function TaxToronto(form,Price)
{
	if((Price == "") || (Price == 0))
	{
		alert("Please enter price to calculate tax amount");
		return false;
	}
	if (Price < 55000.01)
	{
		form.NTax.value = Price * 0.005;
	}
	else if (Price > 55000)
	{
		if (Price < 250000.01) {
			form.NTax.value = (55000 * .005) + ((Price - 55000) * 0.01);
		}
		else if (Price < 400000.01) {
			form.NTax.value = (55000 * .005) + ((Price - 55000) * 0.01);
		} 
		else {
			form.NTax.value = (55000 * .005) + ((400000 - 55000) * 0.01) + ((Price - 400000) * 0.02);
		}
	}
}

randomNumber = (Math.round(Math.random() * 10000));

// -->
