// JavaScript Document
function right(e)
{
  var msg = "Sorry, you cannot right-click on images.";

  // Are we a Netscape Browser
  if (document.layers || document.getElementById && !document.all && ((e.which == 2) || (e.which == 3))) {
    document.oncontextmenu = new Function("return false");
    alert(msg);
    document.oncontextmenu = null;
    return false;
  } else if (document.all && (event.button == 2)) {
    document.oncontextmenu = new Function("return false");
    alert(msg);
    document.oncontextmenu = null;
    return false;
  }
}

function trap()
{
  if (document.images)
  {
    for(i=0;i<document.images.length;i++)
    {
      document.images[i].onmousedown = right;
      document.images[i].onmouseup   = function() { return false };
      document.images[i].oncontextmenu = new Function("return false");
    }
  }
}

function clearInputText(what)
{
  if (!what._haschanged) {
	what.value="";
  };
  what._haschanged=true;
}

