<%@ Page Language="C#" AutoEventWireup="true" CodeFile="FABs.aspx.cs" Inherits="SubPages_FABs" %>

<!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>Sub page - Fabs List For Selection</title>
    <script language="javascript" type="text/javascript">
        function AssingValueToParent( parentID, value){
//080508: 直接帶入, 不加上原來的值
//            var parentValue = window.opener.document.getElementById(parentID).value;
//            if (parentValue.length == 0)
//                parentValue = value;
//            else{
//                var arParentValues = parentValue.split("\r\n");
//                var bIsIncludeValue = false;
//                for(var i=0; i<arParentValues.length; i++){
//                    if ( arParentValues[i] == value){
//                        bIsIncludeValue = true;
//                        break;
//                    }
//                }
//                if (!bIsIncludeValue)
//                    parentValue += "\r\n" + value; 
//            }
            window.opener.document.getElementById(parentID).value = value;//parentValue;
            window.opener.focus();
            window.close();
        }
    </script>
</head>
<body>
<center>
    <form id="form1" runat="server">

    </form>
</center>
</body>
</html>
