
function rightclickmenuhide() {
	rightclickmenu.style.display = 'none';
}

function myErrorHandler(errorMessage,url,line) {
// window.
 //ignore	
 return true
}

// Then set onerror to the name of the error handling function.
// Make sure onerror is all lowercase or else Internet Explorer
// won't handle it correctly.
onerror = myErrorHandler 

function hidestatus(){
  window.status=''
  return true
}

if (document.layers) document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)

document.onmouseover=hidestatus
document.onmouseout=hidestatus



if (window.Event) document.captureEvents(Event.MOUSEUP);   
document.oncontextmenu = nocontextmenu;   
//document.onmousedown = norightclick;   

if (window.sidebar){
  //document.onmousedown=disableselect
  document.onclick=reEnable
}
function nocontextmenu() {  
  event.cancelBubble = true  
  event.returnValue = false;  
  return false;  
}

function norightclick(e){
  if (window.Event){
    if (e.which == 2 || e.which == 3) rightclickmenushow(e.clientX,e.clientY);
    return false;
  } else if (event.button == 2 || event.button == 3){  
   rightclickmenushow(event.clientX,event.clientY);
   event.cancelBubble = true  
   event.returnValue = false;  
   return false;  
  }
}
function disableselect(e){ return false }

function reEnable(){ return true }

document.onselectstart=new Function ("return false")

