
// Copyright (C)2001 Interactive Intelligence Inc.
// All rights reserved, for use only by i3 customers
// 
// $Archive:  $
// $Date:  $
// $Revision:    $
// $Author:    $

/***********************************************************************************
'*****  Filename:  Scripts/EnterSubmit.js                                      *****
'*****  Function:  Allows Netscape users to click <ENTER> to submit forms      *****
'*****                                                                         *****
'*****  Copyright (c) 2001 Interactive Intelligence Inc (All Rights Reserved)  *****
'**********************************************************************************/
  
var isNetscape = false;
var isIE = false;
var isOther = false;
var isNET = false;
	
//determine which browser the user is using

if (parseInt(navigator.appVersion) >= 4) 
{
  if(navigator.appName == "Netscape") 
  {
    isNetscape = true;
  }
  else if (navigator.appName == "Microsoft Internet Explorer")
  {
    isIE = true;
  }
  else 
  {
    isOther = true;
  }
  
  if (navigator.userAgent.indexOf(".NET CLR") > -1)
	isNET = true;
}
	
//capture events of Netscape users
/*
if(isNetscape) {
	document.captureEvents(Event.KEYUP);
}
document.onkeyup = checkValue;


function checkValue(evt){
  var theButtonPressed;
  if (isNetscape) {
		theButtonPressed = evt.which;
  }else if(isIE) {
		theButtonPressed = window.event.keyCode;
  }else if(isOther) {
	alert("Please hit the submit button to process form");
  }
		
  if (theButtonPressed == 13) {
	document.forms[0].submit();
  }
}
*/
