
// Right Click Error //

// if (document.layers){
//     window.captureEvents(Event.MOUSEDOWN | Event.MOUSEUP)
//     window.onmousedown=rightclick;
//     window.onmouseup=rightclick;
//     
//     function rightclick(e) {
//     if (e.which == 3) {
//     // Put right mouse code here
//     alert('(c) 2003, Sven Huge');
//     return false; 
//     }
//     else {
//         return true; 
//         }
//     }
// }
// if (document.all){
//     function click() {
//     if (event.button==2) {
//     alert('(c) 2003, Sven Huge')
//     }
//     
//     if (event.button==3) {
//     alert('(c) 2003, Sven Huge')}
//     }
//     document.onmousedown=click
// }

// Menu Popup //

function PopUp ( url, name, width, height, center, resize, scroll, posleft, postop ) {
   if (posleft != 0) { x = posleft }
   if (postop  != 0) { y = postop  }
   if ((parseInt (navigator.appVersion) >= 4 ) && (center)) {
   X = (screen.width  - width ) / 2;
   Y = (screen.height - height) / 2;
   }

   if (scroll != 0) { scroll = 1 }

   var extra = 'width=' + width + ', height=' + height + ', top=' + Y + ', left=' + X + ', resizable=' + resize + ', scrollbars=' + scroll + ', location=no, directories=no, status=no, menubar=no, toolbar=no';
        window.open( url, name, extra );
   }
