Hi Fotiman

Sorry for not getting back and yes I tried all the scripts, there was a small problem with your script in that if you entered:
alert(MoneyConverter.toTextDollars(1.01, "en")); it would return 1 dollars and 1 cents and not the singular dollar and cent,
and it is easer (for me) to have separate scripts for each language.

I've come across this script which looks like it could be changed but it has no fractions (cents) and no dollar or dollars but it looks easy to add any excepts to it.

any thoughts !

Steve.

Code:
<script type="text/javascript">
function printnumber (printnumber) {
	var strTemp = '';

	if (printnumber > 99) {
		firstnumber = printnumber.substr(0,1);
		middlenumber = printnumber.substr(1,1);
		lastnumber = printnumber.substr(2,1);
	} else if (printnumber > 9) {
		firstnumber = 0;
		middlenumber = printnumber.substr(0,1);
		lastnumber = printnumber.substr(1,1);
	} else {
		firstnumber = 0;
		middlenumber = 0;
		lastnumber = printnumber.substr(0,1);
	}
	if (firstnumber != 0) {
		if (firstnumber == 9) {
			strTemp = 'nine';
		} else if (firstnumber == 8) {
			strTemp = 'eight';
		} else if (firstnumber == 7) {
			strTemp =  'seven';
		} else if (firstnumber == 6) {
			strTemp = 'six';
		} else if (firstnumber == 5) {
			strTemp = 'five';
		} else if (firstnumber == 4) {
			strTemp = 'four';
		} else if (firstnumber == 3) {
			strTemp = 'three';
		} else if (firstnumber == 2) {
			strTemp = 'two';
		} else if (firstnumber == 1) {
			strTemp = 'one';
		}
		strTemp = strTemp + ' hundred ';
	}
	if (middlenumber != 0) {
		if (middlenumber == 9) {
			strTemp = strTemp + 'ninety-';
		} else if (middlenumber == 8) {
			strTemp = strTemp + 'eighty-';
		} else if (middlenumber == 7) {
			strTemp = strTemp + 'seventy-';
		} else if (middlenumber == 6) {
			strTemp = strTemp + 'sixty-';
		} else if (middlenumber == 5) {
			strTemp = strTemp + 'fifty-';
		} else if (middlenumber == 4) {
			strTemp = strTemp + 'fourty-';
		} else if (middlenumber == 3) {
			strTemp = strTemp + 'thirty-';
		} else if (middlenumber == 2) {
			strTemp = strTemp + 'twenty-';
		} else if (middlenumber == 1) {
			if (lastnumber == 9) {
				strTemp = strTemp + 'nineteen';
			} else if (lastnumber == 8) {
				strTemp = strTemp + 'eighteen';
			} else if (lastnumber == 7) {
				strTemp = strTemp + 'seventeen';
			} else if (lastnumber == 6) {
				strTemp = strTemp + 'sixteen';
			} else if (lastnumber == 5) {
				strTemp = strTemp + 'fifteen';
			} else if (lastnumber == 4) {
				strTemp = strTemp + 'fourteen';
			} else if (lastnumber == 3) {
				strTemp = strTemp + 'thirteen';
			} else if (lastnumber == 2) {
				strTemp = strTemp + 'twelve';
			} else if (lastnumber == 1) {
				strTemp = strTemp + 'eleven';
			} else {
				strTemp = strTemp + 'ten';
			}
		}
	}
	if (middlenumber != 1) {
		if (lastnumber == 9) {
			strTemp = strTemp + 'nine';
		} else if (lastnumber == 8) {
			strTemp = strTemp + 'eight';
		} else if (lastnumber == 7) {
			strTemp = strTemp + 'seven';
		} else if (lastnumber == 6) {
			strTemp = strTemp + 'six';
		} else if (lastnumber == 5) {
			strTemp = strTemp + 'five';
		} else if (lastnumber == 4) {
			strTemp = strTemp + 'four';
		} else if (lastnumber == 3) {
			strTemp = strTemp + 'three';
		} else if (lastnumber == 2) {
			strTemp = strTemp + 'two';
		} else if (lastnumber == 1) {
			strTemp = strTemp + 'one';
		}
	}

	return strTemp;
}

function AmountInText(value)
{
	var number = value;
	var numarray = number.split('.');
	numarray[0] = FormatValue(numarray[0]);
	var dollars = numarray[0].split(',');
	var strAmountInText = '';

	if (dollars[2]) {
		strAmountInText = strAmountInText + printnumber(dollars[0]);
		strAmountInText = strAmountInText + ' million ';
		strAmountInText = strAmountInText + printnumber(dollars[1]);
		strAmountInText = strAmountInText + ' thousand ';
		strAmountInText = strAmountInText + printnumber(dollars[2]);
	} else if (dollars[1]) {
		strAmountInText = strAmountInText + printnumber(dollars[0]);
		strAmountInText = strAmountInText + ' thousand ';
		strAmountInText = strAmountInText + printnumber(dollars[1]);
	} else {
		strAmountInText = strAmountInText + printnumber(dollars[0]);
	}

	if (!numarray[1]){numarray[1] = "00"}
	if (strAmountInText == ''){strAmountInText = "zero"}


	strAmountInText = strAmountInText + ' dollars, ' + numarray[1] + ' cents';

	return strAmountInText;
}

function FormatValue(value)
{
	var numarray = value.split('.');
	var strValue = numarray[0]
	var strTemp = '';

	for (var i = 1; i <= strValue.length; i++) {
		if (i == 4){
			strTemp = ',' + strTemp;
		} else if (i == 7){
			strTemp = ',' + strTemp;
		}

		strTemp = Left(Right(strValue, i), 1) + strTemp;
	}

	return strTemp;
}

function Left(str, n){
	if (n <= 0)
		return "";
	else if (n > String(str).length)
		return str;
	else
		return String(str).substring(0,n);
}

function Right(str, n){
	if (n <= 0)
	return "";
	else if (n > String(str).length)
	return str;
	else {
	var iLen = String(str).length;
	return String(str).substring(iLen, iLen - n);
	}
}
</script>
<form id="test" name="test"><input type="text" name="inum" id="inum" value="">

<input type="button" value="to dollars" onclick="document.getElementById('rnum').value = printnumber(document.getElementById('inum').value);"><br><br>

<textarea name="rnum" id="rnum" cols="40" rows="5"></textarea></form>


</div>
</body>
</html>