﻿/* 開新視窗 */
function openWin(strUrl, strWinName, strFeatures) {
   if (strWinName == null) {
      strWinName = "popupWindow";
   }
   if (strFeatures == null) {
      strFeatures = "";
   }

   var openWinId = window.open(strUrl, strWinName, strFeatures, true);
   if (openWinId != null) {
      try {
         openWinId.focus();
      } catch (e) {
         // Do Nothing...
      }
   }
}

function go(p) {
   location.href = p;
}

function hideMsg(p) {
   document.getElementById(p).style.display = "none";
}

function setLang(p) {
   document.cookie = "sysLang=" + escape(p) + ";path=/;expires=Wed, 01 Jan 2020 23:59:59 GMT";
}

function check() {
   if (document.getElementById("bkCode").value.replace(" ", "") == "") {
      document.getElementById("errMsg").innerText = errMsg;
      return false;
   }
}
