function doWindowKeyPress() 
{
  //alert(window.event.keycode);             //JWC999
  if (window.event.shiftKey) 
  {
    //if the shift and tilde key are pressed, go to login page.
    if (window.event.keyCode == 126) 
    {
      var location = new String(window.location.href);
      var editString = '';
      if (location.indexOf('?') == -1)
      {
        location = location + '?edit=true';
      }
      else
      {
        editString = '&edit=true'
        if ((location.indexOf('&edit=') != -1) || (location.indexOf('?edit=') != -1))
        {
          var index = location.indexOf('&edit=');
          if (index == -1)
          {
            index = location.indexOf('?edit=');
            editString = '?edit=true'
          }
          var tempLocation = location.substring(0,index);
          var tempLocation2 = location.substring(index+1);
          if (tempLocation2.indexOf('&') != -1)
          {
            location = tempLocation + tempLocation2.substring(tempLocation2.indexOf('&'));
          }
          else
          {
            location = tempLocation;
          }
        }
        location = location + editString;
      }
      window.location.href = location + '';
    }
	return false;
  }
  else 
  {
    return true;
  }
}

