/*

*******************************************************************
File: postcode.js
Date: 01/04/2005
Purpose: Provides routines to check for valid post code (as per australia post list)
Assumes: aPostcodes array is defined and is an integer array of valid postcodes.

REQUIRES these javascript files to also be included in the host page:
	- scripts/string.js
	
HISTORY:
*******************************************************************

*/

function isValidPostcode(strPostcode)
{
	var i;
	
	for (i=0; i<aPostcodes.length; i++)
	{
		if (strPostcode.trim() == aPostcodes[i].toString())
			return true;
	}
	
	return false;
}