<html>
<head>
<script>
function createVar() {
var joe=new Array();
for(i=0;i<document.links.length;i++){
joe[i]=document.links[i];
}
//the following is only used to test the script
var content = "";
for (j in joe) {
content += joe[j] + "<br>";
}
document.getElementById('test').innerHTML = content;
}
</script>
</head>
<body onload="createVar()">
<a href=http://www.codingforums.com/archive/index.php/"test1.htm">test 1</a>
<a href=http://www.codingforums.com/archive/index.php/"test2.htm">test 2</a>
<a href=http://www.codingforums.com/archive/index.php/"test3.htm">test 3</a>
<a href=http://www.codingforums.com/archive/index.php/"test4.htm">test 4</a>
<a href=http://www.codingforums.com/archive/index.php/"test5.htm">test 5</a>
<a href=http://www.codingforums.com/archive/index.php/"test6.htm">test 6</a>
<a href=http://www.codingforums.com/archive/index.php/"test7.htm">test 7</a>
<a href=http://www.codingforums.com/archive/index.php/"test8.htm">test 8</a>
<a href=http://www.codingforums.com/archive/index.php/"test9.htm">test 9</a>
<a href=http://www.codingforums.com/archive/index.php/"test10.htm">test 10</a>
<a href=http://www.codingforums.com/archive/index.php/"test11.htm">test 11</a>
<a href=http://www.codingforums.com/archive/index.php/"test12.htm">test 12</a>
<a href=http://www.codingforums.com/archive/index.php/"test13.htm">test 13</a>
<!-- the following is only used to test the script -->
<br><br><br>
<span id="test">
</span>
</body>
</html>
