var loc = new Array();
var myAs = new Array();
var aSett = new Array();
var text = new Array();
var first=0;
var first2=0;
var otherfirst=0;
var winn;
var win;
var anchor2 = new Array();
var num = 0;
var sectionNumber = new Array();
var maindoc;
var impElement = new Array();
var aSet;
var sectionTitle = new Array();
var win2;
function listanchors(t)
{
if(first2==0)
{
winn = window.open("", "",
"scrollbars=yes,resizable=yes," +
"width=225,height=150");
maindoc = t.document;
v = winn.document;
v.write('
Table of Contents');
var toc = v.createElement("div");
toc.style.backgroundColor = "white";
toc.style.fontFamily = "sans-serif";
var anchor = v.createElement("a");
toc.appendChild(anchor);
anchor.appendChild(v.createTextNode("List of the Page's Links"));
var table = v.createElement("table");
toc.appendChild(table);
tbody = v.createElement("tbody");
table.appendChild(tbody);
for(var i = 0; i < maindoc.anchors.length; i++)
{
var a = maindoc.anchors[i];
loc[i] = a.href;
text[i] = null;
if (a.text) text[i] = a.text; // Netscape 4
else if (a.innerText) text[i] = a.innerText; // IE 4+
if ((text[i] == null) || (text[i] == '')) text[i] = a.name; // Default
var row = v.createElement("tr");
var col1 = v.createElement("td");
myAs[i] = v.createElement("a");
myAs[i].setAttribute("name",loc[i]);
myAs[i].setAttribute("href","");
myAs[i].setAttribute("innerText",text[i]);
col1.setAttribute("align", "left");
col1.appendChild(myAs[i]);
row.appendChild(col1);
tbody.appendChild(row);
}
replace = v.getElementById("placeholder");
replace.parentNode.replaceChild(toc, replace);
}
first2=1;
aSett = v.getElementsByTagName("a")
for(w=1;wTable of Contents