      function searchForAddress() {
			  document.getElementById('nonUKaddress').style.display = 'none';
	  	  document.getElementById('addressResult').style.display = 'none';
	  	  document.getElementById('UKaddress').style.display = 'block';
        document.getElementById('ukaddressframe').src = 'blank2.html';
				document.form.paffingpostcode.focus();
			}
			
      function getNonUKaddress() {
	  	  document.getElementById('addressResult').style.display = 'none';
			  document.getElementById('UKaddress').style.display = 'none';
	  	  document.getElementById('nonUKaddress').style.display = 'block';
        document.form.nonUKadd1.focus();
			}
			
      function copyNonUKaddress() {
			  if (document.form.nonUKadd1.value == '' || 
				    document.form.nonUKadd2.value == '' || 
				    document.form.nonUKcountry.value == '') {
					alert('Please enter address information on at least the first two lines of this section and select a country');
					return false;
				}
			  if (document.form.nonUKadd1.value != document.form.nonUKadd1.value.substr(0, 30) || 
				    document.form.nonUKadd2.value != document.form.nonUKadd2.value.substr(0, 30) || 
						document.form.nonUKadd3.value != document.form.nonUKadd3.value.substr(0, 30) ||	
						document.form.nonUKadd4.value != document.form.nonUKadd4.value.substr(0, 30) || 
						document.form.nonUKadd5.value != document.form.nonUKadd5.value.substr(0, 30) || 
						document.form.nonUKpostcode.value != document.form.nonUKpostcode.value.substr(0, 12)) {
				  alert('Part of your address is too long (over 30 characters for the address and 12 for the postcode) and has been truncated.');
				}
  		  document.form.add1.value = document.form.nonUKadd1.value.substr(0, 30);
  		  document.form.add2.value = document.form.nonUKadd2.value.substr(0, 30);
  		  document.form.add3.value = document.form.nonUKadd3.value.substr(0, 30);
  		  document.form.add4.value = document.form.nonUKadd4.value.substr(0, 30);
  		  document.form.add5.value = document.form.nonUKadd5.value.substr(0, 30);
  		  document.form.postcode.value = document.form.nonUKpostcode.value.toUpperCase().substr(0, 12);
  		  document.form.country.value = document.form.nonUKcountry.value.toUpperCase();
	  	  document.getElementById('nonUKaddress').style.display = 'none';
	  	  document.getElementById('addressResult').style.display = 'block';
			}
		
      if (document.location.href == window.top.document.location.href) {
      //  window.top.document.location.href = 'http://www.pocruises.com';
      } 

