/**
 *	TextBox Hint
 *	Written by Sam Clark
 *  © 2006 Polaris Digital Limited
 * 	Version 1.0
 * 
 *	Released under the GNU Public Licence, Share-alike
 *	You are permitted to use and modify this code, providing
 * 	your modifications are released under the same licence
 * 
 *  www.polaris-digital.com
 */
function TextBoxHInt(inputBox, textHint)
{
	if(!document.getElementById) return false;				// If browser does not understand, get out now!
	if(!document.getElementById(inputBox)) return false;	// If text box is not found get out!
	var inputBoxId = document.getElementById(inputBox);		// Assign the hbw_postcode to postCodeBox
	inputBoxId.value = textHint;
	inputBoxId.onfocus = function()							// When the user clicks in the box
	{
		if(inputBoxId.value == textHint)					// If the value is the default value
			inputBoxId.value = '';							// Clear the box
	}
	inputBoxId.onblur = function()							// When the user clicks away from the box
	{
		if(inputBoxId.value == '')							// If the box is empty
			inputBoxId.value = textHint;					// Fill the box with instruction
	}
}	
