toLocaleString in JavaScript

<script type="text/javascript" language="javascript">
<!-- //
function DisplayLocale(){
    var entry1 ;
    entry1 = prompt("Enter a floating point number", "123.123");
    number = new Number();
    number = Number(entry1);
    document.write(number.toLocaleString());
}
// -->
</script>