function fixHistory() //记住历史
{
document.all("theHistoryRecord").innerText=document.all("thedetailtableDIV").innerHTML;
}
function historyOnemore() //恢复历史
{
if (document.all("theHistoryRecord").innerText!=""){ document.all("thedetailtableDIV").innerHTML=document.all("theHistoryRecord").innerText;
}
}
function selectallcheckbox(obj) //全选或全不选
{
var tureorfalse=obj.checked;
var theDetail=tbdDistributions.rows;
for(var i=0;i<theDetail.length-1;i++)
{
theDetail[i].all("record_select").checked=tureorfalse;
}
}
function addOnecargoProcess() //增加明细
{
var theRecordSelects = document.all("record_select");
var theFirstSelectedCargo=0;
for(var i=0;i<theRecordSelects.length;i++)
{
if (theRecordSelects[i].checked==true) {theFirstSelectedCargo=i;break;}
}
var newRow = tbdDistributions.rows[theFirstSelectedCargo].cloneNode(true);
var desRow = tbdDistributions.rows[theFirstSelectedCargo+1];
desRow.parentElement.insertBefore(newRow,desRow );
}
function delOnecargoProcess() //删除货物明细
{
var theRecordSelects = document.all("record_select");
if (tbdDistributions.rows.length<3)
{
if (theRecordSelects.checked==true) alert("ぃ盢┮Τ玻珇戈常埃奔");
return false;
}
if (confirm("絋﹚琌匡拒タ絋盢璶埃硂ㄇ玻珇?")==false) return false;
for(var i=0;i<theRecordSelects.length;i++)
{
if ((theRecordSelects[i].checked==true)&&(tbdDistributions.rows.length>2))
{
tbdDistributions.deleteRow(i);
i=i-1;
}
}
}
</script>
<SCRIPT LANGUAGE="JavaScript">
<!--
function show() {
// document.form1.storehouse.value=document.form1.Store.value;
document.form1.target="customer";
document.form1.action="returnCustomerDetails.jsp";
document.form1.submit();
}
function filter(){
document.form1.action="new_special_quotation.jsp";
document.form1.submit();
}
//-->
</SCRIPT>
<link rel="stylesheet" href="css.css" type="text/css">
</head>
<body CLASS="mybody" SCROLL="no" onresize="window_onresize()" onload="window_onresize()" bgcolor="#ffffff" topmargin="0" >
<script src="js/menu.js"></script>
<script src="js/fade.js"></script>
<script src="menu.js"></script>
<div style="overflow:auto; width:100%" id="divMain" name="divMain">