scrollStep=4 

timerUp=""
timerDown=""

function scrollDivDown(id){
clearTimeout(timerDown) 
document.getElementById(id).scrollTop+=scrollStep
timerDown=setTimeout("scrollDivDown('"+id+"')",10)
}

function scrollDivUp(id){
clearTimeout(timerUp)
document.getElementById(id).scrollTop-=scrollStep
timerUp=setTimeout("scrollDivUp('"+id+"')",10)
}

 
function stopMe(){
clearTimeout(timerDown) 
clearTimeout(timerUp)
}


function toTop(id){
document.getElementById(id).scrollTop=0
}
function toBottom(id){
document.getElementById(id).scrollTop=document.getElementById(id).scrollHeight
}


/* Image Scrollar to scroll image frame */
 
function ptoTop(id){
document.getElementById(id).scrollTop-=440
}
function ptoBottom(id){
document.getElementById(id).scrollTop+=440
}

function ptoLeft(id){
document.getElementById(id).scrollLeft-=100;
alert(document.getElementById(id));
}
function ptoRight(id){
document.getElementById(id).scrollLeft+=100;
}

function msg(msg)
{

document.getElementById("msg").innerHTML=msg;
}
function msg1()
{

document.getElementById("msg").innerHTML="";
}