function computeLawncare(form)
{
	sqft_array = [0, 3.5, 4, 4.5, 5, 6, 6.5, 7, 7.5, 8, 8.5, 9, 9.5, 10, 10.5, 11, 11.5, 12, 12.5, 13, 13.5, 14, 14.5, 15, 15.5, 16, 16.5, 17, 17.5, 18, 18.5, 19, 19.5, 20, 20.5, 21, 21.5, 22, 22.5, 23, 23.5, 24, 24.5, 25, 25.5, 26, 26.5, 27, 27.5, 28, 28.5, 29, 29.5, 30, 30.5, 31, 31.5, 32, 32.5, 33, 33.5, 34, 34.5, 35, 35.5, 36, 36.5, 37, 37.5, 38, 38.5, 39, 39.5, 40, 40.5, 41, 41.5, 42, 42.5, 43];
	price_array = [31.50, 32.55, 33.60, 34.65, 37.80, 39.90, 40.95, 43.05, 45.15, 47.25, 49.35, 51.45, 52.50, 53.55, 55.65, 57.75, 59.85, 61.95, 64.05, 66.15, 68.25, 70.35, 72.45, 74.55, 76.65, 78.75, 80.85, 82.95, 85.05, 87.15, 89.25, 91.35, 93.45, 95.55, 97.65, 99.75, 101.85, 103.95, 106.05, 108.15, 110.25, 112.35, 115.50, 117.60, 119.70, 121.80, 123.90, 128.10, 130.20, 132.30, 134.40, 136.50, 138.60, 141.75, 143.85, 145.95, 149.10, 151.20, 153.30, 155.40, 157.50, 160.65, 162.75, 164.85, 166.95, 170.10, 172.20, 174.30, 177.45, 179.55, 181.65, 183.75, 186.90, 189.00, 191.10, 193.20, 195.30, 198.45, 200.55, 203.70];
	
	if (form.square_footage.value != "")
	{
		var str1 = form.square_footage;

		if (!checkNumber(str1,"Square footage must be numeric!"))
		{
			return;
		}
	}

	if (form.square_footage.value == null || form.square_footage.value.length == 0)
	{
		return;
	}
	if (form.square_footage.value <= sqft_array[sqft_array.length-1])
	{
		for (i=0; i<sqft_array.length; i++)
		{
			//form.square_footage.value += ' '+i;
			if (form.square_footage.value >= sqft_array[i])
			{
				price = price_array[i];
			}
		}
	}
	else
	{
		price = "PLEASE CALL";
	}
	form.price.value = price;
}

function checkNumber(input, msg)
{
	var str = input.value;

	for (var i = 0; i < str.length; i++)
	{
		var ch = str.substring(i, i + 1);

		if ((ch < "0" || ch > "9") && ch != "." && ch != "")
		{
			alert(msg);
			return false;
		}
	}
	return true;
}

