<div id="bgDiv" style=" display:none; position:absolute;top:0;left:0;width:100%;height:100%;background:#777;zIndex:10000;filter:progid:dximagetransform.microsoft.alpha(style=3,opacity=10,finishopacity=75);">
</div>
<div id="msgDiv" style="display:none;background:#777;border:1px solid #808080;width:40%;height:30%;zIndex:10001;position:absolute;left:30%;top:35%;">
<table width="100%" cellpadding="4" cellspacing="0">
<tr>
<td width=150px align=right>报废时间:</td>
<td><asp:TextBox ID="txtScrapDate" onFocus="WdatePicker({isShowClear:false,readOnly:false})" runat="server"></asp:TextBox> </td>
</tr>
<tr>
<td width=150px align=right>备注:</td>
<td><asp:TextBox ID="txtScrapRemark" Width="250" TextMode=MultiLine Rows=3 runat="server"></asp:TextBox>
<asp:HiddenField ID="hidScrapCode" runat="server" />
</td>
</tr>
<tr>
<td width=150px></td>
<td> <asp:Button ID="btnScrap" runat="server" Text="报废" CssClass="button" />
<asp:Button ID="btnClose" runat="server" Text="关闭" CssClass="button" OnClientClick="document.getElementById('bgDiv').style.display='none';document.getElementById('msgDiv').style.display='none';return false" /></td>
</tr>
</table>
</div>
function RunScrap(obj) {
document.getElementById('bgDiv').style.display = '';
document.getElementById('msgDiv').style.display = 'block';
document.getElementById('hidScrapCode').value = obj;
return false
}