var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); function ANP_checkInput(bid, mv, ormsg, ivmsg) { var el = document.getElementById(bid); var r = new RegExp("^\\s*(\\d+)\\s*$"); if (r.test(el.value)) { if (RegExp.$1 < 1 || RegExp.$1 > mv) { alert(ormsg); el.focus(); el.select(); return false; } return true; } alert(ivmsg); el.focus(); el.select(); return false; } function ANP_keydown(e, btn) { if (e.which === 13 || e.keyCode === 13) { document.getElementById(btn).click(); if (e.preventDefault) { e.preventDefault(); } else { event.returnValue = false; } } } function ANP_keyup(box) { var be = document.getElementById(box); be.value = be.value.replace(/\D/g, ''); } function ANP_goToPage(e, p, u, t, c, r) { var el = document.getElementById(e); if (el != null) { var pi; if (el.tagName == "SELECT") { pi = el.options[el.selectedIndex].value; } else { pi = el.value; } if (r) { pi = c - pi + 1; } u = u.replace("{" + p + "}", pi); if (t) { window.open(u, t) } else { location.href = u } } } }