QUOTE(Barn @ Mar 12 2006, 02:53 PM)

Is the main reason for what you said accessibility? Surely audio screenreaders etc would still see the content with this system even if they have no javascript parser? Is there another reason? What's so inherently wrong with using javascript for presentation?
First rule of quoting principles: always say why they exist in real world terms. Otherwise it's too easy to get a bit Richard Stallman-esque.
It's not about accessibility, it's about using the right tool for the job. This script is essentially turning this:
CODE
<div>
<!-- Insert content here. -->
</div>
Into this:
CODE
<div>
<!-- This divider is blank and has an upper left background image. -->
<div>
<!-- This divider is blank and has an upper right background image. -->
<div>
<!-- This divider is blank and has a lower left background image. -->
<div>
<!-- You would place your content in this divider, along with a lower right background image.
</div>
</div>
</div>
</div>
In a perfect world, support for CSS's layered background images would be a lot better then it is, but that just isn't the case so we're left with work arounds. With this particular JavaScript, and JavaScript in general (For situations like this.), you're just making things more complicated then they've got to be:
1) If JavaScript is disabled you're left with the first example. If you had just went with the second example in the first place you could have left JavaScript out entirely.
2) Even if the user has JavaScript enabled their browser has to be using a relatively up to date version, as this script doesn't bother to check for support of functions like getElementsByTagName.
3) You're limited to an anti aliased border, not exactly the design statement of the decade. That isn't the case if you go about things with the second example.
The bandwidth argument isn't really a viable one as images are cached and if the developer knows how to save images for the internet the result will be just as small as, if not smaller then, this script.