﻿// If this page is loaded inside a frame, load the page in the top window
//if (top.location != self.location)
//{
//	top.location = self.location;
//}

// Add page to Favorites
function AddToFavorites()
{
	window.external.AddFavorite(location.href, document.title);
}

// Close window
function Close()
{
	window.close();
}

// E-mail page
function Email()
{
	window.navigate("mailto:?subject=Information from IRMI&body=Here is something you might find interesting from IRMI: " + location.href);
}

// Print page
function Print()
{
	window.print();
}

// Open window
function Open(url, name, features)
{
	if (url == null)
	{
		window.alert("Web Site Error: No 'url' parameter passed to 'Open' JavaScript function.");
		return;
	}

	if (name == null)
	{
		name = "Popup";
	}

	if (features == null)
	{
		features = "width=780,height=468,resizable=yes,scrollbars=yes,left=20,top=20";
	}

	window.open(url, name, features).focus();
}
