////////////////////////////////////////////////////////////////////////////////////////////////////
//
//	calculator.js : javascript functions for calculator
//
////////////////////////////////////////////////////////////////////////////////////////////////////

function calculatorResize (setWidth, setHeight)
{
	if (top.innerWidth)
	{
		frameWidth = top.innerWidth;
		frameHeight = top.innerHeight;
	}
	else if (document.documentElement && document.documentElement.clientWidth)
	{
		frameWidth = document.documentElement.clientWidth;
		frameHeight = document.documentElement.clientHeight;
	}
	else if (document.body)
	{
		frameWidth = document.body.clientWidth;
		frameHeight = document.body.clientHeight;
	}
	else return;

	windowWidth = setWidth - frameWidth;
	windowHeight = setHeight - frameHeight;

	top.resizeBy (windowWidth, windowHeight);
}

function calculatorChange (setSource)
{
	top.location.href = setSource;
}

function calculatorHack (setObject)
{
	document.writeln (setObject);
}

////////////////////////////////////////////////////////////////////////////////////////////////////
//
//	calculator.js : javascript functions for calculator
//
////////////////////////////////////////////////////////////////////////////////////////////////////



