以下是重构后的代码,保持了原始的段落结构和逻辑:
```javascript
function openresult2(s) {
var Info = document.getElementById("textfield91").value;
if (Info == "") {
document.getElementById("textfield91").focus();
return;
}
check_search(Info, "&type=0");
}
function fireFoxHandler(evt) {
if (evt.keyCode == 13) {
var Info = document.getElementById("textfield91").value;
if (Info == "") {
document.getElementById("textfield91").focus();
return false;
}
check_search(Info, "&type=0");
}
}
function ieHandler(evt) {
if (evt.keyCode == 13) {
var Info = document.getElementById("textfield91").value;
if (Info == "") {
document.getElementById("textfield91").focus();
return false;
}
check_search(Info, "&type=0");
}
}
```