﻿var kc=12;
var w1024 = 978;
var w1280 = 1230;

function _c_d()
{
    var table=ofrm.document.getElementById("Table1");
    if(typeof(as) == "undifined" || as == null) return;
    for(var i=0,slen=SSL.length;i<slen;i++)
    {
	    var r = i+1;
	    var rw = table.rows[r];
	    var rf = null;
	    if(ss[i].length > 0) rf = document.getElementById("r"+r);
        for(var j = 0; j < rt; j++)
        {
            if(as[i][j].length > 0  && ds[i][j] != 0)
            {
                if(j==4||j==6||j==8||j==13||j==15||j==17||j==19||j==21||j==23||j==24)  
                {
                    rw.cells[j].style.color = _g_c(as[i][j],i);
                    if(rf != null)
                    {
                        rf.cells[j].style.color = _g_c(as[i][j],i);
                    }
                }
                rw.cells[j].innerHTML = as[i][j];
                if(rf != null)
                {
                    rf.cells[j].innerHTML = as[i][j];
                }
            }
        }
    }
}
function lg()
{
    $.jmsajax(
        {
            type: "POST",
            url: "Default.aspx",
            method: "GetStockPrice",
            data: { lang_in: String(lng) },
            success: function(data) 
            {
                var div=ofrm.document.getElementById("tblStockMain");
                var table = "";
                isgl = false;
                if(data[0] == "No Stock Grid Data Found")
                {
                    if(Timer!=null){clearTimeout(Timer);}
                    Timer=window.setTimeout("_l_p();",t_);
                    return;
                }
                else if(data[0] == "Exception occured")
                {
                    if(Timer!=null){clearTimeout(Timer);}
                    Timer=window.setTimeout("_l_p();",t_);
                    return;
                }
                mm = data[0].split("+");
                umm();
                lh();
                var css=data[1].split(",");
                if(css != null && css.length == rt)
                {
                    cgs(css);
                }
                var nR = data.length - 2;
                if(nR <= 0)
                {
                    div.innerHTML = "<font color=\"white\">Wrong response data!!!<br />Reasking server...</font>";
                    if(Timer!=null){clearTimeout(Timer);}
                    Timer=window.setTimeout("_l_p();",t_);
                    return;
                }
                table="<table id=\"Table1\" cellpadding=\"0\" cellspacing=\"0\">";
                table += "<tr style=\"height:0px;\" id=\"r0\">"
                    + "<td style=\"" + (_hv[0]?"":"display:none;") + "width:"+csr[0]+"px;\" id=\"d1\"></td>"
                    + "<td style=\"" + (_hv[1]?"":"display:none;") + "width:"+csr[1]+"px;\" id=\"d2\"></td>"
                    + "<td style=\"" + (_hv[2]?"":"display:none;") + "width:"+csr[2]+"px;\" id=\"d3\"></td>"
                    + "<td style=\"" + (_hv[3]?"":"display:none;") + "width:"+csr[3]+"px;\" id=\"d4\"></td>"
                    + "<td style=\"" + (_hv[4]?"":"display:none;") + "width:"+csr[4]+"px;\" id=\"d5\"></td>"
                    + "<td style=\"" + (_hv[5]?"":"display:none;") + "width:"+csr[5]+"px;\" id=\"d6\"></td>"
                    + "<td style=\"" + (_hv[6]?"":"display:none;") + "width:"+csr[6]+"px;\" id=\"d7\"></td>"
                    + "<td style=\"" + (_hv[7]?"":"display:none;") + "width:"+csr[7]+"px;\" id=\"d8\"></td>"
                    + "<td style=\"" + (_hv[8]?"":"display:none;") + "width:"+csr[8]+"px;\" id=\"d9\"></td>"
                    + "<td style=\"" + (_hv[9]?"":"display:none;") + "width:"+csr[9]+"px;\" id=\"d10\"></td>"
                    + "<td style=\"" + (_hv[10]?"":"display:none;") + "width:"+csr[10]+"px;\" id=\"d11\"></td>"
                    + "<td style=\"" + (_hv[11]?"":"display:none;") + "width:"+csr[11]+"px;\" id=\"d12\"></td>"
                    + "<td style=\"" + (_hv[12]?"":"display:none;") + "width:"+csr[12]+"px;\" id=\"d13\"></td>"
                    + "<td style=\"" + (_hv[13]?"":"display:none;") + "width:"+csr[13]+"px;\" id=\"d14\"></td>"
                    + "<td style=\"" + (_hv[14]?"":"display:none;") + "width:"+csr[14]+"px;\" id=\"d15\"></td>"
                    + "<td style=\"" + (_hv[15]?"":"display:none;") + "width:"+csr[15]+"px;\" id=\"d16\"></td>"
                    + "<td style=\"" + (_hv[16]?"":"display:none;") + "width:"+csr[16]+"px;\" id=\"d17\"></td>"
                    + "<td style=\"" + (_hv[17]?"":"display:none;") + "width:"+csr[17]+"px;\" id=\"d18\"></td>"
                    + "<td style=\"" + (_hv[18]?"":"display:none;") + "width:"+csr[18]+"px;\" id=\"d19\"></td>"
                    + "<td style=\"" + (_hv[19]?"":"display:none;") + "width:"+csr[19]+"px;\" id=\"d20\"></td>"
                    + "<td style=\"" + (_hv[20]?"":"display:none;") + "width:"+csr[20]+"px;\" id=\"d21\"></td>"
                    + "<td style=\"" + (_hv[21]?"":"display:none;") + "width:"+csr[21]+"px;\" id=\"d22\"></td>"
                    + "<td style=\"" + (_hv[22]?"":"display:none;") + "width:"+csr[22]+"px;\" id=\"d23\"></td>"
                    + "<td style=\"" + (_hv[23]?"":"display:none;") + "width:"+csr[23]+"px;\" id=\"d24\"></td>"
                    + "<td style=\"" + (_hv[24]?"":"display:none;") + "width:"+csr[24]+"px;\" id=\"d25\"></td>"
                    + "<td style=\"" + (_hv[25]?"":"display:none;") + "width:"+csr[25]+"px;\" id=\"d26\"></td>"
                    + "<td style=\"" + (_hv[26]?"":"display:none;") + "width:"+csr[26]+"px;\" id=\"d27\"></td>"
                    + "<td style=\"" + (_hv[27]?"":"display:none;") + "width:"+csr[27]+"px;\" id=\"d28\"></td>"
                    + "<td style=\"" + (_hv[28]?"":"display:none;") + "width:"+csr[28]+"px;\" id=\"d29\"></td>"
                    + "</tr>";

                for(var s=0;s<nR;s++)
                {
                    var arr=data[s+2].split("+");
                    var cs=gcc(arr[kc]);
                    var sca = arr[0].split("[");
                    var stat = false;
                    var itl = "";
                    if(typeof(sca[1]) != "undefined")
                    {
                        stat = true;
                        itl=_hh[7 + Number(sca[1])];
                    }
                    pr[s] = arr[1];
                    pc[s] = arr[2];
                    pf[s] = arr[3];

                    table+="<tr class=\"row\" onclick=\"rw_click(this);\" ondblclick=\"rw_dbclick(this);\" id=\"r"+(s+1)+"\">"
                    + "<td " + (_hv[0]?"":"style=\"display:none;\" ") + "id=\"m1\"><a title=\"" + itl + "\" href=\"http://www.hssc.com.vn/Default.aspx?TabID=46&Code="+sca[0]+"\" target=\"_blank\">"+sca[0] 
                    + (stat?"<font color=\"red\">[</font>":"") + (stat?sca[1]:"") + (stat?"<font color=\"red\">]</font>":"") 
                    + "</a></td>"
                    + "<td " + (_hv[1]?"":"style=\"display:none;\" ") + "id=\"m2\">"+arr[1]+"</td>"
                    + "<td " + (_hv[2]?"":"style=\"display:none;\" ") + "id=\"m3\">"+arr[2]+"</td>"
                    + "<td " + (_hv[3]?"":"style=\"display:none;\" ") + "id=\"m4\">"+arr[3]+"</td>"
                    + "<td style=\"color:" + _g_c(arr[4],s) + (_hv[4]?";\"":";display:none;\" ") + "id=\"m5\">"+arr[4]+"</td>"
                    + "<td " + (_hv[5]?"":"style=\"display:none;\" ") + "id=\"m6\">"+arr[5]+"</td>"
                    + "<td style=\"color:" + _g_c(arr[6],s) + (_hv[6]?";\"":";display:none;\" ") + "id=\"m7\">"+arr[6]+"</td>"
                    + "<td " + (_hv[7]?"":"style=\"display:none;\" ") + "id=\"m8\">"+arr[7]+"</td>"
                    + "<td style=\"color:" + _g_c(arr[8],s) + (_hv[8]?";\"":";display:none;\" ") + "id=\"m9\">"+arr[8]+"</td>"
                    + "<td " + (_hv[9]?"":"style=\"display:none;\" ") + "id=\"m10\">"+arr[9]+"</td>"
                    + "<td " + (_hv[10]?"":"style=\"display:none;\" ") + "id=\"m11\" class=\""+cs+"\">" +arr[10]+"</td>"
                    + "<td " + (_hv[11]?"":"style=\"display:none;\" ") + "id=\"m12\" class=\""+cs+"\">" +arr[11]+"</td>"
                    + "<td " + (_hv[12]?"":"style=\"display:none;\" ") + "id=\"m13\" class=\""+cs+"\">" +arr[12]+"</td>"
                    + "<td style=\"color:" + _g_c(arr[13],s) + (_hv[13]?";\"":";display:none;\" ") + "id=\"m14\">"+arr[13]+"</td>"
                    + "<td " + (_hv[14]?"":"style=\"display:none;\" ") + "id=\"m15\">"+arr[14]+"</td>"
                    + "<td style=\"color:" + _g_c(arr[15],s) + (_hv[15]?";\"":";display:none;\" ") + "id=\"m16\">"+arr[15]+"</td>"
                    + "<td " + (_hv[16]?"":"style=\"display:none;\" ") + "id=\"m17\">"+arr[16]+"</td>"
                    + "<td style=\"color:" + _g_c(arr[17],s) + (_hv[17]?";\"":";display:none;\" ") + "id=\"m18\">"+arr[17]+"</td>"
                    + "<td " + (_hv[18]?"":"style=\"display:none;\" ") + "id=\"m19\">"+arr[18]+"</td>"
                    + "<td style=\"color:" + _g_c(arr[19],s) + (_hv[19]?";\"":";display:none;\" ") + "id=\"m20\">"+arr[19]+"</td>"
                    + "<td " + (_hv[20]?"":"style=\"display:none;\" ") + "id=\"m21\">"+arr[20]+"</td>"
                    + "<td style=\"color:" + _g_c(arr[21],s) + (_hv[21]?";\"":";display:none;\" ") + "id=\"m22\">"+arr[21]+"</td>"
                    + "<td " + (_hv[22]?"":"style=\"display:none;\" ") + "id=\"m23\">"+arr[22]+"</td>"
                    + "<td style=\"color:" + _g_c(arr[23],s) + (_hv[23]?";\"":";display:none;\" ") + "id=\"m24\">"+arr[23]+"</td>"
                    + "<td style=\"color:" + _g_c(arr[24],s) + (_hv[24]?";\"":";display:none;\" ") + "id=\"m25\">"+arr[24]+"</td>"
                    + "<td " + (_hv[25]?"":"style=\"display:none;\" ") + "id=\"m26\">"+arr[25]+"</td>"
                    + "<td " + (_hv[26]?"":"style=\"display:none;\" ") + "id=\"m27\">"+arr[26]+"</td>"
                    + "<td " + (_hv[27]?"":"style=\"display:none;\" ") + "id=\"m28\">"+arr[27]+"</td>"
                    + "<td " + (_hv[28]?"":"style=\"display:none;\" ") + "id=\"m29\">"+arr[28]+"</td>"
                    + "</tr>";    
                }
                table+="</table>";
                div.innerHTML=table;
                isgl = true;
            }
        });
}
function lh()
{
    var tb2="",tb3="",tb4="",tb5="",tb6="",tb7="";
    var h1="",h2="",h3="",h4="",h5="";
    var tb1 = "<table id=\"Table2\" cellpadding=\"0\" cellspacing=\"0\"><tr style=\"height:20px;\" class=\"t2head\">";

    if(_hv[0])tb1 += "<td rowspan=\"2\"><div id=\"c1\">" + _ha[0] + "</div></td>";
    if(_hv[1])tb1 += "<td rowspan=\"2\" class=\"yellow_g\"><div id=\"c2\">" + _ha[1] + "</div></td>";
    if(_hv[2])tb1 += "<td rowspan=\"2\" class=\"yellow_g\"><div id=\"c3\">" + _ha[2] + "</div></td>";
    if(_hv[3])tb1 += "<td rowspan=\"2\" class=\"yellow_g\"><div id=\"c4\">" + _ha[3] + "</div></td>";

    var csp = 0;
    if(_hv[4]){tb2 += "<td><div id=\"c5\">" + _ha[13] + "</div></td>"; csp++;}
    if(_hv[5]){tb2 += "<td><div id=\"c6\">" + _ha[14] + "</div></td>"; csp++;}
    if(_hv[6]){tb2 += "<td><div id=\"c7\">" + _ha[15] + "</div></td>"; csp++;}
    if(_hv[7]){tb2 += "<td><div id=\"c8\">" + _ha[16] + "</div></td>"; csp++;}
    if(_hv[8]){tb2 += "<td><div id=\"c9\">" + _ha[17] + "</div></td>"; csp++;}
    if(_hv[9]){tb2 += "<td><div id=\"c10\">" + _ha[18] + "</div></td>"; csp++;}
    if(csp > 1)
    {
        h1 = "<td colspan=\"" + csp + "\"><div>" + _ha[4] + "</div></td>";
    }
    else if(csp == 1)
    {
        h1 = "<td><div>" + _ha[4] + "</div></td>";
    }
    csp=0;

    if(_hv[10]){tb3 += "<td class=\"yellow_g\"><div id=\"c11\">" + _ha[19] + "</div></td>"; csp++;}
    if(_hv[11]){tb3 += "<td class=\"yellow_g\"><div id=\"c12\">" + _ha[20] + "</div></td>"; csp++;}
    if(_hv[12]){tb3 += "<td class=\"yellow_g\"><div id=\"c13\">" + _ha[21] + "</div></td>"; csp++;}
    if(csp > 1)
    {
        h2 = "<td class=\"yellow_g\" colspan=\"" + csp + "\"><div>" + _ha[5] + "</div></td>";
    }
    else if(csp == 1)
    {
        h2 = "<td class=\"yellow_g\"><div>" + _ha[5] + "</div></td>";
    }
    csp=0;

    if(_hv[13]){tb4 += "<td><div id=\"c14\">" + _ha[22] + "</div></td>"; csp++;}
    if(_hv[14]){tb4 += "<td><div id=\"c15\">" + _ha[23] + "</div></td>"; csp++;}
    if(_hv[15]){tb4 += "<td><div id=\"c16\">" + _ha[24] + "</div></td>"; csp++;}
    if(_hv[16]){tb4 += "<td><div id=\"c17\">" + _ha[25] + "</div></td>"; csp++;}
    if(_hv[17]){tb4 += "<td><div id=\"c18\">" + _ha[26] + "</div></td>"; csp++;}
    if(_hv[18]){tb4 += "<td><div id=\"c19\">" + _ha[27] + "</div></td>"; csp++;}
    if(csp > 1)
    {
        h3 = "<td colspan=\"" + csp + "\"><div>" + _ha[6] + "</div></td>";
    }        
    else if(csp == 1)
    {
        h3 = "<td><div>" + _ha[6] + "</div></td>";
    }        
    csp=0;

    if(_hv[19]){tb5 += "<td class=\"yellow_g\"><div id=\"c20\">" + _ha[28] + "</div></td>"; csp++;}
    if(_hv[20]){tb5 += "<td class=\"yellow_g\"><div id=\"c21\">" + _ha[29] + "</div></td>"; csp++;}
    if(csp == 2)
    {
        h4 = "<td class=\"yellow_g\" colspan=\"2\"><div>" + _ha[7] + "</div></td>";
    }
    else if(csp == 1)
    {
        h4 = "<td class=\"yellow_g\"><div>" + _ha[7] + "</div></td>";
    }
    csp=0;
    
    if(_hv[21]){tb6 += "<td class=\"yellow_g\"><div id=\"c22\">" + _ha[30] + "</div></td>"; csp++;}
    if(_hv[22]){tb6 += "<td class=\"yellow_g\"><div id=\"c23\">" + _ha[31] + "</div></td>"; csp++;}
    if(csp == 2)
    {
        h5 = "<td class=\"yellow_g\" colspan=\"2\"><div>" + _ha[8] + "</div></td>";
    }
    else if(csp == 1)
    {
        h5 = "<td class=\"yellow_g\"><div>" + _ha[8] + "</div></td>";
    }
    csp=0;

    if(_hv[23])tb7 += "<td rowspan=\"2\" class=\"yellow_g1\"><div id=\"c24\">" + _ha[9] + "</div></td>";
    if(_hv[24])tb7 += "<td rowspan=\"2\" class=\"yellow_g1\"><div id=\"c25\">" + _ha[10] + "</div></td>";
    if(_hv[25])tb7 += "<td rowspan=\"2\" class=\"yellow_g\" ><div id=\"c26\">" + _ha[11] + "</div></td>";
    if(_hv[26])tb7 += "<td rowspan=\"2\"><div id=\"c27\">" + _ha[12] + "</div></td>";
    if(_hv[27])tb7 += "<td rowspan=\"2\"><div id=\"c28\">" + _ha[32] + "</div></td>";
    if(_hv[28])tb7 += "<td rowspan=\"2\"><div id=\"c29\">" + _ha[33] + "</div></td>";
   
    var hm  = "<td style=\"padding-left:1px;\" rowspan=\"2\"><a href=\"javascript:scp();\"><img src=\"Images/ard.gif\" border=\"0\"></a></td></tr><tr style=\"height:20px;\" class=\"t2head\">";
    var ht = "</tr></table>";

    var tab = tb1 + h1 + h2 + h3 + h4 + h5 + tb7 + hm + tb2 + tb3 + tb4 + tb5 + tb6 + ht;
    document.getElementById("tdTableheader").innerHTML=tab;

    var pan = "<b class=\"x1\"></b><b class=\"x2\"></b><b class=\"x3\"></b><b class=\"x4\"></b><div class=\"contentx\"><div style=\"padding-left:5px;padding-right:5px;\"><table cellspacing=\"0\" cellpadding=\"0\" border=\"0\"><tr><td align=\"center\"><a style=\"color:black;\" href=\"javascript:reload();\">Reload</a><a style=\"margin-left:60px;color:black;\" href=\"javascript:ccp();\">Close</a><p>There is only 27 cols can be shown at the time</p><table cellspacing=\"0\" cellpadding=\"4\" border=\"0\" id=\"panel\"><tr>" +
        "<td id=\"f0\" class=\"" + (_hv[0]?"unpress":"press") + "\" onmouseover=\"spover(this);\" onclick=\"spclick(this);\" onmouseout=\"spout(this);\" colspan=\"2\">" + _ha[0] + "</td><td id=\"p0\" class=\"" + (_hv[0]?"unpress":"press") + "\" onmouseover=\"spover(this);\" onclick=\"spclick(this);\" onmouseout=\"spout(this);\">"+ (_hv[0]?"hide":"show")+"</td></tr><tr>" +
        "<td id=\"f1\" class=\"" + (_hv[1]?"unpress":"press") + "\" onmouseover=\"spover(this);\" onclick=\"spclick(this);\" onmouseout=\"spout(this);\" colspan=\"2\">" + _ha[1] + "</td><td id=\"p1\" class=\"" + (_hv[1]?"unpress":"press") + "\" onmouseover=\"spover(this);\" onclick=\"spclick(this);\" onmouseout=\"spout(this);\">"+ (_hv[1]?"hide":"show")+"</td></tr><tr>" +
        "<td id=\"f2\" class=\"" + (_hv[2]?"unpress":"press") + "\" onmouseover=\"spover(this);\" onclick=\"spclick(this);\" onmouseout=\"spout(this);\" colspan=\"2\">" + _ha[2] + "</td><td id=\"p2\" class=\"" + (_hv[2]?"unpress":"press") + "\" onmouseover=\"spover(this);\" onclick=\"spclick(this);\" onmouseout=\"spout(this);\">"+ (_hv[2]?"hide":"show")+"</td></tr><tr>" +
        "<td id=\"f3\" class=\"" + (_hv[3]?"unpress":"press") + "\" onmouseover=\"spover(this);\" onclick=\"spclick(this);\" onmouseout=\"spout(this);\" colspan=\"2\">" + _ha[3] + "</td><td id=\"p3\" class=\"" + (_hv[3]?"unpress":"press") + "\" onmouseover=\"spover(this);\" onclick=\"spclick(this);\" onmouseout=\"spout(this);\">"+ (_hv[3]?"hide":"show")+"</td></tr><tr>" +
        "<td rowspan=\"6\">" + _ha[4] + "</td><td id=\"f4\" class=\"" + (_hv[4]?"unpress":"press") + "\" onmouseover=\"spover(this);\" onclick=\"spclick(this);\" onmouseout=\"spout(this);\">" + _ha[13] + "</td><td id=\"p4\" class=\"" + (_hv[4]?"unpress":"press") + "\" onmouseover=\"spover(this);\" onclick=\"spclick(this);\" onmouseout=\"spout(this);\">"+ (_hv[4]?"hide":"show")+"</td></tr><tr>" +
        "<td id=\"f5\" class=\"" + (_hv[5]?"unpress":"press") + "\" onmouseover=\"spover(this);\" onclick=\"spclick(this);\" onmouseout=\"spout(this);\">" + _ha[14] + "</td><td id=\"p5\" class=\"" + (_hv[5]?"unpress":"press") + "\" onmouseover=\"spover(this);\" onclick=\"spclick(this);\" onmouseout=\"spout(this);\">"+ (_hv[5]?"hide":"show")+"</td></tr><tr>" +
        "<td id=\"f6\" class=\"" + (_hv[6]?"unpress":"press") + "\" onmouseover=\"spover(this);\" onclick=\"spclick(this);\" onmouseout=\"spout(this);\">" + _ha[15] + "</td><td id=\"p6\" class=\"" + (_hv[6]?"unpress":"press") + "\" onmouseover=\"spover(this);\" onclick=\"spclick(this);\" onmouseout=\"spout(this);\">"+ (_hv[6]?"hide":"show")+"</td></tr><tr>" +
        "<td id=\"f7\" class=\"" + (_hv[7]?"unpress":"press") + "\" onmouseover=\"spover(this);\" onclick=\"spclick(this);\" onmouseout=\"spout(this);\">" + _ha[16] + "</td><td id=\"p7\" class=\"" + (_hv[7]?"unpress":"press") + "\" onmouseover=\"spover(this);\" onclick=\"spclick(this);\" onmouseout=\"spout(this);\">"+ (_hv[7]?"hide":"show")+"</td></tr><tr>" +
        "<td id=\"f8\" class=\"" + (_hv[8]?"unpress":"press") + "\" onmouseover=\"spover(this);\" onclick=\"spclick(this);\" onmouseout=\"spout(this);\">" + _ha[17] + "</td><td id=\"p8\" class=\"" + (_hv[8]?"unpress":"press") + "\" onmouseover=\"spover(this);\" onclick=\"spclick(this);\" onmouseout=\"spout(this);\">"+ (_hv[8]?"hide":"show")+"</td></tr><tr>" +
        "<td id=\"f9\" class=\"" + (_hv[9]?"unpress":"press") + "\" onmouseover=\"spover(this);\" onclick=\"spclick(this);\" onmouseout=\"spout(this);\">" + _ha[18] + "</td><td id=\"p9\" class=\"" + (_hv[9]?"unpress":"press") + "\" onmouseover=\"spover(this);\" onclick=\"spclick(this);\" onmouseout=\"spout(this);\">"+ (_hv[9]?"hide":"show")+"</td></tr><tr>" +
        "<td rowspan=\"3\">" + _ha[5] + "</td><td  id=\"f10\" class=\"" + (_hv[10]?"unpress":"press") + "\" onmouseover=\"spover(this);\" onclick=\"spclick(this);\" onmouseout=\"spout(this);\">" + _ha[19] + "</td><td id=\"p10\" class=\"" + (_hv[10]?"unpress":"press") + "\" onmouseover=\"spover(this);\" onclick=\"spclick(this);\" onmouseout=\"spout(this);\">"+ (_hv[10]?"hide":"show")+"</td></tr><tr>" +
        "<td id=\"f11\" class=\"" + (_hv[11]?"unpress":"press") + "\" onmouseover=\"spover(this);\" onclick=\"spclick(this);\" onmouseout=\"spout(this);\">" + _ha[20] + "</td><td id=\"p11\" class=\"" + (_hv[11]?"unpress":"press") + "\" onmouseover=\"spover(this);\" onclick=\"spclick(this);\" onmouseout=\"spout(this);\">"+ (_hv[11]?"hide":"show")+"</td></tr><tr>" +
        "<td id=\"f12\" class=\"" + (_hv[12]?"unpress":"press") + "\" onmouseover=\"spover(this);\" onclick=\"spclick(this);\" onmouseout=\"spout(this);\">" + _ha[21] + "</td><td id=\"p12\" class=\"" + (_hv[12]?"unpress":"press") + "\" onmouseover=\"spover(this);\" onclick=\"spclick(this);\" onmouseout=\"spout(this);\">"+ (_hv[12]?"hide":"show")+"</td></tr><tr>" +
        "<td rowspan=\"6\">" + _ha[6] + "</td><td  id=\"f13\" class=\"" + (_hv[13]?"unpress":"press") + "\" onmouseover=\"spover(this);\" onclick=\"spclick(this);\" onmouseout=\"spout(this);\">" + _ha[22] + "</td><td id=\"p13\" class=\"" + (_hv[13]?"unpress":"press") + "\" onmouseover=\"spover(this);\" onclick=\"spclick(this);\" onmouseout=\"spout(this);\">"+ (_hv[13]?"hide":"show")+"</td></tr><tr>" +
        "<td id=\"f14\" class=\"" + (_hv[14]?"unpress":"press") + "\" onmouseover=\"spover(this);\" onclick=\"spclick(this);\" onmouseout=\"spout(this);\">" + _ha[23] + "</td><td id=\"p14\" class=\"" + (_hv[14]?"unpress":"press") + "\" onmouseover=\"spover(this);\" onclick=\"spclick(this);\" onmouseout=\"spout(this);\">"+ (_hv[14]?"hide":"show")+"</td></tr><tr>" +
        "<td id=\"f15\" class=\"" + (_hv[15]?"unpress":"press") + "\" onmouseover=\"spover(this);\" onclick=\"spclick(this);\" onmouseout=\"spout(this);\">" + _ha[24] + "</td><td id=\"p15\" class=\"" + (_hv[15]?"unpress":"press") + "\" onmouseover=\"spover(this);\" onclick=\"spclick(this);\" onmouseout=\"spout(this);\">"+ (_hv[15]?"hide":"show")+"</td></tr><tr>" +
        "<td id=\"f16\" class=\"" + (_hv[16]?"unpress":"press") + "\" onmouseover=\"spover(this);\" onclick=\"spclick(this);\" onmouseout=\"spout(this);\">" + _ha[25] + "</td><td id=\"p16\" class=\"" + (_hv[16]?"unpress":"press") + "\" onmouseover=\"spover(this);\" onclick=\"spclick(this);\" onmouseout=\"spout(this);\">"+ (_hv[16]?"hide":"show")+"</td></tr><tr>" +
        "<td id=\"f17\" class=\"" + (_hv[17]?"unpress":"press") + "\" onmouseover=\"spover(this);\" onclick=\"spclick(this);\" onmouseout=\"spout(this);\">" + _ha[26] + "</td><td id=\"p17\" class=\"" + (_hv[17]?"unpress":"press") + "\" onmouseover=\"spover(this);\" onclick=\"spclick(this);\" onmouseout=\"spout(this);\">"+ (_hv[17]?"hide":"show")+"</td></tr><tr>" +
        "<td id=\"f18\" class=\"" + (_hv[18]?"unpress":"press") + "\" onmouseover=\"spover(this);\" onclick=\"spclick(this);\" onmouseout=\"spout(this);\">" + _ha[27] + "</td><td id=\"p18\" class=\"" + (_hv[18]?"unpress":"press") + "\" onmouseover=\"spover(this);\" onclick=\"spclick(this);\" onmouseout=\"spout(this);\">"+ (_hv[18]?"hide":"show")+"</td></tr><tr>" +
        "<td rowspan=\"2\">" + _ha[7] + "</td><td  id=\"f19\" class=\"" + (_hv[19]?"unpress":"press") + "\" onmouseover=\"spover(this);\" onclick=\"spclick(this);\" onmouseout=\"spout(this);\">" + _ha[28] + "</td><td id=\"p19\" class=\"" + (_hv[19]?"unpress":"press") + "\" onmouseover=\"spover(this);\" onclick=\"spclick(this);\" onmouseout=\"spout(this);\">"+ (_hv[19]?"hide":"show")+"</td></tr><tr>" +
        "<td id=\"f20\" class=\"" + (_hv[20]?"unpress":"press") + "\" onmouseover=\"spover(this);\" onclick=\"spclick(this);\" onmouseout=\"spout(this);\">" + _ha[29] + "</td><td id=\"p20\" class=\"" + (_hv[20]?"unpress":"press") + "\" onmouseover=\"spover(this);\" onclick=\"spclick(this);\" onmouseout=\"spout(this);\">"+ (_hv[20]?"hide":"show")+"</td></tr><tr>" +
        "<td rowspan=\"2\">" + _ha[8] + "</td><td  id=\"f21\" class=\"" + (_hv[21]?"unpress":"press") + "\" onmouseover=\"spover(this);\" onclick=\"spclick(this);\" onmouseout=\"spout(this);\">" + _ha[30] + "</td><td id=\"p21\" class=\"" + (_hv[21]?"unpress":"press") + "\" onmouseover=\"spover(this);\" onclick=\"spclick(this);\" onmouseout=\"spout(this);\">"+ (_hv[21]?"hide":"show")+"</td></tr><tr>" +
        "<td id=\"f22\" class=\"" + (_hv[22]?"unpress":"press") + "\" onmouseover=\"spover(this);\" onclick=\"spclick(this);\" onmouseout=\"spout(this);\">" + _ha[31] + "</td><td id=\"p22\" class=\"" + (_hv[22]?"unpress":"press") + "\" onmouseover=\"spover(this);\" onclick=\"spclick(this);\" onmouseout=\"spout(this);\">"+ (_hv[22]?"hide":"show")+"</td></tr><tr>" +
        "<td id=\"f23\" class=\"" + (_hv[23]?"unpress":"press") + "\" onmouseover=\"spover(this);\" onclick=\"spclick(this);\" onmouseout=\"spout(this);\" colspan=\"2\">" + _ha[9] + "</td><td id=\"p23\" class=\"" + (_hv[23]?"unpress":"press") + "\" onmouseover=\"spover(this);\" onclick=\"spclick(this);\" onmouseout=\"spout(this);\">"+ (_hv[23]?"hide":"show")+"</td></tr><tr>" +
        "<td id=\"f24\" class=\"" + (_hv[24]?"unpress":"press") + "\" onmouseover=\"spover(this);\" onclick=\"spclick(this);\" onmouseout=\"spout(this);\" colspan=\"2\">" + _ha[10] + "</td><td id=\"p24\" class=\"" + (_hv[24]?"unpress":"press") + "\" onmouseover=\"spover(this);\" onclick=\"spclick(this);\" onmouseout=\"spout(this);\">"+ (_hv[24]?"hide":"show")+"</td></tr><tr>" +
        "<td id=\"f25\" class=\"" + (_hv[25]?"unpress":"press") + "\" onmouseover=\"spover(this);\" onclick=\"spclick(this);\" onmouseout=\"spout(this);\" colspan=\"2\">" + _ha[11] + "</td><td id=\"p25\" class=\"" + (_hv[25]?"unpress":"press") + "\" onmouseover=\"spover(this);\" onclick=\"spclick(this);\" onmouseout=\"spout(this);\">"+ (_hv[25]?"hide":"show")+"</td></tr><tr>" +
        "<td id=\"f26\" class=\"" + (_hv[26]?"unpress":"press") + "\" onmouseover=\"spover(this);\" onclick=\"spclick(this);\" onmouseout=\"spout(this);\" colspan=\"2\">" + _ha[12] + "</td><td id=\"p26\" class=\"" + (_hv[26]?"unpress":"press") + "\" onmouseover=\"spover(this);\" onclick=\"spclick(this);\" onmouseout=\"spout(this);\">"+ (_hv[26]?"hide":"show")+"</td></tr><tr>" +
        "<td id=\"f27\" class=\"" + (_hv[27]?"unpress":"press") + "\" onmouseover=\"spover(this);\" onclick=\"spclick(this);\" onmouseout=\"spout(this);\" colspan=\"2\">" + _ha[32] + "</td><td id=\"p27\" class=\"" + (_hv[27]?"unpress":"press") + "\" onmouseover=\"spover(this);\" onclick=\"spclick(this);\" onmouseout=\"spout(this);\">"+ (_hv[27]?"hide":"show")+"</td></tr><tr>" +
        "<td id=\"f28\" class=\"" + (_hv[28]?"unpress":"press") + "\" onmouseover=\"spover(this);\" onclick=\"spclick(this);\" onmouseout=\"spout(this);\" colspan=\"2\">" + _ha[33] + "</td><td id=\"p28\" class=\"" + (_hv[28]?"unpress":"press") + "\" onmouseover=\"spover(this);\" onclick=\"spclick(this);\" onmouseout=\"spout(this);\">"+ (_hv[28]?"hide":"show")+"</td></tr></table>" +
        "<p></p></td></tr></table></div></div><b class=\"x4\"></b><b class=\"x3\"></b><b class=\"x2\"></b><b class=\"x1\"></b>";
    
    document.getElementById("panholder").innerHTML = pan;
}


