		var account_code='AAAAA11111';
		var license_code='JT63-KJ97-DJ64-JB45';
		
		function pcaFastAddressBegin()
		   {
			  var postcode = document.forms[0]["searchpostcode"].value;
			  var building = "";
		      var scriptTag = document.getElementById("pcaScriptTag");
		      var headTag = document.getElementsByTagName("head").item(0);
		      var strUrl = "";
		      
		      //Build the url
		      strUrl = "http://services.postcodeanywhere.co.uk/inline.aspx?";
		      strUrl += "&action=fetch";
		      strUrl += "&postcode=" + escape(postcode);
		      strUrl += "&building=" + escape(building);
		      strUrl += "&account_code=" + escape(account_code);
		      strUrl += "&license_code=" + escape(license_code);
		      strUrl += "&callback=pcaFastAddressEnd";
		      
		      //Make the request
		      if (scriptTag)
		         {
		            //The following 2 lines perform the same function and should be interchangeable
		            headTag.removeChild(scriptTag);
		            //scriptTag.parentNode.removeChild(scriptTag);
		         }
		      scriptTag = document.createElement("script");
		      scriptTag.src = strUrl
		      scriptTag.type = "text/javascript";
		      scriptTag.id = "pcaScriptTag";
		      headTag.appendChild(scriptTag);
		      
		   }

		function pcaFastAddressEnd()
		   {
		      //Test for an error
		      if (pcaIsError)
		         {
		            //Show the error message
		            alert("Please supply a postcode");
		         }
		      else
		         {
		            //Check if there were any items found
		            if (pcaRecordCount==0)
		               {
		                  alert("Sorry, no matching items found");
		               }
		            else
		               {
						  document.forms[0]["line1"].value = '' + pca_line1[0];
						  document.forms[0]["line2"].value = '' + pca_line2[0];
						  document.forms[0]["town"].value = '' + pca_post_town[0];
						  document.forms[0]["county"].value = '' + pca_county[0];
		               }
		         }
		   }
