var wn;
function opw(s) {
  var opf = 1;
  if (wn) {
    if (!wn.closed) {
      if (navigator.userAgent.indexOf('AppleWebKit/') > -1) {
        // Safari,Chrome
        window.blur();
      }
      wn.focus();
      opf = 0;
    }
  }
  if (opf == 1) {
    wn = window.open('/reg_event.cgi/9/' + encodeURIComponent(s), 'em_win', 'width=640,height=720,menubar=no,toolbar=no,scrollbars=yes,resizable=yes');
  }
}

