Try right-clicking to view the source and see what happens. As you saw, you can't right-click, thus my source is protected. There are a few weaknesses to this, but it is a good barrier against anyone trying to steal your code.
The source..


<script language="Javascript1.2"> 
<!--
// please keep these lines on when you copy the source
// made by: Nicolas - http://www.javascript-page.com

var mymessage = "Sorry, but you can't view the source of this page.";

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
}

function rtclickcheck(keyp){

  if (document.layers && keyp.which != 1) {
    alert(mymessage);
    return false;
  }


  if (document.all && event.button != 1) { 
    alert(mymessage);
    return false;
  }
}

document.onmousedown = rtclickcheck
//-->
</script>

Nic's JavaScript Page