// JavaScript Document

				
				function printpage()
				{
					if (window.print) { window.print() } else alert('To print this page press Ctrl-P on your keyboard.')
				}
				
				function addToFavorites()
				{
					//var urlAddress = "http://www.winmanagement.org";
					//var pageName = "WinManagement";
					var urlAddress = window.location;
					var pageName = window.document.title;
					if (window.external)
					{
						window.external.AddFavorite(urlAddress,pageName)
					}
					else
					{ 
						alert("Sorry! Your browser doesn't support this function.");
					}
			    }
				
				function BuildEmailDescription(strDescription,hRef)
		{
				return escape("Here's a great article you might be interested in:" + String.fromCharCode(13)+ String.fromCharCode(13) + strDescription + String.fromCharCode(13) + "URL: " + hRef);
		}
			function AddParamToURL(strLoc){
				var i = strLoc.lastIndexOf("?");
				return strLoc ;
			}
				
				function mailPage()
				{
					
				var oDoc = window.document;
				var oDescription = oDoc.getElementById("Description");
				var strDescription = ( (oDescription == null) || (oDescription.content == "") ) ? oDoc.title : oDescription.content;
				if( oDoc.title == "" )
					location.href = "mailto:?body="+BuildEmailDescription(strDescription, AddParamToURL(location.href));
				else
					location.href = "mailto:?subject="+escape(oDoc.title)+"&body="+BuildEmailDescription(strDescription, AddParamToURL(location.href));
				return true;
				}
