//function disableIE() {if (document.all) {return false;}
//}
//function disableNS(e) {
//  if (document.layers||(document.getElementById&&!document.all)) {
//    if (e.which==2||e.which==3) {return false;}
//  }
//}
//if (document.layers) {
//  document.captureEvents(Event.MOUSEDOWN);document.onmousedown=disableNS;
//} else {
//  document.onmouseup=disableNS;document.oncontextmenu=disableIE;
//}
//document.oncontextmenu=new Function("return false")

function upsfolder()
{
MM_openBrWindow('./filemanager_/browser/default/browser.html?Connector=connectors/asp/connector.asp&ServerPath=/userfiles/upsupdates/','allega','resizable=yes,width=800,height=600')
}

var ns = (document.layers)? true:false;
var ie = (document.all)? true:false;
if (ns) document.captureEvents(Event.MOUSEDOWN || Event.CLICK);
document.onclick = sourcecodeprotect;
//document.onmousedown = sourcecodeprotect;
document.onmouseup = sourcecodeprotect;

// ***********************************************************
function sourcecodeprotect(e) {
  if (ns&&(e.which==3)) return false;
  else if (ie&&(window.event.button==2)) return false;
  //else return true;
  }
document.oncontextmenu=new Function("return false")
//document.onkeypress = new Function("return false")
function mouseDown(e) {
 var shiftPressed=0;
 if (parseInt(navigator.appVersion)>3) {
  if (navigator.appName=="Netscape")
       shiftPressed=(e.modifiers-0>3);
  else shiftPressed=event.shiftKey;
  if (shiftPressed) {
   alert ('Shift-click is disabled.')
   return false;
  }
 }
 //return true;
}
if (parseInt(navigator.appVersion)>3) {
 document.onmousedown = mouseDown;
 if (navigator.appName=="Netscape") 
  document.captureEvents(Event.MOUSEDOWN);
}


function detectspecialkeys(e){
var evtobj=self.event? event : e
if(!e) e=window.event;
key = e.keycode ? e.keycode : e.which;
//alert(key)
//if(key==17) {alert('noctrlv');e.returnValue=false;}
if (evtobj.altKey || evtobj.ctrlKey || evtobj.shiftKey){
//alert("you pressed one of the 'Alt', 'Ctrl', or 'Shift' keys")
e.returnValue=false;}
}
//document.onkeydown=detectspecialkeys;
