function showSaveButton(saveButtonId, saveMessageId)
{
	var saveButton = document.getElementById(saveButtonId);
	var saveMessage = document.getElementById(saveMessageId);
	
	if (browserIsIE())
	{
		saveMessage.style.display = "none";
	}
	else
	{
		saveButton.style.display = "none";
	}
}

function savePage()
{
	if (browserIsIE()) 
	{
		window.document.execCommand('saveAs',false,'CalculatorResults.html');
	}
	
}

function browserIsIE()
{
	var isIE = false;
	var browser = navigator.appName;
	var temp;
	var version;
	
	if (browser == "Microsoft Internet Explorer")
	{
		if (navigator.appVersion.indexOf("MSIE") != -1) 
		{
			temp = navigator.appVersion.split("MSIE");
			version = parseFloat(temp[1]);
			if(version >= 5) 
			{
				isIE = true;
			}
		}
	}
	
	return isIE;
}