if (btnsearch == document.activeElement) {
var theEvent = window.event || e;
//获取窗体的输入
var code = theEvent.keyCode || theEvent.which;
//如果输入了回车
if (code == 13) {
$(".bred").trigger("click");//触发点击事件
}
var as = document.getElementById('DialogAddFeeItem_FeeTableTemplateBody').getElementsByTagName('tr');
if (code == 38) {
if (cur == -1) {
cur = as.length - 1;
}
else {
as[cur].className = ''; cur -= 1;
}
if (cur < 0) {
cur = as.length - 1;
}
as[cur].className = 'bred'
}
if (code == 40) {
if (cur == -1) {
cur = 0
}
else {
as[cur].className = '';
cur++;
}
if (cur >= as.length)
cur = 0;
as[cur].className = 'bred'
}
}