// code that will do toFixed in browsers that don't support it
function Stretch(Q, L, c) { var S = Q
	if (c.length>0) while (S.length<L) { S = c+S }
	return S
}
function StrU(X, M, N) { // X>=0.0
	var T, S=new String(Math.round(X*Number("1e"+N)))
	if (S.search && S.search(/\D/)!=-1) { return ''+X }
	with (new String(Stretch(S, M+N, '0')))
	return substring(0, T=(length-N)) + '.' + substring(T)
}
function Sign(X) { return X<0 ? '-' : ''; }
function StrS(X, M, N) { return Sign(X)+StrU(Math.abs(X), M, N) }

Number.prototype.toFixed= new Function('n','return StrS(this,1,n)')

function calcAmount() {
	var realprice = document.getElementById('price').value * 1.03093;
	document.getElementById('amount').value = realprice.toFixed(2);
}