function Highlighter(elementName)
{
	var defaultBGColour = "#FFFFFF";
	var focusedBGColour = "#E8F8FF";

	for (var i=0; i<WhatTag(elementName).length;i++)
	{
		var currentElement = WhatTag(elementName)[i];
		currentElement.onfocus = function(){ if ((this.type != 'submit')&&(this.type != 'button')&&(this.type != 'clear')){ this.style.backgroundColor = focusedBGColour; }; if ((this.value == ' ' || this.value == 'Please enter details...') && this.type != 'select-one'){ this.value = ''; this.focus(); }; };
		currentElement.onblur = function(){ if ((this.type != 'submit')&&(this.type != 'button')&&(this.type != 'clear')){ this.style.backgroundColor = defaultBGColour; }; } ;
	}
}

function OnLoadColours()
{
	Highlighter("INPUT");
	Highlighter("TEXTAREA");
	Highlighter("SELECT");
}

function WhatTag(tagName)
{
	var value = document.getElementByTagName?document.getElementByTagName(tagName):document.all.tags(tagName);
	return value;
}
if (document.all)
{
	window.onload = OnLoadColours;
}
