
        function EnterKeyPress(e)
        {
            var evt = e ? e : window.event;
            if (evt.keyCode == 13)
            { 
                submitForm();
                return false; 
            }
        }
        function submitForm()
        {
            if(window.location.search.substring(1) && window.location.search.length > 0)
                document.forms[0].action = "search-results.aspx" + '?' + window.location.search.substring(1);
            else
                document.forms[0].action = "search-results.aspx";
            createCookie('keywords', '', -1);
            createCookie('iCurrentPage', '', -1);
            document.getElementById('hdnCurrentKeyword').value =  document.getElementById('txtKeywords').value;
            document.forms[0].submit();
        }
        function createCookie(name,value,days) {
        if (days) {
        var date = new Date();
        date.setTime(date.getTime()+(days*24*60*60*1000));
        var expires = '; expires='+date.toGMTString();
        }
        else var expires = '';
        document.cookie = name+'='+value+expires+'; path=/';
        }

