
/**
 * Clears a textField in a form.
 * @param textField The textField.
 */
function clearText(textField) 
{ 
	if (textField) 
		textField.value = "";
}	//__End clearText().

/**
 * Undoes the work of clearText(), if the user failed to enter anything.
 * It is necessary to supply the value of the textField.
 * @param textField The textField.
 * @param promptValue The string to insert into the textField, assuming 
 * there is nothing in the textField already.
 */
function unclearText(textField, promptValue)
{
	if (textField && textField.value=="" && promptValue) 
		textField.value = promptValue;
}	//__End unclearText().

//__Set the flag false so we'll always show the referrer message once per page.
var hasShownReferrerMessage = false;
/**
 * Lets the user know that the referrer might win a valuable prize. 
 */
function informAboutReferrer()
{
	//__Show this message only once.
	if (!hasShownReferrerMessage)
		alert("Please note that if you name the person who referred you, they'll be eligible for occasional drawings for valuable items for as long as you subscribe to this list. I encourage you to name a referrer! Sorry, you can't list yourself. If you do, you will be disqualified, so you might as well be honest!");
		
	//__Set the flag true so we won't show his message again.
	hasShownReferrerMessage = true;
}	//__End informAboutReferrer().

/**
 * Popus up an alert box telling my privacy policy.
 */
function tellPrivacyPolicy()
{
	alert("We won't rent, sell, or give away your personal information to anyone. Period.");
}	//__End tellPrivacyPolicy().

