﻿function initWatermark(textboxID, defaultValue)
{
	var txt = document.getElementById(textboxID);
	if (txt)
	{
		txt.value = defaultValue;
		txt.style.color = 'DarkGray';
	}
}

function textIn(textboxID, defaultValue)
{
	var txt = document.getElementById(textboxID);
	if (txt)
	{
		if (txt.value == defaultValue)
		{
			txt.value = '';
			txt.style.color = '';
		}
	}
}

function textOut(textboxID, defaultValue)
{
	var txt = document.getElementById(textboxID);
	if (txt)
	{
		if (txt.value == '')
		{
			txt.value = defaultValue;
			txt.style.color = 'DarkGray';
		}
	}
}

