//disables enter key on a form

var nav = window.Event ? true : false;
if (nav) {
   window.captureEvents(Event.KEYDOWN);
   window.onkeydown = HandleKeyDownEvent_Netscape;
}
else { 
   document.onkeydown = HandleKeyDownEvent_Microsoft;
}
function HandleKeyDownEvent_Netscape(e) {
   if (e.which == 13 && e.target.type != 'textarea' && e.target.type != 'submit' && e.target.type != 'image') {
      return false;
   } else {
      return true;
   }
}
function HandleKeyDownEvent_Microsoft() {
   if (event.keyCode == 13 && event.srcElement.type != 'textarea' && event.srcElement.type != 'input' && event.srcElement.type != 'submit' && event.srcElement.type != 'image') {
      return false;
   } else {
      return true;
   }
} 
//for debug purposes, this shows how to obtain element type
//place this function call in the body tag
//function clickIt(txt)  
//{
//   txt.value = window.event.srcElement.tagName + ":" + window.event.srcElement.type;
//}