function umi(mi)
{
    ml = mi.split("+");

    _ha = ml[7].split(",");

    if(typeof(_ha) == "undefined")
    {
        if(Timer!=null){clearTimeout(Timer);}
        Timer=window.setTimeout("PageLoad();",t_);
        return;
    }

    _hh = _ha[34].split("#");

    strHeader = "<table width=\"100%\" style=\"background-color:#006b99;\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td colspan=\"3\" style=\"background-color:#046;height:1px;\"></td></tr><tr><td style=\"width:20%\" align=\"left\"><a href=\"http://www.hssc.com.vn/\"><img alt=\"Hanoi Securities Corp.\" src=\"Images/logo_short_w128.gif\" style=\"border:0pt none; margin-left:20px;\" /></a></td><td style=\"width:50%\" align=\"center\">"
                 + "<span class=\"CssPageTitle\">" + _hh[0] + "</span></td><td style=\"width:30%\" align=\"center\">"
                 + "<span class=\"CssPageHeader\">"+ _hh[1] + "</span><br />"
                 + "</td></tr><tr><td colspan=\"3\" style=\"background-color:#046;height:1px;\"></td></tr><tr><td colspan=\"3\" style=\"background-color:#023;height:1px;\"></td></tr></table>";
    document.getElementById("head_big").innerHTML=strHeader;
    
    strHeader = "<a href=\"javascript:_AS();\"><span style=\"display:none;\" id=\"lblAutoScroll\">" + _hh[2] + "</span></a>";
    document.getElementById("asField").innerHTML=strHeader;

    strHeader = "<a href=\"javascript:_SH();\"><span id=\"lblHideTools\">" + _hh[3] + "</span><span style=\"display:none;\" id=\"lblShowTools\">" + _hh[4] + "</span></a>";
    document.getElementById("shField").innerHTML=strHeader;

    strHeader = "<input id=\"cmdRemAll\" type=\"button\" class=\"CssButton\" value=\"" + _hh[5] + "\" onclick=\"RemoveAllSymbols();\" />"
              + "<input id=\"cmdFixRow\" type=\"button\" class=\"CssButton\" value=\"" + _hh[6] + "\" onclick=\"FixRow();\" />"
              + "<span class=\"myhint\">" + _hh[7] + "</span>"
    document.getElementById("btnField").innerHTML=strHeader;
}
