/*http://www.scottklarr.com/topic/126/how-to-create-ctrl-key-shortcuts-in-javascript/  */
var  isShft = false;
$(document).keyup(function (e) {
	if(e.which == 16) isShft=false;
}).keydown(function (e) {
	if(e.which == 16) isShft=true;	
	
  if(e.which == 48 && isShft == true) {location.href="demo20.html";return false;}
	if(e.which == 49 && isShft == true) {location.href="demo21.html";return false;}
  if(e.which == 50 && isShft == true) {location.href="demo22.html";return false;}
	if(e.which == 51 && isShft == true) {location.href="demo23.html";return false;}
	if(e.which == 52 && isShft == true) {location.href="demo24.html";return false;}
  if(e.which == 53 && isShft == true) {location.href="demo25.html";return false;}
	
	if(e.which == 48 ) {location.href="demo0.html";return false;}
	if(e.which == 49 ) {location.href="demo1.html";return false;}
  if(e.which == 50 ) {location.href="demo2.html";return false;}
	if(e.which == 51 ) {location.href="demo3.html";return false;}
	if(e.which == 52 ) {location.href="demo4.html";return false;}
  if(e.which == 53 ) {location.href="demo5.html";return false;}
	if(e.which == 54 ) {location.href="demo6.html";return false;}
	if(e.which == 55 ) {location.href="demo7.html";return false;}
  if(e.which == 56 ) {location.href="demo8.html";return false;}
	if(e.which == 57 ) {location.href="demo9.html";return false;}
  if(e.which == 77 ) {location.href="mileage.html";return false;}
  if(e.which == 68 ) {location.href="dates.html";return false;}
	
/* For numeric keypads*/
	if(e.which == 96 ) {location.href="demo20.html";return false;}
	if(e.which == 97 ) {location.href="demo21.html";return false;}
  if(e.which == 98 ) {location.href="demo22.html";return false;}
	if(e.which == 99 ) {location.href="demo23.html";return false;}
	if(e.which == 100 ) {location.href="demo24.html";return false;}
  if(e.which == 101 ) {location.href="demo25.html";return false;}
		
	});
	
	/* The basic code	
	$(document).keydown(function (e) {	
	if(e.which == 48 ) {location.href="demo0.html";return false;}
	if(e.which == 49 ) {location.href="demo1.html";return false;}
  if(e.which == 50 ) {location.href="demo2.html";return false;}
	if(e.which == 51 ) {location.href="demo3.html";return false;}
	if(e.which == 52 ) {location.href="demo4.html";return false;}
  if(e.which == 53 ) {location.href="demo5.html";return false;}
	if(e.which == 54 ) {location.href="demo6.html";return false;}
	if(e.which == 55 ) {location.href="demo7.html";return false;}
  if(e.which == 56 ) {location.href="demo8.html";return false;}
	if(e.which == 57 ) {location.href="demo9.html";return false;}		
	});
	*/

