Well, I think that in your for statement instead of [i] you should just put i
However, this may not solve your problem.
<script language="javascript"/>
I assume this is a typo if your getting anywhere at all...
<script language="javascript">//your code</script>
HTH,
----------
---Snib---
----------
<><