<!-- hide from old browsers

function calculate() {
	
	PropertyType 	= document.getElementById('PropertyType').value;
	HeatingType 	= document.getElementById('HeatingType').value;
	Bedrooms 		= document.getElementById('Bedrooms').value;


	var xmlhttp = false;

	/*@cc_on @*/
	/*@if (@_jscript_version >= 5)
	// JScript gives us Conditional compilation, we can cope with old IE versions.
	// and security blocked creation of the objects.

	try {
		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
	} catch (e) {
		try {
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		} catch (E) {
			xmlhttp = false;
		}
	}

	@end @*/

	if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
		xmlhttp = new XMLHttpRequest();
	}

	if (PropertyType.length >= 1 && HeatingType.length >= 1 && Bedrooms.length >= 1) {
		var returnText;

		uri = "x_calculator.asp?propertytype=" + PropertyType + "&heatingtype=" + HeatingType + "&bedrooms=" + Bedrooms ;

		xmlhttp.open("GET", uri ,true);
		xmlhttp.onreadystatechange=function() {
			if (xmlhttp.readyState==4) {
				returnText = xmlhttp.responseText;
				document.getElementById('savings').style.display = "block";
				document.getElementById('savings').innerHTML = returnText;
			}
		}

		xmlhttp.send(null);
	}
	else {

	}
}

// - end hiding -->
