}
document.onkeydown=testtab;
function doClick(obj)
{
var i=0;
var j=0;
var e = event.srcElement;
while (e.tagName != "TR")
{
e = e.parentElement;
}
curRow = e;
//objcurCel = obj.parentElement; //TDを取得する
//objcurRow = objcurCel.parentElement; //行を取得する
//カレント行色セット用 2004-2-26
curTable = curRow.parentElement; //テーブルを取得する
var rrowindex=e.rowIndex-0+1;
var uprowindex=e.rowIndex-1
i=1;
if(event.keyCode==9 & event.keyCode==2)
{
while(i < curTable.rows.length)
{
curTable.rows[i].backgroundColor ="#99ccff";
for (j=0;j<5;j++)
{
curTable.rows[i].cells[j].style.backgroundColor ="#ffffff";
}
i=i+1
}
//カレント行の色を変更する
for (j=0;j<5;j++)
{
//curRow.cells[j].style.backgroundColor ="#FFFF00";
curTable.rows[uprowindex].cells[j].style.backgroundColor ="#FFFF00";
}
if (event.keyCode==13)
{
var ACNT_KBN;
var BS_PL_KBN;
var ACNT_CD;
var ACNT_NAME;
var temp ;
temp = curRow.cells[7].innerText;
temp = temp + "^" + curRow.cells[8].innerText;
temp = temp + "^" + curRow.cells[5].innerText;
temp = temp + "^" + curRow.cells[6].innerText;
temp = temp + "^" + curRow.cells[9].innerText;
window.parent.returnValue=temp
window.close();
}
}
}
//カレント行色セット用 2004-2-26 end
}
function doColorClick(obj)
{
var i=0;
var j=0;
var e = event.srcElement;
while (e.tagName != "TR")
{
e = e.parentElement;
}
curRow = e;
//document.all.Update_txt.value = curRow.cells[6].innerText;
//document.all.Dispose_txt.value = curRow.cells[7].innerText;
//document.all.Act_txt.value = curRow.cells[8].innerText;
//カレント行色セット用 2004-2-26
curTable = curRow.parentElement; //テーブルを取得する
if (event.keyCode==13)
{
var ACNT_KBN;
var BS_PL_KBN;
var ACNT_CD;
var ACNT_NAME;
var temp ;
temp = curRow.cells[7].innerText;
temp = temp + "^" + curRow.cells[8].innerText;
temp = temp + "^" + curRow.cells[5].innerText;
temp = temp + "^" + curRow.cells[6].innerText;
temp = temp + "^" + curRow.cells[9].innerText;