﻿// JScript File

function DictionaryViewer()
{
    this.iframe = document.getElementById(DICTIONARY_FRM);
    this.visible = false;
    this.onClick = onClick;    
    this.button = document.getElementById(BTN_DICTIONARY);
    
    function onClick(id)
    {
        
        //lilah start
        var str = "";
        if (id.realID != "undefined" && id.realType != "undefined")
        {
            str = "?REALID="+id.realID +"&REALTYPE="+id.realType;
        }
        //lilah end
        
        var request = new Request(REQ_DICTIONARY_TYPE);
        request.id = id;
        request.data=str;
        top.uiCtrl.sendData(request);
    }
}   