Converting numbers to words in document.write
I found this code for converting numbers to words but am at a complete loss as to how to implement it within document write...
a small example of how it's being used:
address1=prompt("House number (numeric)","");
document.write(" <a>"+name+"</a> didn't answer, not recognising the voice outside and silently waited. After <a>"+address1+"</a> minutes footsteps dragged themselves away from the door and the steady roar of a car on it's last legs could be heard starting up and slowly fading into the distance. ");
Completely stuck! So any help would be amazing!