// JavaScript Document

// Clears an input box onFocus event but only if it hasn't been changed from the default value. If the colour value is set it will alter the colour of that input box to the specified colour.
function clearField(obj, orginalValue, colourChange) {
	
	if(obj.value == orginalValue) {
		obj.value = "";
		if(colourChange != null) {
			obj.style.color = colourChange;
		}
	}	
}
