//function that will validate the post code entered in the text box function validate():Boolean { //read in text postCode = pc.text; //change to lower case test = postCode.toLowerCase(); //clear array a = new Array(); b = new Array(); c = new Array(); //split the string up and put in an array for (i=0; i