<!--
	function editKeyDown(e, strButton, strValidate)
	{
		var thisKey
		submitButton = strButton

		if (navigator.appName.indexOf("Netscape")!=-1){
			thisKey = e.which
			}

		if (navigator.appName.indexOf("Microsoft")!=-1){
			thisKey = e.keyCode
			}
		if ( thisKey == 13 )
		{ 
			e.keyCode = 0;
		    e.returnValue = false;
			e.cancelBubble = true;

			if (navigator.appName.indexOf("Microsoft")!=-1){
				var t
				t = true; 
//these lines were commented out				
				if (strValidate == "true"){
					if (typeof(Page_ClientValidate) == 'function'){
						 t = Page_ClientValidate();
					}
					else {
						t = true;
					}
				}				
		
				if (t==true){
var btnUse;
btnUse = eval("document.thisPage." + strButton);
btnUse.click()

//					__doPostBack(strButton,'')
				}
			}			

		}
	}
	
	function keyDown(DnEvents){
		k = (netscape) ? DnEvents.which : window.event.keyCode;
		lastKey = k
		if (k == 13 && netscape){
			return false;
		}
		else{
			return true;
		}
	}

// onSubmit="return doMe();"
// was included in form tag
	function doMe(e) {
   	 if (lastKey == 13 && netscape){
		lastKey = "";
		__doPostBack(submitButton,'')
		return false;
		}
	else{
		return true;
		}
	}

	netscape = "";
	submitButton = "";
	ver = navigator.appVersion; len=ver.length;
	for(iln=0; iln<len;iln++) if (ver.charAt(iln) == "(") break;
	netscape = (ver.charAt(iln+1).toUpperCase() != "C");

	if (netscape) document.captureEvents(Event.KEYDOWN|Event.KEYUP);
	document.onkeydown = keyDown;
	var lastKey	

// netscape 7 submits buttons ok and properly performs all validations.

// netscape 6.2.3 submits and validates ok.

// netscape 4.79 behavior ignores all enter keystrokes and does not perform validation or 
// submit the form.  also does not shoot warnings. works fine when clicking buttons.

//-->


