function addLoadEvent(func)
{
  var oldonload = window.onload;

  if (typeof window.onload != 'function') {
    window.onload = func;
  } 
  else
  {
    window.onload = function()
    {
      oldonload();
      func();
    }
  }
}

function ProtectImages()
{
  var elements = document.getElementsByTagName("img");

  for (var i = 0; i < elements.length; i++)
  {
    elements[i].oncontextmenu = function()
    {
      alert("Images on this page are Copyright protected.  Please seek permission from the photographer if you would like to use it.");
	  return false;
    }
  }
}

function ProtectImage(e)
{

      alert("Image protected.");
	  return false;
}
addLoadEvent(ProtectImages);