<!--
// A collection of routines for Water Features

// Routine to print the window
function onPrintPage()
	{
	window.print();
	}

// Routine to open a new e-mail window
function onOpenEmail(TheAddress)
	{
	TheAddress = "mailto:" + TheAddress + "@TropicWeave.com";
	window.open(TheAddress);
	}

// Routine to open a new e-mail window
function onOpenEmailOther(TheAddress, Domain)
	{
	TheAddress = "mailto:" + TheAddress + "@" + Domain;
	window.open(TheAddress);
	}

// Routine to email the page to a friend
var WindowEmailPage;
function onEmailPage(TheKeyField)
	{
	var TheWinWidth = 500, TheWinHeight = 330;
	var TheWinLeft = parseInt((parseInt(screen.availWidth) - TheWinWidth) / 2);
	var TheWinTop = parseInt((parseInt(screen.availHeight) - TheWinHeight) / 2);
	var ThePopupLocation = "/Global/EmailPage/EmailPage.aspx?Title="+document.title+"&Location=" + document.location;
	var TheWindowParams = "toolbar=no,location=no,menubar=no,scrollbars=yes,status=no,statusbar=no,resizable=yes,title=no,titlebar=no"
		+ ",width=" + TheWinWidth + ",height=" + TheWinHeight + ",left=" + TheWinLeft + ",top=" + TheWinTop;
	if (TheKeyField)
		ThePopupLocation += "\%" + TheKeyField.name + "=" + TheKeyField.value;
	if (WindowEmailPage && !WindowEmailPage.closed)
		WindowEmailPage.location = ThePopupLocation;
	else
		WindowEmailPage = window.open(ThePopupLocation,"WindowEmailPage",TheWindowParams);
//alert("WindowEmailPage.document.all.TheTitle=" + WindowEmailPage.document.all.TheTitle);
//alert("WindowEmailPage.document.all.TheTitle.innerHTML =" + WindowEmailPage.document.all.TheTitle.innerHTML);
//		WindowEmailPage.document.all.TheTitle.innerHTML = "Error";
//		WindowEmailPage.document.all.TheContent.innerHTML = TheErrorMessage;
	WindowEmailPage.focus();
	}

// Routine to swap image
function onSwapImage(TheTargetName, TheSourceName)
	{
	var TheTarget, TheSource;
	TheTarget = document.getElementById(TheTargetName);
	TheSource = document.getElementById(TheSourceName);
	TheTarget.src = TheSource.src;
	}

// Routine to get the previous page
function onPageGoTo(TheForm, ThePageNumber)
	{
	TheForm.FormFindPageNumber.value = ThePageNumber;
	onShowList();
	}

// Routine to get the previous page
function onPagePrev(TheForm)
	{
	TheForm.FormFindPageNumber.value = parseInt(TheForm.FormFindPageNumber.value) - 10;
	onShowList();
	}

// Routine to get the next page
function onPageNext(TheForm)
	{
	TheForm.FormFindPageNumber.value = parseInt(TheForm.FormFindPageNumber.value) + 10;
	onShowList();
	}

//-->