﻿// JavaScript File

/* The following JavaScript function activates html plugins
of type OBJECT, EMBED, and APPLET for the document that calls it */
function ActivatePlugins(){
    var PluginTypeArray
    var PluginElementArray
    var counter_xi
    var counter_xj
    
    PluginTypeArray = new Array("object", "embed", "applet");
    for(counter_xi = 0; counter_xi < PluginTypeArray.length; counter_xi++)
    {
        PluginElementArray = document.getElementsByTagName(PluginTypeArray[counter_xi]);       
        for(counter_xj = 0; counter_xj < PluginElementArray.length; counter_xj++)
        {
            PluginElementArray[counter_xj].outerHTML = PluginElementArray[counter_xj].outerHTML
        }
    }    
     
}

/* The following JavaScript function uses document.write(..)
to write out whatever code or text it is sent. */
function document_write(HTML_Plugin_Code){
    document.write(HTML_Plugin_Code)
}