
	function UpdateRegistrationForm(strAddress1, strAddress2, strAddress3, strTown, strCounty, strPostcode, strCountry, strHashvalue, blnClosedelay)
	{
		var openingDocument = window.opener.document;
		var addressDisplay;
		var carriageReturn = "\r\n";
		
		if (ns4)
		{
			addressDisplay = openingDocument.frmRegister.addressdisplay;
		}
		else if (ie4)
		{
			addressDisplay = openingDocument.all.addressdisplay;
		}
		else if (ns6)
		{
			addressDisplay = openingDocument.frmRegister.addressdisplay;
		}
		
		with (openingDocument.frmRegister)
		{
			address1.value = strAddress1;
			address2.value = strAddress2;
			address3.value = strAddress3;
			town.value = strTown;
			county.value = strCounty;
			postcode.value = strPostcode;
			country.value = strCountry;
			hashvalue.value = strHashvalue;
		}
		
		with (addressDisplay)
		{
			value = "";
			if (strAddress1 != ""){value += strAddress1 + carriageReturn;}
			if (strAddress2 != ""){value += strAddress2 + carriageReturn;}
			if (strAddress3 != ""){value += strAddress3 + carriageReturn;}
			if (strTown != ""){value += strTown + carriageReturn;}
			if (strCounty != ""){value += strCounty + carriageReturn;}
			if (strPostcode != ""){value += strPostcode + carriageReturn;}
			if (strCountry != ""){value += strCountry;}
		}
		
		if (blnClosedelay)
		{
			setTimeout("window.close();",2000);
		}
		else
		{
			window.close();
		}
	}

