﻿        // process google search       
        function GoogleSearch(q) {
            var t = ''
            var a = ''

            if (eval("document.frmMain.sitesearch[0].checked") == true)
                t = 'sitesearch=www.communityfocusonline.com';
            else
                t = 'sitesearch=';

            //alert(t);
            
            a = "http://www.google.com/custom?" + 
                t +
                "&q=" + q +
                "&domains=www.communityfocusonline.com" +
                "&forid=1" +
                "&client=pub-3868510163718254" +
                "&ie=ISO-8859-1" +
                "&oe=ISO-8859-1" +
                "&safe=active" +
                "&cof=GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH:center;BGC:FFFFFF;LBGC:336699;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;FORID:1" +
                "&hl=en";

            //alert(a);
            window.location = a;            
        } 

/*
        // position footer @ bottom dynamically by placing it below dContainer object!
        if ( window.addEventListener ) {
            window.addEventListener( "scroll", uPositionFooter, false );
            window.addEventListener( "resize", uPositionFooter, false );
        }
        else {
            window.attachEvent( "onscroll", uPositionFooter );
            window.attachEvent( "onresize", uPositionFooter );
        }
 
        function uPositionFooter()
        {
            var html = document.getElementsByTagName( "html" )[ 0 ];
            var winY = html.scrollTop;
            var winH = html.offsetHeight;
            var element = document.getElementById( "dFooter" );
            winH -= element.offsetHeight;
            element.style.top = ( winY + winH ) + "px";
        }
*/
        