    var Browser = '' ;
    if ( !document.all && document.getElementById )
    {
        Browser = 'Mozilla / Mozilla Firefox' ;
    }
    if ( document.layers )
    {
        Browser = 'Netscape Navigator' ;
    }
    if ( navigator.userAgent.indexOf ( 'Opera' ) != -1 && document.getElementById )
    {
        Browser = 'Opera' ;
    }
    if ( document.all )
    {
        Browser = 'Internet Explorer' ;
    }

    function Get_Element ( ID )
    {
        var Element = '' ;
        if ( Browser == 'Internet Explorer' )
        {
            Element = document.all[ID] ;
        }
        if ( Browser == 'Netscape Navigator' )
        {
            Element = document.layer[ID] ;
        }
        if ( Browser == 'Mozilla / Mozilla Firefox' || Browser == 'Opera' )
        {
            Element = document.getElementById(ID) ;
        }

        return Element ;
    }

    function Get_Remote_Element ( ID )
    {
        var Element = '' ;
        if ( Browser == 'Internet Explorer' )
        {
            Element = window.opener.document.all[ID] ;
        }
        if ( Browser == 'Netscape Navigator' )
        {
            Element = window.opener.document.layer[ID] ;
        }
        if ( Browser == 'Mozilla / Mozilla Firefox' || Browser == 'Opera' )
        {
            Element = window.opener.document.getElementById(ID) ;
        }

        return Element ;
    }

    function Get_New_Window ( URL , Width , Height )
    {
        var Left = ( screen.width  - Width  ) / 2 ;
        var Top  = ( screen.height - Height ) / 2 ;
        Day = new Date ( ) ;
        ID = Day.getTime ( ) ;
        eval ( "Page" + ID + " = window.open ( URL , '" + ID + "' , 'height=' + Height + ',width=' + Width + ',top=' + Top + ',left=' + Left + ',toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0' ) ; " ) ;
    }

    function Set_Color ( Source_ID , Destination_ID )
    {
        var Source_Element      ;
        var Destination_Element ;

        Source_Element      = Get_Element ( Source_ID      ) ;
        Destination_Element = Get_Element ( Destination_ID ) ;

        Source_Element.style.backgroundColor = Destination_Element.value ;

        return true ;
    }

    function Set_Color_By_Value ( ID , Color )
    {
        var Element ;

        Element = Get_Element ( ID ) ;

        Element.style.backgroundColor = Color ;

        return true ;
    }

    function Set_Value ( Source_ID , Destination_ID )
    {
        var Source_Element      ;
        var Destination_Element ;

        Source_Element      = Get_Element ( Source_ID      ) ;
        Destination_Element = Get_Element ( Destination_ID ) ;

        Source_Element.value = Destination_Element.value ;

        return true ;
    }

    function Set_Value_By_Value ( ID , Color )
    {
        var Element ;

        Element = Get_Element ( ID ) ;

        Element.value = Color ;

        return true ;
    }

    function Save ( Color_ID , Color_Preview_ID )
    {
        var Element               ;
        var Color_Element         ;
        var Color_Preview_Element ;

        Element = Get_Element ( 'New_Color' ) ;

        Color_Element         = Get_Remote_Element ( Color_ID         ) ;
        Color_Preview_Element = Get_Remote_Element ( Color_Preview_ID ) ;

        Color_Element.value                         = Element.value ;
        Color_Preview_Element.style.backgroundColor = Element.value ;

        window.close ( ) ;

        return true ;
    }

    function Update_Template_Preview ( )
    {
        var URL = './.click_be/click_be/templates/index/custom/' + $F('Template') + '/screenshot.jpg' ;
        var Template_Preview = $('Template_Preview') ;
        Template_Preview.src = URL ;
        return true ;
    }

    function Set_Add_On_Load_Event ( Function )
    {
        if ( typeof window.addEventListener != "undefined" )
        {
            window.addEventListener( "load" , Function , false ) ;
        }
        else if ( typeof window.attachEvent != "undefined" )
        {
            window.attachEvent( "onload" , Function ) ;
        }
        else
        {
            if ( window.onload != null )
            {
                var Old = window.onload ;
                window.onload = function ( Event )
                {
                    Old ( Event ) ;
                    window[Function] ( ) ;
                };
            }
            else
            {
                window.onload = Function ;
            }
        }
        return true ;
    }

    function Enable_Newsletter_Preview ( )
    {
        var Message = tinyMCE.getContent('mce_editor_1') ? tinyMCE.getContent('mce_editor_1') : $F('Message') ;
        Element.update ( 'Newsletter_Preview_From' , $F('From_Name') + '<' + $F('From') + '>' ) ;
        Element.update ( 'Newsletter_Preview_Subject' , $F('Subject') ) ;
        Element.update ( 'Newsletter_Preview_Message' , Message ) ;
        Element.update ( 'Newsletter_Preview_CC' , $F('CC') ) ;
        Element.update ( 'Newsletter_Preview_BCC' , $F('BCC') + ',' ) ;
        Element.show ( 'Newsletter_Preview' ) ;
        return true ;
    }

    function Disable_Newsletter_Preview ( )
    {
        Element.hide ( 'Newsletter_Preview' ) ;
        return true ;
    }