I was wondering why ad\'s still use the document.write approach to inserting the add into the page
Often these document.write injected scripts have dynamic strings attached to them to bust out of caching, or to send some info about the client to the ad server. I suspect your example started out as something like this
document.write("