// jscript

var originalTopPosition = "";

function ScrollUp(){
    var txtObj = document.getElementById("spanScrollText");
    if (txtObj != undefined){
        var topValue = txtObj.style.top.replace("px", "");
        if (originalTopPosition == ""){
            originalTopPosition = topValue;
        }
        
        if (parseFloat(originalTopPosition) > topValue){
            topValue = parseFloat(topValue) + 10;
            txtObj.style.top = topValue;
        }
    }
}

function ScrollDown(){
    var txtObj = document.getElementById("spanScrollText");
    if (txtObj != undefined){
        var topValue = txtObj.style.top.replace("px", "");
        if (originalTopPosition == ""){
            originalTopPosition = topValue;
        }
        
        topValue = parseFloat(topValue) - 10;
        txtObj.style.top = topValue;
    }
}

function FindObj(){
    var txtObj = document.getElementById("spanScrollText");
    if (txtObj != undefined){
        txtObj.style.top = 300;
        txtObj.style.left = 100;
        txtObj.style.display = "";
    }
}
