
function codes(e,where) {
var nav4 = window.Event ? true : false;
  if (nav4){ // Navigator 4.0x
    var whichCode = e.which;
  }else{ // Internet Explorer 4.0x
    if (e.type == "keypress"){ // the user entered a character
      var whichCode = e.keyCode;
    }else{
      var whichCode = e.button;
  }}
  if (e.type == "keypress"){
 //window.status = "kepress: code=" + whichCode + ", character=" + String.fromCharCode(whichCode)
	if (whichCode==13){
	e.keyCode=32; // change from 13 to remove bong
	searchdisplay(); bringchainsearch();
	location.href=where;
	}
  	}else{
    if (whichCode==13){
	e.button=32;
	searchdisplay(); bringchainsearch();
	location.href=where;
	}
  }
}

function openWindow(contentURL,windowName,windowWidth,windowHeight) {
	widthHeight = 'height=' + windowHeight + ',width=' + windowWidth +',left=0,top=0,toolbar=0, location=0,directories=0,status=0,menubar=0,scrollbars=0,copyhistory=0,resizable=1';
	newWindow = window.open(contentURL,windowName,widthHeight);
	newWindow.focus();
}

