onclick/onkeypress test for calendar (with tabindex)

Setting onclick and onkeypress events:

	  onclick="javascript:location.href='$url';" 
	  onkeypress="javascript:goto('$url', event);"
	

Javascript function for onkeypress:

	  function goto(theUrl, event) {
	    var key;

	    if (event) {
	      if (event.which == 13) {
	        location.href = theUrl;
	      }
	    }
	  }
	
         [1 ]  [2 ]  [3 ]
 [4 ]  [5 ]  [6 ]  [7 ]  [8 ] No tabindex from here  [9 ]  [10 ]
 [11 ]  [12 ]  [13 ]  [14 ]  [15 ]  [16 ]  [17 ]
 [18 ]  [19 ]  [20 ]  [21 ]  [22 ]  [23 ]  [24 ]
 [25 ]  [26 ]  [27 ]  [28 ]  [29 ]  [30 ]  [31 ]