﻿/*
	Requires jQuery
	
	Uses the following CSS:
		defaultText
		
	Use jQuery to attach the event handlers. Or call DefaultText_InitAll to attach all.
*/
function DefaultText_OnFocus(src)
{
	var input = $(src);
	
	var text = input.attr("defaultValue");
	
	if (input.val() == text)
	{
		input.removeClass("defaultText");
		input.val("");
	}
}