﻿// JScript File


///////////////////// Module which also should have a tab 
////////////////////  attached to it.

///// Updated in Default.aspx file


function PeriodicTableViewer()
{
    
    
    ////////////////////////////
    // 
    //   Tabstrip will create them from the DataBase
    // 
    ////////////////////////////
    /** 
    *   "frmNewModule" locate in Constants.js :: Frame_Names
    */
    this.iframe = document.getElementById(PERIODIC_TABLE_FRM);
    
    
    /** 
    *   prexif + Name
    *   "frmNewModule" locate in Constants.js :: Frame_Names
    */

     this.button = document.getElementById(BTN_PERIODIC_TABLE);

    /** 
    *   prexif + Name
    *   "btnNewModule" locate in Constants.js :: Button id & Names
    */

    
    this.visible = false;
    this.onClick = onClick;
    
    function onClick(id)
    {
        
        var request = new Request(REQ_PERIODIC_TABLE_TYPE);
        request.id = id;
        top.uiCtrl.sendData(request);
    } 
}   