function LoadSelectedValue(obj,KeyValue)
{
    for(var i=0;i<m_array.length;i++)
    {
        if (KeyValue==m_array[i][0])
        {
		    var oOption = document.createElement("OPTION");
		    oOption.text=m_array[i][2];
		    oOption.value=m_array[i][1];
		    obj.add(oOption);
        }
    }
}
function ShowReplaceValue(CName,CCode)
{
    for(var i=0;i<m_array.length;i++)
    {
        if(m_array[i][0]==CName&&m_array[i][1]==CCode)
        {
            //alert(m_array[i][2]);
            document.write(m_array[i][2]);
            return m_array[i][2];
        }
    }
    return "";
}
function indexLoginFormSubmit()
{
    loginForm.aspnetForm("ctl00$Content$LoginControl$UserName").value = indexLoginForm.userName.value;
    loginForm.aspnetForm("ctl00$Content$LoginControl$Password").value = indexLoginForm.passWord.value;
    loginForm.aspnetForm.target = "_blank";
//    alert(loginForm.aspnetForm("ctl00$Content$LoginControl$UserName").value);
//    alert(loginForm.aspnetForm("ctl00$Content$LoginControl$Password").value);
//    loginForm.WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;ctl00$Content$LoginControl$LoginButton&quot;, &quot;&quot;, true, &quot;LoginControl&quot;, &quot;&quot;, false, false));
    loginForm.aspnetForm("ctl00$Content$LoginControl$LoginButton").click();
    indexLoginForm.passWord.value = "";
    //loginForm.aspnetForm.submit();
    return false;
}
