function firenpaf(){
	var postcode = $F("PC_Proposer.id.1_Address_PostCode").replace(/ /,"");		
	var d = new Date();
	var time = d.getTime();
	var url = url = '/car-insurance/quote/codelibrary/application.proxy.asp?postcode=' + postcode + '&house=&timestamp=' + time;
	var xmlHttp = new XMLHttpRequest();
	xmlHttp.open("GET", url, true);
	
	xmlHttp.onreadystatechange=function(){
	   if (xmlHttp.readyState == 4 && xmlHttp.status == 200) {
		  clearTimeout(xmlHttpTimeout); 
		  //alert(xmlHttp.responseText);
		  show("AddressBlock");
			arr_result = xmlHttp.responseText.split("|");
			$("PC_Proposer.id.1_Address_AddressLine1").value = arr_result[0];
			$("PC_Proposer.id.1_Address_AddressLine2").value = arr_result[1];
			$("PC_Proposer.id.1_Address_AddressLine3").value = arr_result[2];
			$("PC_Proposer.id.1_Address_AddressLine4").value = arr_result[3];
			$("PC_Proposer.id.1_Address_PostCode").value = arr_result[4];
			getNextSibling($("PC_Proposer.id.1_Address_PostCode").parentNode).innerHTML = arr_result[5];
			initErrors();
	   }
	}
	// Now that we're ready to handle the response, we can make the request
	xmlHttp.send("");
	// Timeout to abort in 5 seconds - 5000
	var xmlHttpTimeout=setTimeout(ajaxTimeout,5000);
	function ajaxTimeout(){
	   xmlHttp.abort();
	   getNextSibling($("PC_Proposer.id.1_Address_PostCode").parentNode).innerHTML = 'Unfortunately the find address service is currently unavailable. Please enter your address manually.';
	   initErrors();
	   show("AddressBlock");
	}
}

function getNextSibling(startBrother){
	endBrother=startBrother.nextSibling;
	while(endBrother.nodeType!=1){
		endBrother = endBrother.nextSibling;
	}
	return endBrother;
}

