function writeit(writeText) {
	if (writeText!="0")
		document.write(writeText);
	else 
		document.write(" ");
}

// Nicks new function please leave

function writeoutto2dp(rate,n)
{
	var that = rate,a;
	n = n?n:0;
	that = (Math.floor(that*Math.pow(10,n)))/Math.pow(10,n);
	a = that.toString().split('.');
	a[1] = a[1]?a[1]:'';
	while(a[1].length < n) {
		a[1] = a[1]+'0';
	}
	return n>0?a.join('.'):a[0];
} 