/*
€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€
€
€ INCLUDE.JS
€
€   EconNSoft Open Classes JS
€
€   Copyright: (C) 2002 by EconNSoft - Dominik Schulte-Scherlebeck
€   Author   : Dominik Schulte-Scherlebeck
€   Version  : 1.0
€   Build    : 2002-05-03
€   Legal    : All rights reserved! Do not distribute!
€   Homepage : www.econnsoft.com
€
€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€*/
/*
€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€
€ cls_Include
€   The INC class should be used to include other JS files while runtime.
€   Files will only be included one-time. Double including a file is blocked.
€   Use INC.ADD( <File> ); to load another JS file.
€
€   Instances:
€       INC
€       INCLUDE
€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€*/
function cls_Include()
{
    this.PATH   = "";
    this.LIB    = new Array(100);
    this.COUNT  = 0;
    this.FORCE  = hIncludeForce;
    this.ADD    = hIncludeAdd;
    this.EXISTS = hIncludeExists;
    this.INFO   = hIncludeInfo;
};
var INC = new cls_Include;
var INCLUDE = INC;
/*
€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€
€ vIncludeInfo ()
€   Shows an info window about loaded files
€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€*/
function hIncludeInfo( )
{
    var vText="";
    var vChild;
    var vI;
    vChild = window.open ( "about:blank", "INCLUDE_INFO", "location=no, menubar=no, status=no, toolbar=no, scrollbars=yes, resizable=yes");
    vChild.focus();
    vChild.document.write("<FONT SIZE=2 FACE='Tahoma,Helvetica' COLOR='#000000'>");
    vChild.document.write("<B>Included librarys</B>");
    vChild.document.write("<hr>");
    for ( vI=0; vI<this.COUNT; vI++ ) {
        vChild.document.write( vI+ ": <A HREF='"+this.LIB[vI] + "'>"+this.LIB[vI] + "</A><br>");
    };
    vChild.document.write("<hr>");
    vChild.document.write("EconNsoft Open Classes JS. (C) 2002 by EconNSoft");
    vChild.document.write("</FONT>");
};
/*
€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€
€ Bool hIncludeExists ( vFile )
€   Returns 1 if library is already loaded
€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€*/
function hIncludeExists( vFile )
{
    var vCheck="";
    var vI=0;
    if ( vFile.indexOf("/")==-1 ) {
        vCheck=this.PATH+vFile;
    } else {
        vCheck=vFile;
    };
    vCheck = vCheck.toUpperCase();
    for ( vI=0; vI<this.COUNT; vI++ ) {
        if ( vCheck == this.LIB[vI] ) {
            return(1);
        };
    };
    return(0);
};
/*
€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€
€ vIncludeAdd ( vFile )
€   Includes a JS lib dynamically
€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€*/
function hIncludeAdd( vFile )
{
    var vInclude="";
    if ( this.EXISTS(vFile) ) {
        return;
    };
    vInclude=vFile;
    if ( vFile.indexOf("/") == -1 ) {
        vInclude=this.PATH+vInclude;
    };
    document.write("<SCRIPT LANGUAGE='JavaScript' SRC='"+vInclude+"'></SCRIPT>");
    vInclude = vInclude.toUpperCase();
    this.LIB[this.COUNT] = vInclude;
    this.COUNT++;
};
/*
€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€
€ vIncludeForce ( vFile )
€   Includes a JS lib dynamically
€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€*/
function hIncludeForce( vFile )
{
    var vInclude="";
    if ( this.PATH=="" ) return;
    vInclude=vFile;
    if ( vFile.indexOf("/") == -1 ) {
        vInclude=this.PATH+vInclude;
    };
    document.write("<SCRIPT LANGUAGE='JavaScript' SRC='"+vInclude+"'></SCRIPT>");
    vInclude = vInclude.toUpperCase();
};
