
		function getScriptPage(div_id,get_count)
		{
			subject_id = div_id;
			var postcode = document.getElementById('pcode1').value;
			var distance = document.getElementById('distance').value;
			var minsalary = document.getElementById('minsalary').value;
			var maxsalary = document.getElementById('maxsalary').value;
			var jobrole = document.getElementById('jobrole').value;
			var perm = document.getElementById('perma').checked;
			var temp = document.getElementById('tempa').checked;
			var contract = document.getElementById('contracta').checked;
			
			
			http.open("GET", "/script_page.php?postcode="+postcode +"&distance="+distance +"&jobrole="+jobrole+"&minsalary="+minsalary +"&maxsalary="+maxsalary +"&perm="+perm+"&temp="+temp+"&contract="+contract+"&count="+get_count, true);
			http.onreadystatechange = handleHttpResponse;
			http.send(null);
		}
		
		function getScriptQuery(div_id,get_count)
		{
			subject_id = div_id;
			var postcode = document.getElementById('pcode1').value;
			
			http.open("GET", "/script_page2.php?postcode="+postcode +"&count="+get_count, true);
			http.onreadystatechange = handleHttpResponse;
			http.send(null);
		}		

		function getScriptmsg(div_id,get_count)
		{
			subject_id = div_id;
			var postcode = document.getElementById('pcode1').value;
			
			http.open("GET", "/script_page3.php?postcode="+postcode +"&count="+get_count, true);
			http.onreadystatechange = handleHttpResponse;
			http.send(null);
		}		


	subject_id = '';
	function handleHttpResponse() {
		if (http.readyState == 4) {
			if (subject_id != '') {
				document.getElementById(subject_id).innerHTML = http.responseText;
			}
		}
	}
	function getHTTPObject() {
		var xmlhttp;
		/*@cc_on
		@if (@_jscript_version >= 5)
			try {
				xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
			} catch (e) {
				try {
					xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
				} catch (E) {
					xmlhttp = false;
				}
			}
		@else
		xmlhttp = false;
		@end @*/
		if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
			try {
				xmlhttp = new XMLHttpRequest();
			} catch (e) {
				xmlhttp = false;
			}
		}
		return xmlhttp;
	}
	var http = getHTTPObject(); // We create the HTTP Object



