//<![CDATA[

if (bIE == true)
{
    document.onkeypress = CaptureSelectedEventsIE;
}
else
{
    document.captureEvents(Event.KEYPRESS);
    document.onkeypress = CaptureSelectedEventsNN;
}
					
// Capture the netscape events
function CaptureSelectedEventsNN(e) 
{
	var keyChar =	e.keyCode ? e.keyCode :
					e.charCode ? e.charCode :
					e.which;
    var target = e.target.name
											  
    return ProcessEvent(keyChar, target);
}
										
// Capture the IE events
function CaptureSelectedEventsIE() 
{
    var keyChar = event.keyCode;
    var target = event.srcElement.id;
											  
    return ProcessEvent(keyChar, target);
}

// Call function you want executed when 'enter' key is pressed
// This function should be placed in the specific page
//function ProcessEvent(key, target)
//{
//    if (key == "13") 
//    {
//        MakeCustomFunctionCall();
//        return false;
//    }
//}

//]]>