timer1 = null;function speedScroll(dir, spd, loop) {    stopScroll();    loop = true;    direction = "up";    speed = 10;    //timer1 = null;    ie4 = (document.all);    ns4 = (document.layers);    if (ns4) {        doc = "document";        sty = "";        htm = ".document";    } else {        if (ie4) {            doc = "document.all";            sty = ".style";            htm = "";        }    }    direction = dir;    speed = parseInt(spd);    var page = eval(doc + "[\"MyDivisionName\"]" + sty);    var y_pos = parseInt(page.top);    if (loop == true) {        if (direction == "dn") {            page.top = (y_pos - (speed));        } else {            if (direction == "up" && y_pos < 10) {                page.top = (y_pos + (speed));            } else {                /*                if (direction == "top") {                    page.top = 10;                }                */                stopScroll();            }        }        timer1 = setTimeout("speedScroll(direction,speed)", 1);    }}function stopScroll() {    loop = false;    clearTimeout(timer1);}