function disableselect(e){
return false
}

function reEnable(){
return true
}

//if IE4+
document.oncontextmenu=new Function ("return false")
document.ondragstart=new Function ("return false")

//if NS6
if (window.sidebar){
document.onclick=reEnable
}