var f, hash; var load = function() { f = doc.frm; _ajaxList(true); hash = 1; }; win.onload = load; function _ajaxList(_flag) { if(xmlhttp && f && f.selectPage) { xmlhttp.onreadystatechange = function() { if(xmlhttp.readyState == 4 && xmlhttp.status == 200 && doc.getElementById("noticeList")) { doc.getElementById("noticeList").innerHTML = xmlhttp.responseText.toString(); if(_flag) _hideBlind(); _checkAjaxError(); } }; _showBlind(); if(doc.location.hash && doc.location.hash.toString().length > 1) f.selectPage.value = doc.location.hash.toString().replace("#", ""); doc.location.hash = ""; xmlhttp.open("POST", "ajax/notice_list", true); xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded"); xmlhttp.send("selectPage=" + f.selectPage.value); } else alert(noFormMsg); } function _view(_idx) { if(f && f.idx) { f.idx.value = _idx; _go("notice_view"); } else alert(noFormMsg); }