Input Text Formatting
*********************

1)	In your 'site1' folder, open actinicextras.js with a text editor such as Notepad.
	Copy the code included in the format.txt file to the bottom of actinicextras.js,
	and save & close the file.

2)	You can now use the function across your Actinic pages. To apply the function to
	an input box, open the actinic HTML template (act_order01.html, for example) and
	find the input box code. It will appear similar to this:

		<input type="text" name="testname" />

	To make the text in this field uppcase, we could alter the code to this:

		<input type="text" name="testname" onblur="format(this,'upper')" />

	Now, when the user clicks away from the input box, the text will be formatted.

3)	There are 5 format types:

	* upper		- all text to uppercase, eg "homer" becomes "HOMER"
	* lower		- all text to lowercase, eg "HOMER" becomes "homer"
	* capitals	- capitalises first letters, eg "tim o'reilly" becomes "Tim O'Reilly"
	* postcode	- converts to uppercase and corrects spacing, eg "dd21ua" becomes "DD2 1UA"
	* cc		- checks for valid card number and inserts any desired characters between
			number groupings. By default, spaces are inserted eg
			"4560223422567789" becomes "4560 2234 2256 7789". You may change this
			inserted character by editing value of the "chr" variable.

	To use a different format type, just put the name in the above code. For example,
	a postcode input box would look like this:

		<input type="text" name="testname" onblur="format(this,'postcode')" />

4)	There may some some words containing a prefix which in some circumstances you don't want
	formatted. For example, "Macdonald" should become "MacDonald", but "Macclesfield" shouldn't
	be changed to "MacClesfield". Line 13 of the format function contains a list of these words,
	which you may edit as you wish - simply add words surrounded by single quotes, and seperate
	them with a comma, like so:

		var exclude=['Macclesfield','USA'];