

var ML_Msg = "Enter your email address";

/* Specifically for PopBox */
popBoxWaitImage = "/assets/images/PopBox/spinner40.gif";
popBoxRevertImage = "/assets/images/PopBox/magminus.gif";
popBoxPopImage = "/assets/images/PopBox/magplus.gif";
//popBoxRevertImage = "/assets/images/PopBox/x.gif";
//popBoxShowRevertImage = false;


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, '') ;
}


function PopupPic(picURL) {
	/*
	Purpose
		Used to popup a picture.
	Parameters
		PicURL (string) = The URL of the picture we want to display.
	Version History
		1.0
	*/
	picURL = escape(picURL);
	window.open("popup-pic.html?"+picURL, "", "resizable=1,HEIGHT=200,WIDTH=200");
} 



/*
$(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......");
	});

});
*/
