var sSiteChannel='';function check() { j_SearchKey = checkSpace(window.document.form_q.SearchKey.value) if(j_SearchKey == "") { alert('請輸入查詢關鍵字'); window.document.form_q.SearchKey.focus(); window.document.form_q.SearchKey.value=""; return false; } //document.form_q.submit(); } function check_law() { j_lawkey = checkSpace(window.document.form_q.lawkey.value) if(j_lawkey == "") { alert('請輸入查詢關鍵字'); window.document.form_q.lawkey.focus(); window.document.form_q.lawkey.value=""; return false; } //document.form_q.submit(); } function checkSpace(UI) { var str = UI; str = str.replace(/^[\s ]+/g, ""); // 刪除頭部的空白字串 str = str.replace(/[\s ]+$/g, ""); // 刪除尾部的空白字串 str = str.replace(/[\s ]+/g, " "); // 將其他空白字串帶換成單一半形空格 str = str.replace("%", ""); // 刪除% str = str.replace("|", ""); // 刪除% str = str.replace('"', ""); // 刪除% return str; } function SearchKeyword(sObj,sKey,sColor) { if (document.getElementById(sObj)!=null) { var sKeyNew=''; var objItem; sKeyNew=""+sKey+"" sVar=eval(sObj+'.length'); //check number if (typeof(sVar)=="undefined") { //alert(sObj+'.innerHTML='+sObj+'.innerHTML.replace(new RegExp(\''+sKey+'\', \'g\'),\''+sKeyNew+'\');'); objItem=eval(sObj); objItem.innerHTML=objItem.innerHTML.replace(new RegExp(sKey, 'g'),sKeyNew); } else { for (i=0;i -1) { clipboardData.setData( 'Text' ,url); //alert ( "該地址已復製到剪切板!" ); } else { prompt( "非IE內核瀏覽器,請複制以下地址:" ,url); } } function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } // Create BS5 Object var BS5={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(e){var t="";var n,r,i,s,o,u,a;var f=0;e=BS5._utf8_encode(e);while(f>2;o=(n&3)<<4|r>>4;u=(r&15)<<2|i>>6;a=i&63;if(isNaN(r)){u=a=64}else if(isNaN(i)){a=64}t=t+this._keyStr.charAt(s)+this._keyStr.charAt(o)+this._keyStr.charAt(u)+this._keyStr.charAt(a)}return t},decode:function(e){var t="";var n,r,i;var s,o,u,a;var f=0;e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(f>4;r=(o&15)<<4|u>>2;i=(u&3)<<6|a;t=t+String.fromCharCode(n);if(u!=64){t=t+String.fromCharCode(r)}if(a!=64){t=t+String.fromCharCode(i)}}t=BS5._utf8_decode(t);return t},_utf8_encode:function(e){e=e.replace(/\r\n/g,"\n");var t="";for(var n=0;n127&&r<2048){t+=String.fromCharCode(r>>6|192);t+=String.fromCharCode(r&63|128)}else{t+=String.fromCharCode(r>>12|224);t+=String.fromCharCode(r>>6&63|128);t+=String.fromCharCode(r&63|128)}}return t},_utf8_decode:function(e){var t="";var n=0;var r=c1=c2=0;while(n191&&r<224){c2=e.charCodeAt(n+1);t+=String.fromCharCode((r&31)<<6|c2&63);n+=2}else{c2=e.charCodeAt(n+1);c3=e.charCodeAt(n+2);t+=String.fromCharCode((r&15)<<12|(c2&63)<<6|c3&63);n+=3}}return t}}