

var ML_Msg = "Enter your email address";


function MLClearTB() {
	/*
	Purpose
		Used to clear the mailing list textbox.
	*/
	
	var tb = document.getElementById("ml-textbox");
	
	if (tb.value == ML_Msg) {
		tb.value = "";
	}

} 


function MLSetTB() {
	/*
	Purpose
		Used to set the default value of the mailing list textbox.
	*/
	
	//var msg = "Enter your email address";
	var tb = document.getElementById("ml-textbox");
	
	if (Str_Trim(tb.value) == "") {
		tb.value = ML_Msg;
	}

} 


function Str_Trim(Str) {
	/*
	Purpose
		Used to trim leading and trailing whitespace from a string.
	Parameters
		Str (String) = The string we want to trim.
	Return (String)
		Returns the specified string (Str) trimmed of whitespace on each side.
	Version History
		1.0 11/18/2008 Tested by Russ Tanner
	*/

	return Str.replace(/^\s+|\s+$/g, '') ;
}


/*
$(document).ready(function() {

// Display a status message next to the submit button.
	function SayStatus(Msg) {
		$("#Status").text(Msg);
	};


	// Display a "Searching" message when form is submitted
	$("#SearchForm").submit(function() {
		SayStatus("Searching. Please Wait......");
	});

});
*/
