window.onload = function() {

             var f = document.getElementById('cse-search-box');

            if (f) {

                var q = document.getElementById('q');

                var n = navigator;

                var l = location;

               if (n.platform == 'Win32') {

                    q.style.cssText = 'border: 1px solid #333; padding: 2px;';

                }

                var b = function() {

                    if (q.value == '') {

                        q.style.background = '#FFFFFF url(http:\x2F\x2Fwww.google.com\x2Fcoop\x2Fintl\x2Fen\x2Fimages\x2Fgoogle_custom_search_watermark.gif) left no-repeat';

                    }

                };

                var f = function() {

                   q.style.background = '#ffffff';

               };

                q.onfocus = f;

                q.onblur = b;

                if (!/[&?]q=[^&]/.test(l.search)) {

                    b();

               }

            }

        }

        searchkeydown = function() {

            if (window.event) {

                key = window.event.keyCode;     //IE

            }

            else {

                key = e.which;     //firefox

            }

            if (key == 13) {

                event.returnValue = false;

                event.cancel = true;

                googlesearch();

            }

        }

    

        googlesearch = function() {

       window.open('http://www.smallcappower.com/searchresults.aspx?cx=006275916805507142976%3A9pnecjpvo5g&cof=FORID%3A9&ie=UTF-8&q=' + escape(document.getElementById('q').value) + '&sa=Search&siteurl=%2FD%3A%2Fsmallcap_17092010%2Ftesting%2Fsitesearch.htm#942');

         }

