    /***************************************************************** 
    *   
    *   This is the source code for the Disable right click function.
    *  
    ******************************************************************/ 

var message="I'm sorry, The Right click option on your mouse has been disabled. Website Designs and Content are copyrighted materials.....";

///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false")


  function login(showhide){
    if(showhide == "show"){
        document.getElementById('popupbox').style.visibility="visible"; /* If the function is called with the variable 'show', show the login box */
    }else if(showhide == "hide"){
        document.getElementById('popupbox').style.visibility="hidden"; /* If the function is called with the variable 'hide', hide the login box */
    }
  }

  function register(showhide){
    if(showhide == "show"){
        document.getElementById('popupreg').style.visibility="visible"; /* If the function is called with the variable 'show', show the register box */
    }else if(showhide == "hide"){
        document.getElementById('popupreg').style.visibility="hidden"; /* If the function is called with the variable 'hide', hide the register box */
    }
  }
  function search(showhide){
    if(showhide == "show"){
        document.getElementById('popupsearch').style.visibility="visible"; /* If the function is called with the variable 'show', show the register box */
    }else if(showhide == "hide"){
        document.getElementById('popupsearch').style.visibility="hidden"; /* If the function is called with the variable 'hide', hide the register box */
    }
  }
    function popupimage1(showhide){
    if(showhide == "show"){
        document.getElementById('popupimage1').style.visibility="visible"; /* If the function is called with the variable 'show', show the register box */
    }else if(showhide == "hide"){
        document.getElementById('popupimage1').style.visibility="hidden"; /* If the function is called with the variable 'hide', hide the register box */
    }
  }
      function popupimage2(showhide){
    if(showhide == "show"){
        document.getElementById('popupimage2').style.visibility="visible"; /* If the function is called with the variable 'show', show the register box */
    }else if(showhide == "hide"){
        document.getElementById('popupimage2').style.visibility="hidden"; /* If the function is called with the variable 'hide', hide the register box */
    }
  }
      function popupimage3(showhide){
    if(showhide == "show"){
        document.getElementById('popupimage3').style.visibility="visible"; /* If the function is called with the variable 'show', show the register box */
    }else if(showhide == "hide"){
        document.getElementById('popupimage3').style.visibility="hidden"; /* If the function is called with the variable 'hide', hide the register box */
    }
  }



