Code:
window.onload = init;
var HOM_MENU_ITEM_ID = 1;
var RES_MENU_ITEM_ID = 2;
var AB_MENU_ITEM_ID = 3;
var http_request = false;

function init() {
	createMenu();
    window.menu.showSoftkeys();
	widget.setNavigationEnabled(false);
	showMainView();
}
function MshowID( id ) {
  
  switch (id)
  {
    case HOM_MENU_ITEM_ID:
	
	document.getElementById("resultView").style.display = "none";
    document.getElementById("aboutView").style.display = "none";
	document.getElementById("mainView").style.display = "block";
      break;
    case RES_MENU_ITEM_ID:
	// hide the result and main view and show the about view
	document.getElementById("resultView").style.display = "block";
    document.getElementById("aboutView").style.display = "none";
	document.getElementById("mainView").style.display = "none";
	
	// restore the right softkey 
	window.menu.setRightSoftKeyLabel('Back', showMainView);
      break;
	case AB_MENU_ITEM_ID:
	// hide the result and main view and show the about view
	document.getElementById("resultView").style.display = "none";
    document.getElementById("aboutView").style.display = "block";
	document.getElementById("mainView").style.display = "none";
	
	// restore the right softkey 
	window.menu.setRightSoftKeyLabel('Back', showMainView);
      break;
  }
}

more code here

function showMainView()
{
	// hide the result and about view and show the main view
	
	document.getElementById("resultView").style.display = "none";
    document.getElementById("aboutView").style.display = "none";
	document.getElementById("mainView").style.display = "block";
}
function showResultView()
{
	document.getElementById("resultView").style.display = "block";
    document.getElementById("aboutView").style.display = "none";
	document.getElementById("mainView").style.display = "none";
}

function showResult()
{
	moreCodehere();
	// get the results to be displayed
	showResultView();
	window.menu.setRightSoftKeyLabel('Back', showMainView);
		
}
function createMenu(){

  var menu1 = new MenuItem("Locate", HOM_MENU_ITEM_ID);    
  var menu2 = new MenuItem("Result", RES_MENU_ITEM_ID);
  var menu3 = new MenuItem("About", AB_MENU_ITEM_ID);
  
  menu1.onSelect = MshowID;
  menu2.onSelect = MshowID;
  menu3.onSelect = MshowID;
  
  window.menu.append(menu1);
  window.menu.append(menu2); 
  window.menu.append(menu3);   
}
So now the problem:

If I select something in Menu nothing happens.
Then if I press the green dial button the correct selected is shown.
But if I press one of the navigation keys it quits with KERN-EXEC 3.

Any suggestions?