<!--
/*
+----------------------------------------------------------------------------------------------
| Site: Rosman Internet Services
| CMS:  gotopage 3.0
| Copyright (c) 2003 - 2005 Rosman (http://www.rosman.co.at)
|
| Author(s): Johan Rosman <johan@rosman.co.at>
+----------------------------------------------------------------------------------------------
| Purpose
| let print and email form be openened in a seperate window
+----------------------------------------------------------------------------------------------
| Version   Date         Comment
| 3.01      2005/09/26   migrated from gotopage 2.0 version homepage
+----------------------------------------------------------------------------------------------
*/

if ( !window._utilities ) {
    var _utilities = new Object();
    _utilities.utils = new Array();

    /* open print preview and email form in new windows */
    _utilities.openwin = function () {
        if ( this.id ) var _id = this.id;
        else var _id = _event.id;
        window.open( _utilities.utils[_id], "mailorprintit",
                     "width=" + Math.ceil ( screen.width * 0.8 ) + ",height=" + Math.ceil ( screen.height * 0.9 ) +
                     ",top=0,left=0,resizable=yes,scrollbars=yes,menubar=no,toolbar=no,status=no,location=no");
    } // openwin

    /* initialise utilities */
    _utilities.init = function () {
        var _utils = new _dhtml ( 'utilities' );
        var _a = _utils.obj.getElementsByTagName ( 'A' );
        for ( var _i=0; _i<_a.length; _i++ ) {
            if ( _class.is_a ( _a[_i], 'utility' ) ) {
                _utilities.utils[_a[_i].id] = _a[_i].href;
                _a[_i].href = '#';
                _event.register_handler ( _a[_i], 'click', _utilities.openwin );
                _a[_i].style.display = 'inline';
            }
        }
    }  // init

    _event.register_handler ( window, 'load', _utilities.init );
}
-->