dzirkelb1
Posts: 1296 Joined: 10/5/2004 From: Cedar Rapids, Iowa Status: offline
|
RE: Locking first row / column header - 5/15/2008 9:14:52
Ya, its an intranet page, IE only. My CSS skills are so bad I don't even know where to put the css stuff in my code. And, I looked at the source of the page, but it does't show the css stuff on the source. Here is the page I would be placing it on...would remove one if then statement which shows hte header every 8 lines or so:
<!-- #include file="dbQS.asp" -->
<%
dim rs, ssql
dim strordVoid, strRohs, strCustNum, strSearchPartNum, strCustNum1
dim i, intI, intOrderNum, intOH, intOO, intSchdOO, intCustOO, intQuantity, intConvFactor, intMargin, intInvQuantity, intLineCount
dim curPrice, curInvPrice, curExtPrice, strAltShip, curCost
intOrderNum = request.querystring("OrderNum")
strCustNum = request.querystring("CustNum")
strCustNum1 = request.querystring("CustNum")
strSearchPartNum = request.querystring("SearchPartNum")
strAltShip = request.querystring("AltShip")
strStealthMode = request.querystring("StealthMode")
if len(request.querystring("i")) > 0 then
intI = request.querystring("i")
else
intI = -1
end if
i = 1
intLineCount = 0
%>
<html>
<head>
<script language="JavaScript" src="calendar2.js"></script>
<script type="text/javascript">
<!--
function CheckDate(input) {
var reg = /^(\d{1,2})\/(\d{1,2})\/(\d{2}|\d{4})$/;
if (!reg.test(input.value))
alert("Invalid Date Format. Please correct and submit again.")
var m = input.value.match(reg);
if (m) {
var month = m[1];
var day = m[2];
var year = 2000 + parseInt(m[3]);
// Check for valid date
var date = new Date(year,month-1,day);
if (date.getMonth()+1 != month || date.getDate() != day || date.getFullYear() != year)
alert("Invalid Day, Month, or Year range detected. Please correct and submit again.")
return false;
return true;
}
else {
input.select();
return false;
}
}
function ChangeColor(Cell, i)
{
document.getElementById(Cell).style.backgroundColor='cyan';
document.getElementById("tr" + i).style.backgroundColor='red';
}
function ChangeColorBlur(Cell, i)
{
document.getElementById(Cell).style.backgroundColor='';
document.getElementById("tr" + i).style.backgroundColor='';
}
function enter(NextField, NextFieldDown, NextFieldUp)
{
if(window.event && window.event.keyCode == 40) {
NextFieldDown.focus();}
if(window.event && window.event.keyCode == 38) {
NextFieldUp.focus();}
if(window.event && window.event.keyCode == 13) {
NextField.focus();
return false; }
else
return true;
}
function enterLastLine(NextField, NextFieldUp)
{
if(window.event && window.event.keyCode == 38) {
NextFieldUp.focus();}
if(window.event && window.event.keyCode == 13) {
NextField.focus();
return false; }
else
return true;
}
function enterFirstLine(NextField, NextFieldDown)
{
if(window.event && window.event.keyCode == 40) {
NextFieldDown.focus();}
if(window.event && window.event.keyCode == 13) {
NextField.focus();
return false; }
else
return true;
}
function enterOnlyLine(NextField)
{
if(window.event && window.event.keyCode == 13) {
NextField.focus();
return false; }
else
return true;
}
var xmlHttp;
var intI;
function SaveRecord(strFieldName, intLineSerial, strValue)
{
if(/&/.test(strValue)) {
alert("You can not enter the & key. Re-enter your entry without the & to have the data save.");
return false; }
else
var url="Order_Entry_Detail-save.asp?Value=" + strValue + "&UpdateDetail=Yes&FieldName=" + strFieldName + "&LineSerial=" + intLineSerial
xmlHttp=GetXmlHttpObject(stateChangedSaveRecord)
xmlHttp.open("GET", url , true)
xmlHttp.send(null)
}
function SaveRecordPartDropDown(i, intLineSerial)
{
var intPartID = document.frmGeneral("txtPartID"+i).value
var strPart = document.frmGeneral("txtPartNum"+i).value
var strMfg = document.frmGeneral("txtMfgName"+i).value
var strMasterUM = document.frmGeneral("txtMasterUM"+i).value
var intCost = document.frmGeneral("txtCost"+i).value
var url="Order_Entry_Detail-save.asp?PartID=" + intPartID + "&Part=" + strPart + "&Mfg=" + strMfg + "&MasterUM=" + strMasterUM + "&Cost=" + intCost + "&UpdateDetailPartSearch=Yes&LineSerial=" + intLineSerial
xmlHttp=GetXmlHttpObject(stateChangedSaveRecord)
xmlHttp.open("GET", url , true)
xmlHttp.send(null)
}
function stateChangedSaveRecord()
{
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{
xmlHttp.responseText
}
}
function getPart(str, i, intLineSerial)
{
var strCustNum = document.all.frmGeneral("hidCustNum").value
var url="PartLookup-ajax.asp?LineSerial="+intLineSerial+"&i="+i+"&PartNum="+str+"&CustNum="+strCustNum
intI = i
xmlHttp=GetXmlHttpObject(stateChanged)
xmlHttp.open("GET", url , true)
xmlHttp.send(null)
}
function getPartNew(str, i)
{
var strCustNum = document.all.frmGeneral("hidCustNum").value
var url="PartLookup-ajax.asp?i="+i+"&PartNumNew="+str+"&CustNum="+strCustNum
intI = i
xmlHttp=GetXmlHttpObject(stateChanged)
xmlHttp.open("GET", url , true)
xmlHttp.send(null)
}
function stateChanged()
{
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{
document.getElementById("selPartNumAjax"+intI).innerHTML=xmlHttp.responseText
}
}
function GetXmlHttpObject(handler)
{
var objXmlHttp=null
if (navigator.userAgent.indexOf("Opera")>=0)
{
alert("Opera not supported...")
return;
}
if (navigator.userAgent.indexOf("MSIE")>=0)
{
var strName="Msxml2.XMLHTTP"
if (navigator.appVersion.indexOf("MSIE 5.5")>=0)
{
strName="Microsoft.XMLHTTP"
}
try
{
objXmlHttp=new ActiveXObject(strName)
objXmlHttp.onreadystatechange=handler
return objXmlHttp
}
catch(e)
{
alert("Error. Scripting for ActiveX might be disabled")
return
}
}
if (navigator.userAgent.indexOf("Mozilla")>=0)
{
objXmlHttp=new XMLHttpRequest()
objXmlHttp.onload=handler
objXmlHttp.onerror=handler
return objXmlHttp
}
}
-->
</script>
<title>Order Details</title>
</head>
<body bgcolor="silver">
<form id="frmGeneral" name="frmGeneral" action="Order_Entry_Detail-save.asp" method="post">
<input type="hidden" id="hidCustNum" name="hidCustNum" value="<%=strCustNum%>"></input>
<input type="hidden" id="hidCustNum1" name="hidCustNum1" value="<%=strCustNum1%>"></input>
<input type="hidden" id="hidOrderNumDiffOrder" name="hidOrderNumDiffOrder" value=""></input>
<input type="hidden" id="hidOrderNum" name="hidOrderNum" value="<%=intOrderNum%>"></input>
<table border="1" cellpadding="0" cellspacing="0" height="124">
<tr>
<th><font face="verdana" size="1">Print Line Ticket</font></th>
<th><font face="verdana" size="1">Line Serial</font></th>
<th><font face="verdana" size="1">Part ID</font></th>
<th><font face="verdana" size="1">Part #</font></th>
<th><font face="verdana" size="1">Part # Lookup</font></th>
<th bgcolor="yellow"><font face="verdana" size="1">Mfg Name</font></th>
<th bgcolor="yellow"><font face="verdana" size="1">Source</font></th>
<th bgcolor="yellow"><font face="verdana" size="1">Cust Item #</font></th>
<th><font face="verdana" size="1">Non Master MFG/Part #</font></th>
<th><font face="verdana" size="1">SEQ</font></th>
<th><font face="verdana" size="1">Req Ship Date</font></th>
<th><font face="verdana" size="1">Req Due Date</font></th>
<th><font face="verdana" size="1">Or Before</font></th>
<th bgcolor="yellow"><font face="verdana" size="1">Price $</font></th>
<th bgcolor="yellow"><font face="verdana" size="1">Qty</font></th>
<th><font face="verdana" size="1">OH</font></th>
<th><font face="verdana" size="1">OO</font></th>
<th><font face="verdana" size="1">Ext $</font></th>
<th><font face="verdana" size="1">Taxable Tag</font></th>
<th><font face="verdana" size="1">Conv Factor</font></th>
<th bgcolor="yellow"><font face="verdana" size="1">Cost</font></th>
<th><font face="verdana" size="1">Last Cost</font></th>
<th><font face="verdana" size="1">Inv Qty</font></th>
<th><font face="verdana" size="1">Inv Price $</font></th>
<th><font face="verdana" size="1">Margin</font></th>
<th><font face="verdana" size="1">NCNR</font></th>
<th><font face="verdana" size="1">DRPSHP</font></th>
<th><font face="verdana" size="1">HLDREL</font></th>
<th><font face="verdana" size="1">Line Ship Cmpl</font></th>
<th><font face="verdana" size="1">Sample EAU</font></th>
<th><font face="verdana" size="1">Sample App</font></th>
<th><font face="verdana" size="1">Sample Catalog</font></th>
<th><font face="verdana" size="1">Stop Early Alerts</font></th>
<th><font face="verdana" size="1">Consession</font></th>
<th><font face="verdana" size="1">Qte Line Serial Nbr</font></th>
<th><font face="verdana" size="1">Expedite Date</font></th>
<th><font face="verdana" size="1">Processed</font></th>
<th><font face="verdana" size="1">Master UM</font></th>
<th><font face="verdana" size="1">SCHD OO</font></th>
<th><font face="verdana" size="1">GL Code</font></th>
<th><font face="verdana" size="1">Cust OO</font></th>
<th><font face="verdana" size="1">RoHS</font></th>
<th bgcolor="yellow"><font face="verdana" size="1">Notify Admin Recvd</font></th>
<th><font face="verdana" size="1">Cust Notified Potential Ship Date Conflict</font></th>
<th><font face="verdana" size="1">Internal Comments</font></th>
<th><font face="verdana" size="1">Invoice Comments</font></th>
<th><font face="verdana" size="1">Lead Time Notes</font></th>
<th><font face="verdana" size="1">Early Alert Notes</font></th>
<th><font face="verdana" size="1">Change Order Notes</font></th>
<th bgcolor="yellow"><font face="verdana" size="1">Void</font></th>
<th><font face="verdana" size="1">Void Reason</font></th>
<th><font face="verdana" size="1">Duplicate Line (same order)</font></th>
<th><font face="verdana" size="1">Duplicate Line (different order)</font></th>
<th><font face="verdana" size="1">Queue Line</font></th>
<th bgcolor="yellow"><font face="verdana" size="1">Part #</font></th>
<th bgcolor="yellow"><font face="verdana" size="1">Mfg Name</font></th>
<th bgcolor="yellow"><font face="verdana" size="1">Cust Item #</font></th>
</tr>
<%
if strStealthMode <> "Yes" then
set rs = Server.CreateObject ("adodb.Recordset")
ssql = "SELECT COUNT(SEQ) AS LineCount FROM [ORDER DETAILS] WHERE ([ORDER #] = "&intOrderNum&")"
rs.Open ssql, dbc, adOpenForwardOnly, adLockReadOnly
if not rs.eof then
intLineCount = rs("LineCount")
end if
rs.close
set rs=nothing
set rs = Server.CreateObject ("adodb.Recordset")
ssql = "SELECT [ORDER DETAILS].SEQ, [ORDER DETAILS].[ORDER #] AS OrderNum, [ORDER DETAILS].[PART_#] AS PartNum, [ORDER DETAILS].ID, [ORDER DETAILS].QteLineSerialNbr, [ORDER DETAILS].MFG_NAME AS MfgName, [ORDER DETAILS].[NON MASTER MFG PART#] AS NonMasterMfgPart, [ORDER DETAILS].NoEarlyAlert, [ORDER DETAILS].ExpediteDate, [ORDER DETAILS].SRCE AS Source, [ORDER DETAILS].[CUST ITEM #] AS CustItem, [ORDER DETAILS].QTY, [ORDER DETAILS].ChangeOrderNotes, [ORDER DETAILS].[CONV FCTR] AS ConvFactor, [ORDER DETAILS].PRICE, [ORDER DETAILS].COST, [ORDER DETAILS].SampleCatalog, [ORDER DETAILS].GLCode, [ORDER DETAILS].[REQ SHIP DATE] AS ReqShipDate, [ORDER DETAILS].[OR BEFORE] AS OrBefore, [ORDER DETAILS].InvCode, [ORDER DETAILS].VendorID, [ORDER DETAILS].[REQ DUE DATE] AS ReqDueDate, [ORDER DETAILS].COMMENT, [ORDER DETAILS].[TAXABLE TAG] AS TaxableTag, [ORDER DETAILS].LeadTimeNotes, [ORDER DETAILS].CustNotifiedOfConflict, [ORDER DETAILS].[MASTER UM] AS MasterUm, [ORDER DETAILS].INT_NOTE AS IntNote, [ORDER DETAILS].DRPSHP AS DropShip, [ORDER DETAILS].NCNR, [ORDER DETAILS].EarlyAlertNotes, [ORDER DETAILS].NotifyAdminRecvd, [ORDER DETAILS].NotifyAdminRecvdTime, [ORDER DETAILS].VoidLineNotes AS VoidReason, [ORDER DETAILS].VoidLine AS Void, [ORDER DETAILS].HLDREL, [ORDER DETAILS].ShipCmpltLine AS LineShipCmpl, [ORDER DETAILS].[LINE_SERIAL #] AS LineSerial, [ORDER DETAILS].SampleEAU, [ORDER DETAILS].SampleApplication AS SampleApp, [ORDER DETAILS].CustomerConcession AS Concession, [ORDER DETAILS].Processed, ORDERS.[SHP CMPL] AS ShpCmpl, ORDERS.SignOff AS OrdSignOff, [ORDER DETAILS].VoidLine, ORDERS.VOID AS OrdVoid"
ssql = ssql & " FROM ORDERS INNER JOIN [ORDER DETAILS] ON ORDERS.[ORDER #] = [ORDER DETAILS].[ORDER #]"
ssql = ssql & " WHERE ([ORDER DETAILS].[ORDER #] = "&intOrderNum&") ORDER BY SEQ ASC"
rs.Open ssql, dbc, adOpenForwardOnly, adLockReadOnly
else
intLineCount = 1
set rs = Server.CreateObject ("adodb.Recordset")
ssql = "SELECT Max([ORDER DETAILS].SEQ) AS MaxOfSEQ FROM [ORDER DETAILS] WHERE ([ORDER DETAILS].[ORDER #] = "&intOrderNum&") "
rs.Open ssql, dbc, adOpenForwardOnly, adLockReadOnly
if not rs.eof then
intMaxSeq = rs("MaxOfSeq")
end if
rs.close
set rs=nothing
set rs = Server.CreateObject ("adodb.Recordset")
ssql = "SELECT [ORDER DETAILS].SEQ, [ORDER DETAILS].[ORDER #] AS OrderNum, [ORDER DETAILS].[PART_#] AS PartNum, [ORDER DETAILS].ID, [ORDER DETAILS].QteLineSerialNbr, [ORDER DETAILS].MFG_NAME AS MfgName, [ORDER DETAILS].[NON MASTER MFG PART#] AS NonMasterMfgPart, [ORDER DETAILS].NoEarlyAlert, [ORDER DETAILS].ExpediteDate, [ORDER DETAILS].SRCE AS Source, [ORDER DETAILS].[CUST ITEM #] AS CustItem, [ORDER DETAILS].QTY, [ORDER DETAILS].ChangeOrderNotes, [ORDER DETAILS].[CONV FCTR] AS ConvFactor, [ORDER DETAILS].PRICE, [ORDER DETAILS].COST, [ORDER DETAILS].SampleCatalog, [ORDER DETAILS].GLCode, [ORDER DETAILS].[REQ SHIP DATE] AS ReqShipDate, [ORDER DETAILS].[OR BEFORE] AS OrBefore, [ORDER DETAILS].InvCode, [ORDER DETAILS].VendorID, [ORDER DETAILS].[REQ DUE DATE] AS ReqDueDate, [ORDER DETAILS].COMMENT, [ORDER DETAILS].[TAXABLE TAG] AS TaxableTag, [ORDER DETAILS].LeadTimeNotes, [ORDER DETAILS].CustNotifiedOfConflict, [ORDER DETAILS].[MASTER UM] AS MasterUm, [ORDER DETAILS].INT_NOTE AS IntNote, [ORDER DETAILS].DRPSHP AS DropShip, [ORDER DETAILS].NCNR, [ORDER DETAILS].EarlyAlertNotes, [ORDER DETAILS].NotifyAdminRecvd, [ORDER DETAILS].NotifyAdminRecvdTime, [ORDER DETAILS].VoidLineNotes AS VoidReason, [ORDER DETAILS].VoidLine AS Void, [ORDER DETAILS].HLDREL, [ORDER DETAILS].ShipCmpltLine AS LineShipCmpl, [ORDER DETAILS].[LINE_SERIAL #] AS LineSerial, [ORDER DETAILS].SampleEAU, [ORDER DETAILS].SampleApplication AS SampleApp, [ORDER DETAILS].CustomerConcession AS Concession, [ORDER DETAILS].Processed, ORDERS.[SHP CMPL] AS ShpCmpl, ORDERS.SignOff AS OrdSignOff, [ORDER DETAILS].VoidLine, ORDERS.VOID AS OrdVoid"
ssql = ssql & " FROM ORDERS INNER JOIN [ORDER DETAILS] ON ORDERS.[ORDER #] = [ORDER DETAILS].[ORDER #]"
ssql = ssql & " WHERE ([ORDER DETAILS].[ORDER #] = "&intOrderNum&") AND (SEQ = "&intMaxSeq&") ORDER BY SEQ ASC"
rs.Open ssql, dbc, adOpenForwardOnly, adLockReadOnly
end if
do while not rs.eof
i = i + 1
if rs("OrdVoid") = 0 then
strOrdVoid = "No"
else
strOrdVoid = "Yes"
end if
' response.write(rs("Price"))
curPrice = cDbl(rs("Price"))
curCost = cDbl(rs("Cost"))
intQuantity = cDbl(rs("Qty"))
intConvFactor = cDbl(rs("ConvFactor"))
strRohs = ""
intOH = ""
intOO = ""
intSchdOO = ""
intCustOO = ""
if len(rs("ID")) > 0 then
set rs1 = Server.CreateObject ("adodb.Recordset")
ssql = "SELECT RohsStatus, OH, OO, SCHDOO, CustOO FROM [INVENTORYMASTER1] WHERE (ID = "&rs("ID")&")"
rs1.Open ssql, dbc, adOpenForwardOnly, adLockReadOnly
if not rs1.eof then
strRohs = rs1("RohsStatus")
intOH = rs1("OH")
intOO = rs1("OO")
intSchdOO = rs1("SCHDOO")
intCustOO = rs1("CustOO")
end if
rs1.close
set rs1 = nothing
end if
if IsNull(intQuantity) then intQuantity = 0 end if
if IsNull(intConvFactor) then intConvFactor = 1 end if
if IsNull(curPrice) then curPrice = 0
'response.write(cDec(curPrice)&"<br>")
'response.write(cDec(curPrice))
if curPrice > 0 then
'intMargin = (curPrice - cDbl(rs("Cost"))/curPrice) * 100
intMargin = ((curPrice - curCost) / curPrice)*100
end if
intInvQuantity = intQuantity * intConvFactor
if intConvFactor > 0 then
curInvPrice = curPrice / intConvFactor
end if
curExtPrice = intQuantity * curPrice
set rs1 = Server.CreateObject ("adodb.Recordset")
ssql = "SELECT LastCost FROM INVENTORYMASTER1 WHERE ([Part #] = '"&rs("PartNum")&"')"
rs1.Open ssql, dbc, adOpenForwardOnly, adLockReadOnly
if not rs1.eof then
intLastCost = rs1("LastCost")
end if
rs1.close
set rs1=nothing
if i-2 > 0 then
if (i-2) mod 8 = 0 then
%>
<tr>
<th><font face="verdana" size="1">Print Line Ticket</font></th>
<th><font face="verdana" size="1">Line Serial</font></th>
<th><font face="verdana" size="1">Part ID</font></th>
<th><font face="verdana" size="1">Part #</font></th>
<th><font face="verdana" size="1">Part # Lookup</font></th>
<th bgcolor="yellow"><font face="verdana" size="1">Mfg Name</font></th>
<th bgcolor="yellow"><font face="verdana" size="1">Source</font></th>
<th bgcolor="yellow"><font face="verdana" size="1">Cust Item #</font></th>
<th><font face="verdana" size="1">Non Master MFG/Part #</font></th>
<th><font face="verdana" size="1">SEQ</font></th>
<th><font face="verdana" size="1">Req Ship Date</font></th>
<th><font face="verdana" size="1">Req Due Date</font></th>
<th><font face="verdana" size="1">Or Before</font></th>
<th bgcolor="yellow"><font face="verdana" size="1">Price $</font></th>
<th bgcolor="yellow"><font face="verdana" size="1">Qty</font></th>
<th><font face="verdana" size="1">OH</font></th>
<th><font face="verdana" size="1">OO</font></th>
<th><font face="verdana" size="1">Ext $</font></th>
<th><font face="verdana" size="1">Taxable Tag</font></th>
<th><font face="verdana" size="1">Conv Factor</font></th>
<th bgcolor="yellow"><font face="verdana" size="1">Cost</font></th>
<th><font face="verdana" size="1">Last Cost</font></th>
<th><font face="verdana" size="1">Inv Qty</font></th>
<th><font face="verdana" size="1">Inv Price $</font></th>
<th><font face="verdana" size="1">Margin</font></th>
<th><font face="verdana" size="1">NCNR</font></th>
<th><font face="verdana" size="1">DRPSHP</font></th>
<th><font face="verdana" size="1">HLDREL</font></th>
<th><font face="verdana" size="1">Line Ship Cmpl</font></th>
<th><font face="verdana" size="1">Sample EAU</font></th>
<th><font face="verdana" size="1">Sample App</font></th>
<th><font face="verdana" size="1">Sample Catalog</font></th>
<th><font face="verdana" size="1">Stop Early Alerts</font></th>
<th><font face="verdana" size="1">Consession</font></th>
<th><font face="verdana" size="1">Qte Line Serial Nbr</font></th>
<th><font face="verdana" size="1">Expedite Date</font></th>
<th><font face="verdana" size="1">Processed</font></th>
<th><font face="verdana" size="1">Master UM</font></th>
<th><font face="verdana" size="1">SCHD OO</font></th>
<th><font face="verdana" size="1">GL Code</font></th>
<th><font face="verdana" size="1">Cust OO</font></th>
<th><font face="verdana" size="1">RoHS</font></th>
<th bgcolor="yellow"><font face="verdana" size="1">Notify Admin Recvd</font></th>
<th><font face="verdana" size="1">Cust Notified Potential Ship Date Conflict</font></th>
<th><font face="verdana" size="1">Internal Comments</font></th>
<th><font face="verdana" size="1">Invoice Comments</font></th>
<th><font face="verdana" size="1">Lead Time Notes</font></th>
<th><font face="verdana" size="1">Early Alert Notes</font></th>
<th><font face="verdana" size="1">Change Order Notes</font></th>
<th bgcolor="yellow"><font face="verdana" size="1">Void</font></th>
<th><font face="verdana" size="1">Void Reason</font></th>
<th><font face="verdana" size="1">Duplicate Line (same order)</font></th>
<th><font face="verdana" size="1">Duplicate Line (different order)</font></th>
<th><font face="verdana" size="1">Queue Line</font></th>
<th bgcolor="yellow"><font face="verdana" size="1">Part #</font></th>
<th bgcolor="yellow"><font face="verdana" size="1">Mfg Name</font></th>
<th bgcolor="yellow"><font face="verdana" size="1">Cust Item #</font></th>
</tr>
<%
end if
end if
if i > 2 and i < intLineCount+1 then
%>
<input type="hidden" id="hidNotifyAdminRecvdTime<%=i%>" name="hidNotifyAdminRecvdTime<%=i%>" value="<%=rs("NotifyAdminRecvdTime")%>">
<tr id="tr<%=i%>">
<td nowrap><font face="verdana" size="1"><a target="_blank" href="order_print_line.asp?OrderNum=<%=intOrderNum%>&SN=<%=rs("LineSerial")%>&CustNum=<%=strCustNum%>">Print Line Pick Ticket</a></font></td>
<td><input type="text" id="txtLineSerial<%=i%>" name="txtLineSerial<%=i%>" value="<%=rs("LineSerial")%>" onkeydown="return enter(txtPartID<%=i%>, txtLineSerial<%=i+1%>, txtLineSerial<%=i-1%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" readonly style="font-family: Verdana; font-size: 8pt" size="10" autocomplete="off" autocomplete="off"></td>
<td><input type="text" id="txtPartID<%=i%>" name="txtPartID<%=i%>" value="<%=rs("ID")%>" onkeydown="return enter(txtPartNum<%=i%>, txtPartID<%=i+1%>, txtPartID<%=i-1%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" readonly style="font-family: Verdana; font-size: 8pt" size="10" autocomplete="off" autocomplete="off"></td>
<td><input type="text" id="txtPartNum<%=i%>" name="txtPartNum<%=i%>" value="<%=rs("PartNum")%>" onkeyup="getPart(this.value, <%=i%>, <%=rs("LineSerial")%>)" onkeydown="return enter(txtMfgName<%=i%>, txtPartNum<%=i+1%>, txtPartNum<%=i-1%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="20" autocomplete="off"><font face="verdana" size="1"><a href="inventorycard.asp?ID=<%=rs("ID")%>" target="_blank">card</a></font></td>
<td nowrap><div id="selPartNumAjax<%=i%>"></div autocomplete="off"></td>
<td><input type="text" id="txtMfgName<%=i%>" name="txtMfgName<%=i%>" value="<%=rs("MfgName")%>" onkeydown="return enter(txtSource<%=i%>, txtMfgName<%=i+1%>, txtMfgName<%=i-1%>)" onFocus="ChangeColor(this.id, <%=i%>)" onChange="SaveRecord('[Mfg_Name]', <%=rs("LineSerial")%>, this.value)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="13" autocomplete="off"></td>
<td><input type="text" id="txtSource<%=i%>" name="txtSource<%=i%>" value="<%=rs("Source")%>" onkeydown="return enter(txtCustItem<%=i%>, txtSource<%=i+1%>, txtSource<%=i-1%>)" onChange="SaveRecord('[SRCE]', <%=rs("LineSerial")%>, this.value)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="13" autocomplete="off"></td>
<td><input type="text" id="txtCustItem<%=i%>" name="txtCustItem<%=i%>" value="<%=rs("CustItem")%>" onkeydown="return enter(txtNonMasterMfgPart<%=i%>, txtCustItem<%=i+1%>, txtCustItem<%=i-1%>)" onChange="UpperCaseCI(this, <%=i%>, '[Cust Item #]', <%=rs("LineSerial")%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="10" autocomplete="off"></td>
<td><input type="text" id="txtNonMasterMfgPart<%=i%>" name="txtNonMasterMfgPart<%=i%>" onkeydown="return enter(txtReqShipDate<%=i%>, txtNonMasterMfgPart<%=i+1%>, txtNonMasterMfgPart<%=i-1%>)" onChange="SaveRecord('[NON MASTER MFG PART#]', <%=rs("LineSerial")%>, this.value)" value="<%=rs("NonMasterMfgPart")%>" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="10" autocomplete="off"></td>
<td><input type="text" id="txtSeq<%=i%>" name="txtSeq<%=i%>" value="<%=rs("Seq")%>" onkeydown="return enter(selNCNR<%=i%>, txtSeq<%=i+1%>, txtSeq<%=i-1%>)" onChange="ValidateInteger('[SEQ]', <%=rs("LineSerial")%>, this.value, <%=i%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="5" autocomplete="off"></td>
<td nowrap>
<input type="text" id="txtReqShipDate<%=i%>" name="txtReqShipDate<%=i%>" value="<%=rs("ReqShipDate")%>" onkeydown="return enter(txtReqDueDate<%=i%>, txtReqShipDate<%=i+1%>, txtReqShipDate<%=i-1%>)" onChange="CheckDate(this), CheckShipDate(<%=rs("LineSerial")%>, <%=i%>, '[REQ SHIP DATE]', this.value)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="10" autocomplete="off">
<a href="#" onclick="calendar(<%=rs("LineSerial")%>, <%=i%>, '[REQ SHIP DATE]', 'txtReqShipDate')"><img source="/images/cal.gif" src="images/cal.gif" border="0"></a>
</td>
<td nowrap>
<input type="text" id="txtReqDueDate<%=i%>" name="txtReqDueDate<%=i%>" value="<%=rs("ReqDueDate")%>" onkeydown="return enter(selOrBefore<%=i%>, txtReqDueDate<%=i+1%>, txtReqDueDate<%=i-1%>)" onChange="CheckDate(this), CheckDueDate(<%=rs("LineSerial")%>, <%=i%>, '[REQ DUE DATE]', this.value)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="10" autocomplete="off">
<a href="#" onclick="calendar(<%=rs("LineSerial")%>, <%=i%>, '[REQ DUE DATE]', 'txtReqDueDate')"><img source="/images/cal.gif" src="images/cal.gif" border="0"></a>
</td>
<td><select id="selOrBefore<%=i%>" name="selOrBefore<%=i%>" onkeydown="return enter(txtPrice<%=i%>, selOrBefore<%=i+1%>, selOrBefore<%=i-1%>)" onChange="SaveRecord('[OR BEFORE]', <%=rs("LineSerial")%>, this.value)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt">
<option value="1" <%if rs("OrBefore") = 1 then%> selected <%end if%>>Yes</option>
<option value="0" <%if rs("OrBefore") = 0 then%> selected <%end if%>>No</option>
</select>
</td>
<td><input type="text" id="txtPrice<%=i%>" name="txtPrice<%=i%>" value="<%=curPrice%>" onkeydown="return enter(txtQty<%=i%>, txtPrice<%=i+1%>, txtPrice<%=i-1%>)" onChange="CalcStuff('[PRICE]', <%=rs("LineSerial")%>, this.value, <%=i%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="5" autocomplete="off"></td>
<td><input type="text" id="txtQty<%=i%>" name="txtQty<%=i%>" value="<%=rs("Qty")%>" onkeydown="return enter(txtExt<%=i%>, txtQty<%=i+1%>, txtQty<%=i-1%>)" onChange="CalcStuff('[QTY]', <%=rs("LineSerial")%>, this.value, <%=i%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="5" autocomplete="off"></td>
<td><input type="text" id="txtOH<%=i%>0" name="txtOH<%=i%>" value="<%=intOH%>" readonly onkeydown="return enter(txtOO<%=i%>, txtOH<%=i+1%>, txtOO<%=i-1%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="5" autocomplete="off"></td>
<td><input type="text" id="txtOO<%=i%>" name="txtOO<%=i%>" value="<%=intOO%>" readonly onkeydown="return enter(txtSchedOO<%=i%>, txtOO<%=i+1%>, txtMfgName<%=i-1%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="5" autocomplete="off"></td>
<td><input type="text" id="txtExt<%=i%>" name="txtExt<%=i%>" value="<%=curExtPrice%>" onkeydown="return enter(txtTaxableTag<%=i%>, txtExt<%=i+1%>, txtExt<%=i-1%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" readonly style="font-family: Verdana; font-size: 8pt" size="5" autocomplete="off"></td>
<td><input type="text" id="txtTaxableTag<%=i%>" name="txtTaxableTag<%=i%>" value="<%=rs("TaxableTag")%>" onkeydown="return enter(txtConvFactor<%=i%>, txtTaxableTag<%=i+1%>, txtTaxableTag<%=i-1%>)" onChange="SaveRecord('[TAXABLE TAG]', <%=rs("LineSerial")%>, this.value)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="6" autocomplete="off"></td>
<td><input type="text" id="txtConvFactor<%=i%>" name="txtConvFactor<%=i%>" value="<%=intConvFactor%>" onkeydown="return enter(txtCost<%=i%>, txtConvFactor<%=i+1%>, txtConvFactor<%=i-1%>)" onChange="CalcStuff('[CONV FCTR]', <%=rs("LineSerial")%>, this.value, <%=i%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="6" autocomplete="off"></td>
<td><input type="text" id="txtCost<%=i%>" name="txtCost<%=i%>" value="<%=rs("Cost")%>" onkeydown="return enter(txtLastCost<%=i%>, txtCost<%=i+1%>, txtCost<%=i-1%>)" onChange="CalcStuff('[COST]', <%=rs("LineSerial")%>, this.value, <%=i%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="5" autocomplete="off"><font face="verdana" size="1"><a href="inventorycard.asp?ID=<%=rs("ID")%>" target="_blank">card</a></font></td>
<td><input type="text" id="txtLastCost<%=i%>" name="txtLastCost<%=i%>" value="<%=intLastCost%>" onkeydown="return enter(txtInvQty<%=i%>, txtLastCost<%=i+1%>, txtLastCost<%=i-1%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" readonly style="font-family: Verdana; font-size: 8pt" size="5" autocomplete="off"></td>
<td><input type="text" id="txtInvQty<%=i%>" name="txtInvQty<%=i%>" value="<%=intInvQuantity%>" onkeydown="return enter(txtInvPrice<%=i%>, txtInvQty<%=i+1%>, txtInvQty<%=i-1%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" readonly style="font-family: Verdana; font-size: 8pt" size="5" autocomplete="off"></td>
<td><input type="text" id="txtInvPrice<%=i%>" name="txtInvPrice<%=i%>" value="<%=curInvPrice%>" onkeydown="return enter(txtMargin<%=i%>, txtInvPrice<%=i+1%>, txtInvPrice<%=i-1%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" readonly style="font-family: Verdana; font-size: 8pt" size="5" autocomplete="off"></td>
<td><input type="text" id="txtMargin<%=i%>" name="txtMargin<%=i%>" value="<%=intMargin%>" onkeydown="return enter(txtSeq<%=i%>, txtMargin<%=i+1%>, txtMargin<%=i-1%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" readonly style="font-family: Verdana; font-size: 8pt" size="5" autocomplete="off"></td>
<td><select id="selNCNR<%=i%>" name="selNCNR<%=i%>" onkeydown="return enter(selDropShip<%=i%>, selNCNR<%=i+1%>, selNCNR<%=i-1%>)" onChange="SaveRecord('[NCNR]', <%=rs("LineSerial")%>, this.value)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt">
<option value="1" <%if rs("NCNR") = 1 then%> selected <%end if%>>Yes</option>
<option value="0" <%if rs("NCNR") = 0 then%> selected <%end if%>>No</option>
</select>
</td>
<td><select id="selDropShip<%=i%>" name="selDropShip<%=i%>" onkeydown="return enter(selHldrel<%=i%>, selDropShip<%=i+1%>, selDropShip<%=i-1%>)" onChange="SaveRecord('[DRPSHP]', <%=rs("LineSerial")%>, this.value)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt">
<option value="1" <%if rs("DropShip") = 1 then%> selected <%end if%>>Yes</option>
<option value="0" <%if rs("DropShip") = 0 then%> selected <%end if%>>No</option>
</select>
</td>
<td><select id="selHldrel<%=i%>" name="selHldrel<%=i%>" onkeydown="return enter(selLineShipCmpl<%=i%>, selHldrel<%=i+1%>, selHldrel<%=i-1%>)" onChange="SaveRecord('[HLDREL]', <%=rs("LineSerial")%>, this.value)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt">
<option value="1" <%if rs("Hldrel") = 1 then%> selected <%end if%>>Yes</option>
<option value="0" <%if rs("Hldrel") = 0 then%> selected <%end if%>>No</option>
</select>
</td>
<td><select id="selLineShipCmpl<%=i%>" name="selLineShipCmpl<%=i%>" onkeydown="return enter(txtSampleEAU<%=i%>, selLineShipCmpl<%=i+1%>, selLineShipCmpl<%=i-1%>)" onChange="SaveRecord('[ShipCmpltLine]', <%=rs("LineSerial")%>, this.value)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt">
<option value="1" <%if rs("LineShipCmpl") = 1 then%> selected <%end if%>>Yes</option>
<option value="0" <%if rs("LineShipCmpl") = 0 then%> selected <%end if%>>No</option>
</select>
</td>
<td><input type="text" id="txtSampleEAU<%=i%>" name="txtSampleEAU<%=i%>" value="<%=rs("SampleEAU")%>" onkeydown="return enter(txtSampleApp<%=i%>, txtSampleEAU<%=i+1%>, txtSampleEAU<%=i-1%>)" onChange="ValidateInteger('[SampleEAU]', <%=rs("LineSerial")%>, this.value, <%=i%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="5" autocomplete="off"></td>
<td><input type="text" id="txtSampleApp<%=i%>" name="txtSampleApp<%=i%>" value="<%=rs("SampleApp")%>" onkeydown="return enter(selSampleCatalog<%=i%>, txtSampleApp<%=i+1%>, txtSampleApp<%=i-1%>)" onChange="SaveRecord('[SampleApplication]', <%=rs("LineSerial")%>, this.value)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="6" autocomplete="off"></td>
<td><select id="selSampleCatalog<%=i%>" name="selSampleCatalog<%=i%>" onkeydown="return enter(selStopEarlyAlerts<%=i%>, selSampleCatalog<%=i+1%>, selSampleCatalog<%=i-1%>)" onChange="SaveRecord('[SampleCatalog]', <%=rs("LineSerial")%>, this.value)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt">
<option value="1" <%if rs("SampleCatalog") = 1 then%> selected <%end if%>>Yes</option>
<option value="0" <%if rs("SampleCatalog") = 0 then%> selected <%end if%>>No</option>
</select>
</td>
<td><select id="selStopEarlyAlerts<%=i%>" name="selStopEarlyAlerts<%=i%>" onkeydown="return enter(selConcession<%=i%>, selStopEarlyAlerts<%=i+1%>, selStopEarlyAlerts<%=i-1%>)" onChange="SaveRecord('[NoEarlyAlert]', <%=rs("LineSerial")%>, this.value)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt">
<option value="1" <%if rs("NoEarlyAlert") = 1 then%> selected <%end if%>>Yes</option>
<option value="0" <%if rs("NoEarlyAlert") = 0 then%> selected <%end if%>>No</option>
</select>
</td>
<td><select id="selConcession<%=i%>" name="selConcession<%=i%>" onkeydown="return enter(txtQteLineSerialNbr<%=i%>, selConcession<%=i+1%>, selConcession<%=i-1%>)" onChange="SaveRecord('[CustomerConcession]', <%=rs("LineSerial")%>, this.value)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt">
<option value="1" <%if rs("Concession") = 1 then%> selected <%end if%>>Yes</option>
<option value="0" <%if rs("Concession") = 0 then%> selected <%end if%>>No</option>
</select>
</td>
<td><input type="text" id="txtQteLineSerialNbr<%=i%>" name="txtQteLineSerialNbr<%=i%>" onkeydown="return enter(txtExpediteDate<%=i%>, txtQteLineSerialNbr<%=i+1%>, txtQteLineSerialNbr<%=i-1%>)" onChange="ValidateInteger('[QteLineSerialNbr]', <%=rs("LineSerial")%>, this.value, <%=i%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" value="<%=rs("QteLineSerialNbr")%>" style="font-family: Verdana; font-size: 8pt" size="10" autocomplete="off"></td>
<td><input type="text" id="txtExpediteDate<%=i%>" name="txtExpediteDate<%=i%>" value="<%=rs("ExpediteDate")%>" onkeydown="return enter(txtProcessed<%=i%>, txtExpediteDate<%=i+1%>, txtExpediteDate<%=i-1%>)" onChange="SaveRecord('[ExpediteDate]', <%=rs("LineSerial")%>, this.value), CheckDate(this)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="10" autocomplete="off"></td>
<td><input type="text" id="txtProcessed<%=i%>" name="txtProcessed<%=i%>" value="<%=rs("Processed")%>" onkeydown="return enter(txtMasterUM<%=i%>, txtProcessed<%=i+1%>, txtProcessed<%=i-1%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" readonly style="font-family: Verdana; font-size: 8pt" size="10" autocomplete="off"></td>
<td><input type="text" id="txtMasterUM<%=i%>" name="txtMasterUM<%=i%>" value="<%=rs("MasterUM")%>" onkeydown="return enter(txtOH<%=i%>, txtMasterUM<%=i+1%>, txtMasterUM<%=i-1%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="5" autocomplete="off"></td>
<td><input type="text" id="txtSchedOO<%=i%>" name="txtSchedOO<%=i%>" value="<%=intSchedOO%>" onkeydown="return enter(txtGLCode<%=i%>, txtSchedOO<%=i+1%>, txtSchedOO<%=i-1%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" readonly style="font-family: Verdana; font-size: 8pt" size="5" autocomplete="off"></td>
<td><input type="text" id="txtGLCode<%=i%>" name="txtGLCode<%=i%>" value="<%=rs("GLCode")%>" onkeydown="return enter(txtCustOO<%=i%>, txtGLCode<%=i+1%>, txtGLCode<%=i-1%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" readonly style="font-family: Verdana; font-size: 8pt" size="4" autocomplete="off"></td>
<td><input type="text" id="txtCustOO<%=i%>" name="txtCustOO<%=i%>" value="<%=CustOO%>" onkeydown="return enter(txtRohs<%=i%>, txtCustOO<%=i+1%>, txtCustOO<%=i-1%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" readonly style="font-family: Verdana; font-size: 8pt" size="5" autocomplete="off"></td>
<td><input type="text" id="txtRohs<%=i%>" name="txtRohs<%=i%>" value="<%=strRohs%>" onkeydown="return enter(selNotifyAdminRecvd<%=i%>, txtRohs<%=i+1%>, txtRohs<%=i-1%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" readonly style="font-family: Verdana; font-size: 8pt" size="10" autocomplete="off"></td>
<td><select id="selNotifyAdminRecvd<%=i%>" name="selNotifyAdminRecvd<%=i%>" onkeydown="return enter(txtCustNotifiedPotentialShipDateConflict<%=i%>, selNotifyAdminRecvd<%=i+1%>, selNotifyAdminRecvd<%=i-1%>)" onChange="SaveRecord('[NotifyAdminRecvd]', <%=rs("LineSerial")%>, this.value)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt">
<option value="1" <%if rs("NotifyAdminRecvd") = 1 then%> selected <%end if%>>Yes</option>
<option value="0" <%if rs("NotifyAdminRecvd") = 0 then%> selected <%end if%>>No</option>
</select>
</td>
<td><input type="text" id="txtCustNotifiedPotentialShipDateConflict<%=i%>" name="txtCustNotifiedPotentialShipDateConflict<%=i%>" onkeydown="return enter(txtInternalComments<%=i%>, txtCustNotifiedPotentialShipDateConflict<%=i+1%>, txtCustNotifiedPotentialShipDateConflict<%=i-1%>)" onFocus="ChangeColor(this.id, <%=i%>)" onChange="SaveRecord('[CustNotifiedOfConflict]', <%=rs("LineSerial")%>, this.value)" onBlur="ChangeColorBlur(this.id, <%=i%>)" value="<%=rs("CustNotifiedOfConflict")%>" readonly style="font-family: Verdana; font-size: 8pt" size="20" autocomplete="off"></td>
<td><input type="text" id="txtInternalComments<%=i%>" name="txtInternalComments<%=i%>" value="<%=rs("IntNote")%>" onkeydown="return enter(txtInvoiceComments<%=i%>, txtInternalComments<%=i+1%>, txtInternalComments<%=i-1%>)" onChange="SaveRecord('[INT_NOTE]', <%=rs("LineSerial")%>, this.value)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)"style="font-family: Verdana; font-size: 8pt" size="40" autocomplete="off" maxlength="255"></td>
<td><input type="text" id="txtInvoiceComments<%=i%>" name="txtInvoiceComments<%=i%>" value="<%=rs("Comment")%>" onkeydown="return enter(txtLeadTimeNotes<%=i%>, txtInvoiceComments<%=i+1%>, txtInvoiceComments<%=i-1%>)" onChange="SaveRecord('[COMMENT]', <%=rs("LineSerial")%>, this.value)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="40" autocomplete="off" maxlength="200"></td>
<td><input type="text" id="txtLeadTimeNotes<%=i%>" name="txtLeadTimeNotes<%=i%>" value="<%=rs("LeadTimeNotes")%>" onkeydown="return enter(txtEarlyAlertNotes<%=i%>, txtLeadTimeNotes<%=i+1%>, txtLeadTimeNotes<%=i-1%>)" onChange="SaveRecord('[LeadTimeNotes]', <%=rs("LineSerial")%>, this.value)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="40" autocomplete="off" maxlength="100"></td>
<td><input type="text" id="txtEarlyAlertNotes<%=i%>" name="txtEarlyAlertNotes<%=i%>" value="<%=rs("EarlyAlertNotes")%>" onkeydown="return enter(txtChangeOrderNotes<%=i%>, txtEarlyAlertNotes<%=i+1%>, txtEarlyAlertNotes<%=i-1%>)" onChange="SaveRecord('[EarlyAlertNotes]', <%=rs("LineSerial")%>, this.value)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="40" autocomplete="off" maxlength="255"></td>
<td><input type="text" id="txtChangeOrderNotes<%=i%>" name="txtChangeOrderNotes<%=i%>" value="<%=rs("ChangeOrderNotes")%>" onkeydown="return enter(selVoid<%=i%>, txtChangeOrderNotes<%=i+1%>, txtChangeOrderNotes<%=i-1%>)" onChange="SaveRecord('[ChangeOrderNotes]', <%=rs("LineSerial")%>, this.value)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="40" autocomplete="off" maxlength="200"></td>
<td><select id="selVoid<%=i%>" name="selVoid<%=i%>" onkeydown="return enter(txtVoidReason<%=i%>, selVoid<%=i+1%>, selVoid<%=i-1%>)" onChange="SaveRecord('[VoidLine]', <%=rs("LineSerial")%>, this.value), VoidAlert(this.value)" onBlur="ChangeColorBlur(this.id, <%=i%>)" onFocus="ChangeColor(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt">
<option value="1" <%if rs("VoidLine") = 1 then%> selected <%end if%>>Yes</option>
<option value="0" <%if rs("VoidLine") = 0 then%> selected <%end if%>>No</option>
</select>
</td>
<td><input type="text" id="txtVoidReason<%=i%>" name="txtVoidReason<%=i%>" value="<%=rs("VoidReason")%>" onkeydown="return enter(txtLineSerial<%=i+1%>, txtVoidReason<%=i+1%>, txtVoidReason<%=i-1%>)" onChange="SaveRecord('[VoidLineNotes]', <%=rs("LineSerial")%>, this.value)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="40" autocomplete="off" maxlength="100"></td>
<td><input type=button onClick="DuplicateLine(<%=i%>)" value="Duplicate Line (same order)" style="font-family: Verdana; font-size: 8pt" id="btnDuplicateLineSameOrder<%=i%>" name="btnDuplicateLineSameOrder<%=i%>" onBlur="ChangeColorBlur(this.id, <%=i%>)" onFocus="ChangeColor(this.id, <%=i%>)" ></td>
<td><input type=button onClick="DuplicateLineDiffOrder(<%=i%>)" value="Duplicate Line (diff order)" style="font-family: Verdana; font-size: 8pt" id="btnDuplicateLineDiffOrder<%=i%>" name="btnDuplicateLineDiffOrder<%=i%>" onBlur="ChangeColorBlur(this.id, <%=i%>)" onFocus="ChangeColor(this.id, <%=i%>)" ></td>
<td><input type=button onClick="Go('order_que_detail-beta.asp?CustNum=<%=strCustNum%>&LineSerial=<%=rs("LineSerial")%>&OrderNum=<%=intOrderNum%>&AltShip=<%=strAltShip%>')" value="Queue Line" style="font-family: Verdana; font-size: 8pt" id="btnQueLine<%=i%>" name="btnQueLine<%=i%>" onBlur="ChangeColorBlur(this.id, <%=i%>)" onFocus="ChangeColor(this.id, <%=i%>)" ></td>
<td><input type="text" id="txtPartNumDuplicate<%=i%>" name="txtPartNumDuplicate<%=i%>" value="<%=rs("PartNum")%>" style="font-family: Verdana; font-size: 8pt" size="20" readonly><font face="verdana" size="1"><a href="inventorycard.asp?ID=<%=rs("ID")%>" target="_blank">card</a></font></td>
<td><input type="text" id="txtMfgNameDuplicate<%=i%>" name="txtMfgNameDuplicate<%=i%>" value="<%=rs("MfgName")%>" style="font-family: Verdana; font-size: 8pt" size="13" readonly></td>
<td><input type="text" id="txtCustItemDuplicate<%=i%>" name="txtCustItemDuplicate<%=i%>" value="<%=rs("CustItem")%>" style="font-family: Verdana; font-size: 8pt" size="10" readonly></td>
</tr>
<%
else
if intLineCount = 1 then
%>
<input type="hidden" id="hidNotifyAdminRecvdTime<%=i%>" name="hidNotifyAdminRecvdTime<%=i%>" value="<%=rs("NotifyAdminRecvdTime")%>">
<tr id="tr<%=i%>">
<td nowrap><font face="verdana" size="1"><a target="_blank" href="order_print_line.asp?OrderNum=<%=intOrderNum%>&SN=<%=rs("LineSerial")%>&CustNum=<%=strCustNum%>">Print Line Pick Ticket</a></font></td>
<td><input type="text" id="txtLineSerial<%=i%>" name="txtLineSerial<%=i%>" value="<%=rs("LineSerial")%>" onkeydown="return enterOnlyLine(txtPartID<%=i%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" readonly style="font-family: Verdana; font-size: 8pt" size="10" autocomplete="off"></td>
<td><input type="text" id="txtPartID<%=i%>" name="txtPartID<%=i%>" value="<%=rs("ID")%>" onkeydown="return enterOnlyLine(txtPartNum<%=i%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" readonly style="font-family: Verdana; font-size: 8pt" size="10" autocomplete="off"></td>
<td><input type="text" id="txtPartNum<%=i%>" name="txtPartNum<%=i%>" value="<%=rs("PartNum")%>" onkeyup="getPart(this.value, <%=i%>, <%=rs("LineSerial")%>)" onFocus="ChangeColor(this.id, <%=i%>)" onkeydown="return enterOnlyLine(txtMfgName<%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="20" autocomplete="off"><font face="verdana" size="1"><a href="inventorycard.asp?ID=<%=rs("ID")%>" target="_blank">card</a></font></td>
<td nowrap><div id="selPartNumAjax<%=i%>"></div autocomplete="off"></td>
<td><input type="text" id="txtMfgName<%=i%>" name="txtMfgName<%=i%>" value="<%=rs("MfgName")%>" onChange="SaveRecord('[Mfg_Name]', <%=rs("LineSerial")%>, this.value)" onkeydown="return enterOnlyLine(txtCustItem<%=i%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="13" autocomplete="off"></td>
<td><input type="text" id="txtSource<%=i%>" name="txtSource<%=i%>" value="<%=rs("Source")%>" onkeydown="return enterOnlyLine(selNCNR<%=i%>)" onChange="SaveRecord('[SRCE]', <%=rs("LineSerial")%>, this.value)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="13" autocomplete="off"></td>
<td><input type="text" id="txtCustItem<%=i%>" name="txtCustItem<%=i%>" value="<%=rs("CustItem")%>" onkeydown="return enterOnlyLine(txtNonMasterMfgPart<%=i%>)" onFocus="ChangeColor(this.id, <%=i%>)" onChange="UpperCaseCI(this, <%=i%>, '[Cust Item #]', <%=rs("LineSerial")%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="10" autocomplete="off"></td>
<td><input type="text" id="txtNonMasterMfgPart<%=i%>" name="txtNonMasterMfgPart<%=i%>" onkeydown="return enterOnlyLine(txtReqShipDate<%=i%>)" onChange="SaveRecord('[NON MASTER MFG PART#]', <%=rs("LineSerial")%>, this.value)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" value="<%=rs("NonMasterMfgPart")%>" style="font-family: Verdana; font-size: 8pt" size="10" autocomplete="off"></td>
<td><input type="text" id="txtSeq<%=i%>" name="txtSeq<%=i%>" value="<%=rs("Seq")%>" onkeydown="return enterOnlyLine(selNCNR<%=i%>)" onChange="ValidateInteger('[SEQ]', <%=rs("LineSerial")%>, this.value, <%=i%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="5" autocomplete="off"></td>
<td nowrap>
<input type="text" id="txtReqShipDate<%=i%>" name="txtReqShipDate<%=i%>" value="<%=rs("ReqShipDate")%>" onkeydown="return enterOnlyLine(txtReqDueDate<%=i%>)" onChange="CheckDate(this), CheckShipDate(<%=rs("LineSerial")%>, <%=i%>, '[REQ SHIP DATE]', this.value)" onFocus="ChangeColor(this.id, <%=i%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="10" autocomplete="off">
<a href="#" onclick="calendar(<%=rs("LineSerial")%>, <%=i%>, '[REQ SHIP DATE]', 'txtReqShipDate')"><img source="/images/cal.gif" src="images/cal.gif" border="0"></a>
</td>
<td nowrap>
<input type="text" id="txtReqDueDate<%=i%>" name="txtReqDueDate<%=i%>" value="<%=rs("ReqDueDate")%>" onkeydown="return enterOnlyLine(selOrBefore<%=i%>)" onChange="CheckDate(this), CheckDueDate(<%=rs("LineSerial")%>, <%=i%>, '[REQ DUE DATE]', this.value)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="10" autocomplete="off">
<a href="#" onclick="calendar(<%=rs("LineSerial")%>, <%=i%>, '[REQ DUE DATE]', 'txtReqDueDate')"><img source="/images/cal.gif" src="images/cal.gif" border="0"></a>
</td>
<td><select id="selOrBefore<%=i%>" name="selOrBefore<%=i%>" onkeydown="return enterOnlyLine(txtPrice<%=i%>)" onChange="SaveRecord('[OR BEFORE]', <%=rs("LineSerial")%>, this.value)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt">
<option value="1" <%if rs("OrBefore") = 1 then%> selected <%end if%>>Yes</option>
<option value="0" <%if rs("OrBefore") = 0 then%> selected <%end if%>>No</option>
</select>
</td>
<td><input type="text" id="txtPrice<%=i%>" name="txtPrice<%=i%>" value="<%=curPrice%>" onkeydown="return enterOnlyLine(txtQty<%=i%>)" onChange="CalcStuff('[PRICE]', <%=rs("LineSerial")%>, this.value, <%=i%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="5" autocomplete="off"></td>
<td><input type="text" id="txtQty<%=i%>" name="txtQty<%=i%>" value="<%=rs("Qty")%>" onkeydown="return enterOnlyLine(txtExt<%=i%>)" onChange="CalcStuff('[QTY]', <%=rs("LineSerial")%>, this.value, <%=i%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="5" autocomplete="off"></td>
<td><input type="text" id="txtOH<%=i%>" name="txtOH<%=i%>" value="<%=intOH%>" readonly onkeydown="return enterOnlyLine(txtOO<%=i%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="5" autocomplete="off"></td>
<td><input type="text" id="txtOO<%=i%>" name="txtOO<%=i%>" value="<%=intOO%>" readonly onkeydown="return enterOnlyLine(txtSchedOO<%=i%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="5" autocomplete="off"></td>
<td><input type="text" id="txtExt<%=i%>" name="txtExt<%=i%>" value="<%=curExtPrice%>" onkeydown="return enterOnlyLine(txtTaxableTag<%=i%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" readonly style="font-family: Verdana; font-size: 8pt" size="5" autocomplete="off"></td>
<td><input type="text" id="txtTaxableTag<%=i%>" name="txtTaxableTag<%=i%>" value="<%=rs("TaxableTag")%>" onkeydown="return enterOnlyLine(txtConvFactor<%=i%>)" onChange="SaveRecord('[TAXABLE TAG]', <%=rs("LineSerial")%>, this.value)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="6" autocomplete="off"></td>
<td><input type="text" id="txtConvFactor<%=i%>" name="txtConvFactor<%=i%>" value="<%=intConvFactor%>" onkeydown="return enterOnlyLine(txtCost<%=i%>)" onChange="CalcStuff('[CONV FCTR]', <%=rs("LineSerial")%>, this.value, <%=i%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="6" autocomplete="off"></td>
<td><input type="text" id="txtCost<%=i%>" name="txtCost<%=i%>" value="<%=rs("Cost")%>" onkeydown="return enterOnlyLine(txtInvQty<%=i%>)" onChange="CalcStuff('[COST]', <%=rs("LineSerial")%>, this.value, <%=i%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="5" autocomplete="off"><font face="verdana" size="1"><a href="inventorycard.asp?ID=<%=rs("ID")%>" target="_blank">card</a></font></td>
<td><input type="text" id="txtLastCost<%=i%>" name="txtLastCost<%=i%>" value="<%=intLastCost%>" onkeydown="return enterOnlyLine(txtInvQty<%=i%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" readonly style="font-family: Verdana; font-size: 8pt" size="5" autocomplete="off"></td>
<td><input type="text" id="txtInvQty<%=i%>" name="txtInvQty<%=i%>" value="<%=intInvQuantity%>" onkeydown="return enterOnlyLine(txtInvPrice<%=i%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" readonly style="font-family: Verdana; font-size: 8pt" size="5" autocomplete="off"></td>
<td><input type="text" id="txtInvPrice<%=i%>" name="txtInvPrice<%=i%>" value="<%=curInvPrice%>" onkeydown="return enterOnlyLine(txtMargin<%=i%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" readonly style="font-family: Verdana; font-size: 8pt" size="5" autocomplete="off"></td>
<td><input type="text" id="txtMargin<%=i%>" name="txtMargin<%=i%>" value="<%=intMargin%>" onkeydown="return enterOnlyLine(txtSeq<%=i%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" readonly style="font-family: Verdana; font-size: 8pt" size="5" autocomplete="off"></td>
<td><select id="selNCNR<%=i%>" name="selNCNR<%=i%>" onkeydown="return enterOnlyLine(selDropShip<%=i%>)" onChange="SaveRecord('[NCNR]', <%=rs("LineSerial")%>, this.value)" onFocus="ChangeColor(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt">
<option value="1" <%if rs("NCNR") = 1 then%> selected <%end if%>>Yes</option>
<option value="0" <%if rs("NCNR") = 0 then%> selected <%end if%>>No</option>
</select>
</td>
<td><select id="selDropShip<%=i%>" name="selDropShip<%=i%>" onkeydown="return enterOnlyLine(selHldrel<%=i%>)" onChange="SaveRecord('[DRPSHP]', <%=rs("LineSerial")%>, this.value)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt">
<option value="1" <%if rs("DropShip") = 1 then%> selected <%end if%>>Yes</option>
<option value="0" <%if rs("DropShip") = 0 then%> selected <%end if%>>No</option>
</select>
</td>
<td><select id="selHldrel<%=i%>" name="selHldrel<%=i%>" onkeydown="return enterOnlyLine(selLineShipCmpl<%=i%>)" onChange="SaveRecord('[HLDREL]', <%=rs("LineSerial")%>, this.value)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt">
<option value="1" <%if rs("Hldrel") = 1 then%> selected <%end if%>>Yes</option>
<option value="0" <%if rs("Hldrel") = 0 then%> selected <%end if%>>No</option>
</select>
</td>
<td><select id="selLineShipCmpl<%=i%>" name="selLineShipCmpl<%=i%>" onkeydown="return enterOnlyLine(txtSampleEAU<%=i%>)" onChange="SaveRecord('[ShipCmpltLine]', <%=rs("LineSerial")%>, this.value)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt">
<option value="1" <%if rs("LineShipCmpl") = 1 then%> selected <%end if%>>Yes</option>
<option value="0" <%if rs("LineShipCmpl") = 0 then%> selected <%end if%>>No</option>
</select>
</td>
<td><input type="text" id="txtSampleEAU<%=i%>" name="txtSampleEAU<%=i%>" value="<%=rs("SampleEAU")%>" onkeydown="return enterOnlyLine(txtSampleApp<%=i%>)" onChange="ValidateInteger('[SampleEAU]', <%=rs("LineSerial")%>, this.value, <%=i%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="5" autocomplete="off"></td>
<td><input type="text" id="txtSampleApp<%=i%>" name="txtSampleApp<%=i%>" value="<%=rs("SampleApp")%>" onkeydown="return enterOnlyLine(selSampleCatalog<%=i%>)" onChange="SaveRecord('[SampleApplication]', <%=rs("LineSerial")%>, this.value)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="6" autocomplete="off"></td>
<td><select id="selSampleCatalog<%=i%>" name="selSampleCatalog<%=i%>" onkeydown="return enterOnlyLine(selStopEarlyAlerts<%=i%>)" onChange="SaveRecord('[SampleCatalog]', <%=rs("LineSerial")%>, this.value)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt">
<option value="1" <%if rs("SampleCatalog") = 1 then%> selected <%end if%>>Yes</option>
<option value="0" <%if rs("SampleCatalog") = 0 then%> selected <%end if%>>No</option>
</select>
</td>
<td><select id="selStopEarlyAlerts<%=i%>" name="selStopEarlyAlerts<%=i%>" onkeydown="return enterOnlyLine(selConcession<%=i%>)" onChange="SaveRecord('[NoEarlyAlert]', <%=rs("LineSerial")%>, this.value)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt">
<option value="1" <%if rs("NoEarlyAlert") = 1 then%> selected <%end if%>>Yes</option>
<option value="0" <%if rs("NoEarlyAlert") = 0 then%> selected <%end if%>>No</option>
</select>
</td>
<td><select id="selConcession<%=i%>" name="selConcession<%=i%>" onkeydown="return enterOnlyLine(txtQteLineSerialNbr<%=i%>)" onChange="SaveRecord('[CustomerConcession]', <%=rs("LineSerial")%>, this.value)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt">
<option value="1" <%if rs("Concession") = 1 then%> selected <%end if%>>Yes</option>
<option value="0" <%if rs("Concession") = 0 then%> selected <%end if%>>No</option>
</select>
</td>
<td><input type="text" id="txtQteLineSerialNbr<%=i%>" name="txtQteLineSerialNbr<%=i%>" onkeydown="return enterOnlyLine(txtExpediteDate<%=i%>)" onChange="ValidateInteger('[QteLineSerialNbr]', <%=rs("LineSerial")%>, this.value, <%=i%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" value="<%=rs("QteLineSerialNbr")%>" style="font-family: Verdana; font-size: 8pt" size="10" autocomplete="off"></td>
<td><input type="text" id="txtExpediteDate<%=i%>" name="txtExpediteDate<%=i%>" value="<%=rs("ExpediteDate")%>" onkeydown="return enterOnlyLine(txtProcessed<%=i%>)" onChange="SaveRecord('[ExpediteDate]', <%=rs("LineSerial")%>, this.value), CheckDate(this)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="10" autocomplete="off"></td>
<td><input type="text" id="txtProcessed<%=i%>" name="txtProcessed<%=i%>" value="<%=rs("Processed")%>" onkeydown="return enterOnlyLine(txtMasterUM<%=i%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" readonly style="font-family: Verdana; font-size: 8pt" size="10" autocomplete="off"></td>
<td><input type="text" id="txtMasterUM<%=i%>" name="txtMasterUM<%=i%>" value="<%=rs("MasterUM")%>" onkeydown="return enterOnlyLine(txtOH<%=i%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="5" autocomplete="off"></td>
<td><input type="text" id="txtSchedOO<%=i%>" name="txtSchedOO<%=i%>" value="<%=intSchedOO%>" onkeydown="return enterOnlyLine(txtGLCode<%=i%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" readonly style="font-family: Verdana; font-size: 8pt" size="5" autocomplete="off"></td>
<td><input type="text" id="txtGLCode<%=i%>" name="txtGLCode<%=i%>" value="<%=rs("GLCode")%>" onkeydown="return enterOnlyLine(txtCustOO<%=i%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" readonly style="font-family: Verdana; font-size: 8pt" size="4" autocomplete="off"></td>
<td><input type="text" id="txtCustOO<%=i%>" name="txtCustOO<%=i%>" value="<%=CustOO%>" onkeydown="return enterOnlyLine(txtRohs<%=i%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" readonly style="font-family: Verdana; font-size: 8pt" size="5" autocomplete="off"></td>
<td><input type="text" id="txtRohs<%=i%>" name="txtRohs<%=i%>" value="<%=strRohs%>" onkeydown="return enterOnlyLine(selNotifyAdminRecvd<%=i%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" readonly style="font-family: Verdana; font-size: 8pt" size="10" autocomplete="off"></td>
<td><select id="selNotifyAdminRecvd<%=i%>" name="selNotifyAdminRecvd<%=i%>" onkeydown="return enterOnlyLine(txtCustNotifiedPotentialShipDateConflict<%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" onChange="SaveRecord('[NotifyAdminRecvd]', <%=rs("LineSerial")%>, this.value)" onFocus="ChangeColor(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt">
<option value="1" <%if rs("NotifyAdminRecvd") = 1 then%> selected <%end if%>>Yes</option>
<option value="0" <%if rs("NotifyAdminRecvd") = 0 then%> selected <%end if%>>No</option>
</select>
</td>
<td><input type="text" id="txtCustNotifiedPotentialShipDateConflict<%=i%>" name="txtCustNotifiedPotentialShipDateConflict<%=i%>" onkeydown="return enterOnlyLine(txtInternalComments<%=i%>)" onChange="SaveRecord('[CustNotifiedOfConflict]', <%=rs("LineSerial")%>, this.value)" value="<%=rs("CustNotifiedOfConflict")%>" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" readonly style="font-family: Verdana; font-size: 8pt" size="20" autocomplete="off"></td>
<td><input type="text" id="txtInternalComments<%=i%>" name="txtInternalComments<%=i%>" value="<%=rs("IntNote")%>" onkeydown="return enterOnlyLine(txtInvoiceComments<%=i%>)" onChange="SaveRecord('[INT_NOTE]', <%=rs("LineSerial")%>, this.value)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="40" autocomplete="off" maxlength="255"></td>
<td><input type="text" id="txtInvoiceComments<%=i%>" name="txtInvoiceComments<%=i%>" value="<%=rs("Comment")%>" onkeydown="return enterOnlyLine(txtLeadTimeNotes<%=i%>)" onChange="SaveRecord('[COMMENT]', <%=rs("LineSerial")%>, this.value)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="40" autocomplete="off" maxlength="200"></td>
<td><input type="text" id="txtLeadTimeNotes<%=i%>" name="txtLeadTimeNotes<%=i%>" value="<%=rs("LeadTimeNotes")%>" onkeydown="return enterOnlyLine(txtEarlyAlertNotes<%=i%>)" onChange="SaveRecord('[LeadTimeNotes]', <%=rs("LineSerial")%>, this.value)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="40" autocomplete="off" maxlength="100"></td>
<td><input type="text" id="txtEarlyAlertNotes<%=i%>" name="txtEarlyAlertNotes<%=i%>" value="<%=rs("EarlyAlertNotes")%>" onkeydown="return enterOnlyLine(txtChangeOrderNotes<%=i%>)" onChange="SaveRecord('[EarlyAlertNotes]', <%=rs("LineSerial")%>, this.value)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="40" autocomplete="off" maxlength="255"></td>
<td><input type="text" id="txtChangeOrderNotes<%=i%>" name="txtChangeOrderNotes<%=i%>" value="<%=rs("ChangeOrderNotes")%>" onkeydown="return enterOnlyLine(selVoid<%=i%>)" onChange="SaveRecord('[ChangeOrderNotes]', <%=rs("LineSerial")%>, this.value)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="40" autocomplete="off" maxlength="200"></td>
<td><select id="selVoid<%=i%>" name="selVoid<%=i%>" onkeydown="return enterFirstLine(txtVoidReason<%=i%>)" onChange="SaveRecord('[VoidLine]', <%=rs("LineSerial")%>, this.value), VoidAlert(this.value)" onBlur="ChangeColorBlur(this.id, <%=i%>)" onFocus="ChangeColor(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt">
<option value="1" <%if rs("VoidLine") = 1 then%> selected <%end if%>>Yes</option>
<option value="0" <%if rs("VoidLine") = 0 then%> selected <%end if%>>No</option>
</select>
</td>
<td><input type="text" id="txtVoidReason<%=i%>" name="txtVoidReason<%=i%>" value="<%=rs("VoidReason")%>" onkeydown="return enterOnlyLine(txtLineSerial<%=i%>)" onChange="SaveRecord('[VoidLineNotes]', <%=rs("LineSerial")%>, this.value)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="40" autocomplete="off" maxlength="100"></td>
<td><input type=button onClick="DuplicateLine(<%=i%>)" value="Duplicate Line (same order)" style="font-family: Verdana; font-size: 8pt" id="btnDuplicateLineSameOrder<%=i%>1" name="btnDuplicateLineSameOrder<%=i%>" onBlur="ChangeColorBlur(this.id, <%=i%>)" onFocus="ChangeColor(this.id, <%=i%>)" ></td>
<td><input type=button onClick="DuplicateLineDiffOrder(<%=i%>)" value="Duplicate Line (diff order)" style="font-family: Verdana; font-size: 8pt" id="btnDuplicateLineDiffOrder<%=i%>" name="btnDuplicateLineDiffOrder<%=i%>" onBlur="ChangeColorBlur(this.id, <%=i%>)" onFocus="ChangeColor(this.id, <%=i%>)" ></td>
<td><input type=button onClick="Go('order_que_detail-beta.asp?CustNum=<%=strCustNum%>&LineSerial=<%=rs("LineSerial")%>&OrderNum=<%=intOrderNum%>&AltShip=<%=strAltShip%>')" value="Queue Line" style="font-family: Verdana; font-size: 8pt" id="btnQueLine<%=i%>" name="btnQueLine<%=i%>" onBlur="ChangeColorBlur(this.id, <%=i%>)" onFocus="ChangeColor(this.id, <%=i%>)" ></td>
<td><input type="text" id="txtPartNumDuplicate<%=i%>" name="txtPartNumDuplicate<%=i%>" value="<%=rs("PartNum")%>" style="font-family: Verdana; font-size: 8pt" size="20" readonly><font face="verdana" size="1"><a href="inventorycard.asp?ID=<%=rs("ID")%>" target="_blank">card</a></font></td>
<td><input type="text" id="txtMfgNameDuplicate<%=i%>" name="txtMfgNameDuplicate<%=i%>" value="<%=rs("MfgName")%>" style="font-family: Verdana; font-size: 8pt" size="13" readonly></td>
<td><input type="text" id="txtCustItemDuplicate<%=i%>" name="txtCustItemDuplicate<%=i%>" value="<%=rs("CustItem")%>" style="font-family: Verdana; font-size: 8pt" size="10" readonly></td>
</tr>
<%
else
if cInt(intLineCount)+1 = i then
%>
<input type="hidden" id="hidNotifyAdminRecvdTime<%=i%>" name="hidNotifyAdminRecvdTime<%=i%>" value="<%=rs("NotifyAdminRecvdTime")%>">
<tr id="tr<%=i%>">
<td nowrap><font face="verdana" size="1"><a target="_blank" href="order_print_line.asp?OrderNum=<%=intOrderNum%>&SN=<%=rs("LineSerial")%>&CustNum=<%=strCustNum%>">Print Line Pick Ticket</a></font></td>
<td><input type="text" id="txtLineSerial<%=i%>" name="txtLineSerial<%=i%>" value="<%=rs("LineSerial")%>" onkeydown="return enterLastLine(txtPartID<%=i%>, txtLineSerial<%=i-1%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" readonly style="font-family: Verdana; font-size: 8pt" size="10" autocomplete="off"></td>
<td><input type="text" id="txtPartID<%=i%>" name="txtPartID<%=i%>" value="<%=rs("ID")%>" onkeydown="return enterLastLine(txtPartNum<%=i%>, txtPartID<%=i-1%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" readonly style="font-family: Verdana; font-size: 8pt" size="10" autocomplete="off"></td>
<td><input type="text" id="txtPartNum<%=i%>" name="txtPartNum<%=i%>" value="<%=rs("PartNum")%>" onkeyup="getPart(this.value, <%=i%>, <%=rs("LineSerial")%>)" onkeydown="return enterLastLine(txtMfgName<%=i%>, txtPartNum<%=i-1%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="20" autocomplete="off"><font face="verdana" size="1"><a href="inventorycard.asp?ID=<%=rs("ID")%>" target="_blank">card</a></font></td>
<td nowrap><div id="selPartNumAjax<%=i%>"></div autocomplete="off"></td>
<td><input type="text" id="txtMfgName<%=i%>" name="txtMfgName<%=i%>" value="<%=rs("MfgName")%>" onkeydown="return enterLastLine(txtSource<%=i%>, txtMfgName<%=i-1%>)" onFocus="ChangeColor(this.id, <%=i%>)" onChange="SaveRecord('[Mfg_Name]', <%=rs("LineSerial")%>, this.value)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="13" autocomplete="off"></td>
<td><input type="text" id="txtSource<%=i%>" name="txtSource<%=i%>" value="<%=rs("Source")%>" onkeydown="return enterLastLine(txtCustItem<%=i%>, txtSource<%=i-1%>)" onChange="SaveRecord('[SRCE]', <%=rs("LineSerial")%>, this.value)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="13" autocomplete="off"></td>
<td><input type="text" id="txtCustItem<%=i%>" name="txtCustItem<%=i%>" value="<%=rs("CustItem")%>" onkeydown="return enterLastLine(txtNonMasterMfgPart<%=i%>, txtCustItem<%=i-1%>, <%=i%>)" onChange="UpperCaseCI(this, <%=i%>, '[Cust Item #]', <%=rs("LineSerial")%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="10" autocomplete="off"></td>
<td><input type="text" id="txtNonMasterMfgPart<%=i%>" name="txtNonMasterMfgPart<%=i%>" onkeydown="return enterLastLine(txtReqShipDate<%=i%>, txtNonMasterMfgPart<%=i-1%>)" onChange="SaveRecord('[NON MASTER MFG PART#]', <%=rs("LineSerial")%>, this.value)" value="<%=rs("NonMasterMfgPart")%>" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="10" autocomplete="off"></td>
<td><input type="text" id="txtSeq<%=i%>" name="txtSeq<%=i%>" value="<%=rs("Seq")%>" onkeydown="return enterLastLine(selNCNR<%=i%>, txtSeq<%=i-1%>)" onChange="ValidateInteger('[SEQ]', <%=rs("LineSerial")%>, this.value, <%=i%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="5" autocomplete="off"></td>
<td nowrap>
<input type="text" id="txtReqShipDate<%=i%>" name="txtReqShipDate<%=i%>" value="<%=rs("ReqShipDate")%>" onkeydown="return enterLastLine(txtReqDueDate<%=i%>, txtReqShipDate<%=i-1%>)" onChange="CheckDate(this), CheckShipDate(<%=rs("LineSerial")%>, <%=i%>, '[REQ SHIP DATE]', this.value)" onFocus="ChangeColor(this.id, <%=i%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="10" autocomplete="off">
<a href="#" onclick="calendar(<%=rs("LineSerial")%>, <%=i%>, '[REQ SHIP DATE]', 'txtReqShipDate')"><img source="/images/cal.gif" src="images/cal.gif" border="0"></a>
</td>
<td nowrap>
<input type="text" id="txtReqDueDate<%=i%>" name="txtReqDueDate<%=i%>" value="<%=rs("ReqDueDate")%>" onkeydown="return enterLastLine(selOrBefore<%=i%>, txtReqDueDate<%=i-1%>)" onChange="CheckDate(this), CheckDueDate(<%=rs("LineSerial")%>, <%=i%>, '[REQ DUE DATE]', this.value)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="10" autocomplete="off">
<a href="#" onclick="calendar(<%=rs("LineSerial")%>, <%=i%>, '[REQ DUE DATE]', 'txtReqDueDate')"><img source="/images/cal.gif" src="images/cal.gif" border="0"></a>
</td>
<td><select id="selOrBefore<%=i%>" name="selOrBefore<%=i%>" onkeydown="return enterLastLine(txtPrice<%=i%>, selOrBefore<%=i-1%>)" onChange="SaveRecord('[OR BEFORE]', <%=rs("LineSerial")%>, this.value)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt">
<option value="1" <%if rs("OrBefore") = 1 then%> selected <%end if%>>Yes</option>
<option value="0" <%if rs("OrBefore") = 0 then%> selected <%end if%>>No</option>
</select>
</td>
<td><input type="text" id="txtPrice<%=i%>" name="txtPrice<%=i%>" value="<%=curPrice%>" onkeydown="return enterLastLine(txtQty<%=i%>, txtPrice<%=i-1%>)" onChange="CalcStuff('[PRICE]', <%=rs("LineSerial")%>, this.value, <%=i%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="5" autocomplete="off"></td>
<td><input type="text" id="txtQty<%=i%>" name="txtQty<%=i%>" value="<%=rs("Qty")%>" onkeydown="return enterLastLine(txtExt<%=i%>, txtQty<%=i-1%>)" onChange="CalcStuff('[QTY]', <%=rs("LineSerial")%>, this.value, <%=i%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="5" autocomplete="off"></td>
<td><input type="text" id="txtOH<%=i%>" name="txtOH<%=i%>" value="<%=intOH%>" readonly onkeydown="return enterLastLine(txtOO<%=i%>, txtOO<%=i-1%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="5" autocomplete="off"></td>
<td><input type="text" id="txtOO<%=i%>" name="txtOO<%=i%>" value="<%=intOO%>" readonly onkeydown="return enterLastLine(txtSchedOO<%=i%>, txtMfgName<%=i-1%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="5" autocomplete="off"></td>
<td><input type="text" id="txtExt<%=i%>" name="txtExt<%=i%>" value="<%=curExtPrice%>" onkeydown="return enterLastLine(txtTaxableTag<%=i%>, txtExt<%=i-1%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" readonly style="font-family: Verdana; font-size: 8pt" size="5" autocomplete="off"></td>
<td><input type="text" id="txtTaxableTag<%=i%>" name="txtTaxableTag<%=i%>" value="<%=rs("TaxableTag")%>" onkeydown="return enterLastLine(txtConvFactor<%=i%>, txtTaxableTag<%=i-1%>)" onChange="SaveRecord('[TAXABLE TAG]', <%=rs("LineSerial")%>, this.value)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="6" autocomplete="off"></td>
<td><input type="text" id="txtConvFactor<%=i%>" name="txtConvFactor<%=i%>" value="<%=intConvFactor%>" onkeydown="return enterLastLine(txtCost<%=i%>, txtConvFactor<%=i-1%>)" onChange="CalcStuff('[CONV FCTR]', <%=rs("LineSerial")%>, this.value, <%=i%>)" onFocus="ChangeColor(this.id, <%=i%>)" onBlur="ChangeColorBlur(this.id, <%=i%>)" style="font-family: Verdana; font-size: 8pt" size="6" autocomplete="off"></td>
<td><input type="text" id="txtCost<%=i%>" name="txtCost<%=i%>" value="<%=rs("Cost")%>" onkeydown="return enterLastLine(txtInvQty<%=i%>, txtCost<%=i-1%>)" onChange="CalcStuff('[COST]', <%=rs("LineS |