﻿

// used for 
function SetFocus(Control)
{
    if (typeof(Control) == 'undefined')
        return;
        
    Control.value = Control.value;
    Control.focus();    
}
   
// if <<Enter>> clicked and cursor located in insurance details
function HandleKeyPress(ButtonToClick)
{
    if (typeof(window.event) != 'undefined' && window.event.keyCode == 13)
    { 
        event.returnValue = false;
        ButtonToClick.click();
    }
    
    return;
}