<%@ Page Language="VB" AutoEventWireup="false" CodeFile="VariableList.aspx.vb" Inherits="VariableList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
    <script type="text/javascript" language= "javascript">
      function ShowSelected(){
        var oList=document.getElementById("listboxVariables"); 
        for(var i=0;i<oList.options.length;i++){
          o=oList.options[i];
          if(o.selected==true){
            if(opener){
              if(opener.opener){
                //opener.opener.ShowOptionText(oList,o.value,'Code=',',Name=');
                opener.opener.SetStatusMsg("["+o.value+"] "+o.text);
              }
            }
            break;
          }
        }
      }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
      <asp:Panel ID="PageHeader" runat="server" BackImageUrl="~/Images/header.jpg" CssClass="MapViewer_TitleBannerStyle"
        Height="50px" Style="z-index: 100; left: 0px; position: absolute; top: 0px" Width="100%">
        &nbsp;&nbsp;
      </asp:Panel>
      <table style="z-index: 101; left: 8px; width: 700px; position: absolute; top: 60px">
        <tr>
          <td style="width: 1197px;" align="Center">
            <asp:Label ID="lblMsg" runat="server" Text="Variable List" Font-Bold="True" Width="408px"></asp:Label></td>
        </tr>
        <tr>  
          <td style="width: 1197px; height:225px" align="center" >
            <asp:ListBox ID="listboxVariables" runat="server" Height="216px" Width="700px" onChange="javascript:ShowSelected()"></asp:ListBox>
          </td>
        </tr>
      </table>
    
    </div>
    </form>
</body>
</html>
