function confirmAction(A){if(confirm(A)){return true;}return false;}function validatePostcode(A){size=A.length;A=A.toUpperCase();while(A.slice(0,1)==" "){A=A.substr(1,size-1);size=A.length;}while(A.slice(size-1,size)==" "){A=A.substr(0,size-1);size=A.length;}if(size<6||size>8){alert(A+" is not a valid postcode - wrong length");return false;}if(!(isNaN(A.charAt(0)))){alert(A+" is not a valid postcode - cannot start with a number");return false;}if(isNaN(A.charAt(size-3))){alert(A+" is not a valid postcode - alpha character in wrong position");return false;}if(!(isNaN(A.charAt(size-2)))){alert(A+" is not a valid postcode - number in wrong position");return false;}if(!(isNaN(A.charAt(size-1)))){alert(A+" is not a valid postcode - number in wrong position");return false;}if(!(A.charAt(size-4)==" ")){alert(A+" is not a valid postcode - no space or space in wrong position");return false;}count1=A.indexOf(" ");count2=A.lastIndexOf(" ");if(count1!=count2){alert(A+" is not a valid postcode - only one space allowed");return false;}}var popwin;function openWin(I,C,J,G){var F=screen.availWidth;var E=screen.availHeight;var A=C;var H=J;var B=(F-A)/2;var D=(E-H)/2;popwin=window.open(I,"popupwin",G+",top="+D+",left="+B+",width="+A+",height="+H);popwin.focus();popwin=null;return false;}function toggleInput(A,B){if(A.value==B){A.value="";}else{if(A.value==""){A.value=B;}}}