var mymessage = "Sorry! Right Click is disabled";

  function disableRightClick(btnClick)
  {
    if (navigator.appName == "Netscape" && btnClick.which == 3) 
    {   
      alert(mymessage);
      return false;
    }
    else if (navigator.appName =="Microsoft Internet Explorer" && event.button == 2) 
    {
      alert(mymessage);
      return false;
    }
  }
document.onmousedown = disableRightClick;
var newWin = null;

function closeViewer() { if (newWin!=null && !newWin.closed) { newWin.close(); } }


function imageopen(iname,w,h)
{
closeViewer();

var myBars='directories=no,location=no,menubar=no,status=no,titlebar=no,toolbar=no,scrollbars=no, width=' + w + ', height=' + h + ', resizable=no, left=' + (screen.width-w)/2 + ', top=' + (screen.height-h)/2 ;
newWin=window.open('','c4u',myBars);

newWin.document.writeln("<html><head><title>Hotel Hari Darshan </title></head>");
newWin.document.writeln("<script language='Javascript'>var mymessage = 'Sorry!  Right Click is disabled ';function disableRightClick(btnClick){if(navigator.appName == 'Netscape' && btnClick.which == 3){alert(mymessage);return false;}else if (navigator.appName =='Microsoft Internet Explorer' && event.button == 2){alert(mymessage);return false;}}document.onmousedown = disableRightClick;<\/script>");
newWin.document.writeln("<body bgcolor='#FFFFFF' leftmargin='0' topmargin='0' marginwidth='0' marginheight='0'>");
newWin.document.writeln("<table width='100%' cellpadding=0 cellspacing=0><tr align=center><td valign=middle><img src='images/" + iname + "'></td></tr></table>");
newWin.document.writeln("</body></html>");
newWin.document.close();
newWin.focus();
}
