﻿// JScript File
 document.onmousedown=right;
  document.onmouseup=right;
  window.document.layers=right;
  function right() //to trap right click button 
  {
   if (event.button == 2 || event.button == 3) 
    {
     alert("Due to Security reasons right click is Disabled.");
     return false;
    }
  }////// // to disable right click ////////ends here
    
      window.history.forward(1);
  //   window.history.back(0);
	
			
	 function goForward(x)
      {
       window.history.go(x) ;
       }  
              
     
//   function  onKeySignin()
//    {
//    
//    if(event.keyCode==17)
//    {
//      alert("Due to Security reasons this key is Disabled.");
//      return false;
//    }    

//    }

//   document.attachEvent("onkeydown", onKeySignin);
//   document.onkeydown=onKeySignin;
//   

    
    function dontallowspace(event)//on keypress only albhabet entry function
     { 
  
      var pressedKeyCode = event.keyCode;
      if(pressedKeyCode==60 || pressedKeyCode==62)
      {
     // alert("Special characters >< are not allowed");
       return false;
      }
    
      if(pressedKeyCode==13 || pressedKeyCode==32 || pressedKeyCode==188)
      {
      return false;
      }
      return true;
   
  
     } 	
    
    function allowNumbersCharacters(event)//on keypress only albhabet entry function
     {   
    alert("Hai");
//			    var key;
//				var keychar;
//				if (window.event)
//				key = window.event.keyCode;
//				else if (e)                        
//				key = e.which;
//				else
//				return true;
//				keychar = String.fromCharCode(key);
//				if ((("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-").indexOf(keychar) > -1))
//				return true;
//				else
//				return false;
     } 
      document.onkeydown = myFunc;
      function myFunc()
     { 
        if(event.keyCode == 78)
        { 
          //character "N"
            if(event.ctrlKey)
            {
             //if press ctrl
                event.returnValue = false;
                event.keyCode = 0;
            }
        }
     }
   
