﻿// This is the function which is used to set the default button to be clicked for various controls
// Function Written By : R. Pavan Kumar on 12th June'2008.


function focusDefaultButton(btnId,controlId,e)
{
    if(navigator.appName == "Netscape")
    {
        if (e.keyCode && e.keyCode == 13)
        {
            document.getElementById(btnId).focus();
        } 
    }
    if (navigator.appName == "Microsoft Internet Explorer")
    {
        if (event.keyCode == 13)
        {
            document.getElementById(btnId).focus();
        } 
    }
}


