﻿function GetElm(sID) { return document.getElementById(sID); }

function UpdateSignup(bHasFocus) {

	var sText, _TextBox;

	sText = CNText;
	_TextBox = GetElm(CNTextName);

	if (_TextBox != null) {
		if (bHasFocus) {
			if (_TextBox.value == sText) {
				_TextBox.value = "";
				_TextBox.className = "EmailTextBox TBBlack EmailInner";
			}
		}
		else {
			//If we are losing focus and they didn't enter a email, reset it.
			if (_TextBox.value == "") {
				_TextBox.value = sText;
				_TextBox.className = "EmailTextBox TBGrey EmailInner";
			}
		}
	}
}