﻿function ForumOpenDialog(title, details) {
    var ni = document.body;
    var newdiv = document.createElement('div');

    newdiv.setAttribute('id', 'forum_dialog_background');
    newdiv.setAttribute((document.all ? 'className' : 'class'), 'TransparentGrayBackground');

    ni.appendChild(newdiv);


    var newdiv2 = document.createElement('div');

    newdiv2.setAttribute('id', 'forum_dialog_text');
    newdiv2.setAttribute((document.all ? 'className' : 'class'), 'forum_DialogAddNew');

    newdiv2.innerHTML = '<table width="100%" border="0" cellspacing="0" cellpadding="0">\
    <tr>\
      <td>\
        <table width="100%" border="0" cellspacing="0" cellpadding="0">\
          <tr>\
            <td class="title" width="2%"><img src="/images/left_menu/p.jpg" alt="" width="22" height="21" /></td>\
            <td class="title" width="78%" align="left"><b>' + title + '</b></td>\
            <td class="title" width="20%" align="right"><a href="javascript: ForumCloseDialog();"><img src="/images/bb_bookmarks/delete.gif" border="0" align="top" alt="X" /></a>&nbsp;</td>\
          </tr>\
        </table>\
      </td>\
    </tr>\
    <tr>\
      <td valign="top"><img src="/images/index_images/blank.gif" alt="" width="1" height="1" /></td>\
    </tr>\
    <tr>\
      <td height="8" valign="top" bgcolor="#CCDDEA"><img src="/images/index_images/blank.gif" alt="" width="5" height="8" /></td>\
    </tr>\
    <tr>\
      <td valign="top" class="dialog_table1">\
        ' + details + '\
      </td>\
    </tr>\
  </table>';

    ni.appendChild(newdiv2);

    PutBoxToMiddle(newdiv2, newdiv2.offsetWidth, newdiv2.offsetHeight);
}

function ForumCloseDialog() {
    var ni = document.body;
    var dialogBG = document.getElementById('forum_dialog_background');
    var dialogText = document.getElementById('forum_dialog_text');

    ni.removeChild(dialogBG);
    ni.removeChild(dialogText);
}

function addEvent(obj, type, fn) {
    if (obj.addEventListener)
        obj.addEventListener(type, fn, false);
    else if (obj.attachEvent) {
        obj["e" + type + fn] = fn;
        obj[type + fn] = function() { obj["e" + type + fn](window.event); }
        obj.attachEvent("on" + type, obj[type + fn]);
    }
}

function removeEvent(obj, type, fn) {
    if (obj.removeEventListener)
        obj.removeEventListener(type, fn, false);
    else if (obj.detachEvent) {
        obj.detachEvent("on" + type, obj[type + fn]);
        obj[type + fn] = null;
        obj["e" + type + fn] = null;
    }
}



function PutBoxToMiddle(box, width, height) {
  if(box != null) {
    
    var docBounds = GetClientBounds();
     
    box.style.position = "absolute";
    box.style.left = ((docBounds.width /2) - (width /2)) + "px";
    box.style.top = (((docBounds.height /2) + docBounds.y) - (height / 2)) + "px";
    
  }
}

function PutBoxToUpperMiddle(box, width, height) {
    if (box != null) {

        var docBounds = GetClientBounds();

        box.style.position = "absolute";
        box.style.left = ((docBounds.width / 2) - (width / 2)) + "px";
        box.style.top = "100px";

    }
}

function GetClientBounds() {
    /// <summary>
    /// Gets the width and height of the browser client window (excluding scrollbars)
    /// </summary>
    /// <returns type="Sys.UI.Bounds">
    /// Browser's client width and height
    /// </returns>
    var clientWidth;
    var clientHeight;
    switch(Sys.Browser.agent) {
        case Sys.Browser.InternetExplorer:
            clientWidth = document.documentElement.clientWidth;
            clientHeight = document.documentElement.clientHeight;
            break;
        case Sys.Browser.Safari:
            clientWidth = window.innerWidth;
            clientHeight = window.innerHeight;
            break;
        case Sys.Browser.Opera:
            clientWidth = Math.min(window.innerWidth, document.body.clientWidth);
            clientHeight = Math.min(window.innerHeight, document.body.clientHeight);
            break;
        default:  // Sys.Browser.Firefox, etc.
            clientWidth = Math.min(window.innerWidth, 
                document.documentElement.clientWidth);
            clientHeight = Math.min(window.innerHeight, 
                document.documentElement.clientHeight);
            break;
    }
    var scrollLeft = (document.documentElement.scrollLeft ? 
        document.documentElement.scrollLeft : document.body.scrollLeft);
    var scrollTop = (document.documentElement.scrollTop ? 
        document.documentElement.scrollTop : document.body.scrollTop);
    return new Sys.UI.Bounds(scrollLeft, scrollTop, clientWidth, clientHeight);
}


function create_those_new_windows() {
    /*if (document.getElementsByTagName) {*/
    var c = document.getElementsByTagName("a");
    for (var i = 0; i < c.length; ++i) {
        if (c[i].href && c[i].rel == "external")
            c[i].target = "_blank";
    }
    /*}*/
}

function hide_and_show_extra_quotes() {
    var r, haseq = 0;

    try {
        r = document.styleSheets[0].cssRules[0].styleSheet.cssRules;
    } catch (e) {
        r = document.styleSheets[0].imports[0].rules;
    }

    for (var i = 0; i < r.length; ++i) {
        if (r[i].selectorText.toLowerCase() == "blockquote blockquote") {
            var t = r[i].style.display;
            if (t == "block") {
                r[i].style.display = "none";
                r[i - 1].style.border = "1px solid gray";
                r[i - 1].style.backgroundColor = "#DDDDDD";
                r[i - 1].style.padding = "3px";
                haseq = 1;
            } else {
                r[i].style.display = "block";
                r[i - 1].style.borderStyle = "none";
                r[i - 1].style.backgroundColor = "transparent";
                r[i - 1].style.padding = "0px";
                haseq = 0;
            }
            break;
        }
    }
    // Set Cookie
    var today = new Date();
    document.cookie = "haseq=" + haseq + ";Expires=" + ((new Date(today.getFullYear() + 1, today.getMonth(), today.getDate())).toGMTString());
}

function Search() {
    var SearchType = $get('st').options[$get('st').selectedIndex].value;
    //var SearchYearObject = $get('SearchYear');

    var SearchingString = '';
    if (SearchType == 'tag') {
        SearchingString = 'tags.aspx?tagword=' + escape($get('searchstring').value);
    } else {
        SearchingString = 'search.aspx?st=' + SearchType + '&searchstring=' + escape($get('searchstring').value);
    }
    
    //if((SearchYearObject != null) || (SearchYearObject != undefined))
    //{
    //  SearchingString = SearchingString + '&searchyear=' + SearchYearObject.options[$get('SearchYear').selectedIndex].value;;
    //}

    window.location.href = SearchingString;
}

function onSearchDown(evt) {

    if ((evt.which && evt.which == 13) || (evt.keyCode && evt.keyCode == 13)) {
        Search();
        return false;
    }
    else {
        return true;
    }
}

function findPosX(obj) {
    var curleft = 0;
    if (obj.offsetParent)
        while (1) {
        curleft += obj.offsetLeft;
        if (!obj.offsetParent)
            break;
        obj = obj.offsetParent;
    }
    else if (obj.x)
        curleft += obj.x;
    return curleft;
}

function findPosY(obj) {
    var curtop = 0;
    if (obj.offsetParent)
        while (1) {
        curtop += obj.offsetTop;
        if (!obj.offsetParent)
            break;
        obj = obj.offsetParent;
    }
    else if (obj.y)
        curtop += obj.y;
    return curtop;
}

function fixActiveXProblem() {
    var theObjects = document.getElementsByTagName("object");

    for (var i = 0; i < theObjects.length; i++) {

        theObjects[i].outerHTML = theObjects[i].outerHTML;
    }
}


function MM_preloadImages() { //v3.0
    var d = document; if (d.images) {
        if (!d.MM_p) d.MM_p = new Array();
        var i, j = d.MM_p.length, a = MM_preloadImages.arguments; for (i = 0; i < a.length; i++)
            if (a[i].indexOf("#") != 0) { d.MM_p[j] = new Image; d.MM_p[j++].src = a[i]; } 
    }
}

function MM_swapImgRestore() { //v3.0
    var i, x, a = document.MM_sr; for (i = 0; a && i < a.length && (x = a[i]) && x.oSrc; i++) x.src = x.oSrc;
}

function MM_findObj(n, d) { //v4.01
    var p, i, x; if (!d) d = document; if ((p = n.indexOf("?")) > 0 && parent.frames.length) {
        d = parent.frames[n.substring(p + 1)].document; n = n.substring(0, p);
    }
    if (!(x = d[n]) && d.all) x = d.all[n]; for (i = 0; !x && i < d.forms.length; i++) x = d.forms[i][n];
    for (i = 0; !x && d.layers && i < d.layers.length; i++) x = MM_findObj(n, d.layers[i].document);
    if (!x && d.getElementById) x = d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
    var i, j = 0, x, a = MM_swapImage.arguments; document.MM_sr = new Array; for (i = 0; i < (a.length - 2); i += 3)
        if ((x = MM_findObj(a[i])) != null) { document.MM_sr[j++] = x; if (!x.oSrc) x.oSrc = x.src; x.src = a[i + 2]; }
}


var flag = false;
function DrawImage(ImgD) {
    var image = new Image();
    image.src = ImgD.src;
    if (image.width > 0 && image.height > 0) {
        flag = true;

        if (image.width > 300) {
            ImgD.width = 300;
            ImgD.height = (image.height * 300) / image.width;
        }
        else {
            ImgD.width = image.width;
            ImgD.height = image.height;
        }
        //ImgD.alt=image.width+"x"+image.height; 

    }
}




function CountE(parm) {
    var val = '!@$%^&*()_+-=`~\\\'";:/?.>,<1234567890qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM';

    var TotalNum = 0;

    if (parm == "") return TotalNum;
    
    for (i = 0; i < parm.length; i++) {
        if (val.indexOf(parm.charAt(i), 0) >= 0) TotalNum = TotalNum + 1;
    }
    return TotalNum;
}

var table = new Array(256);
table[0] = [65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 1, 0, 59374, 1983, 65535, 65535, 65535, 65535, ];
table[1] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[2] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11904, 512, 0, 0, ];
table[3] = [32, 0, 0, 0, 0, 0, 0, 0, 0, 65534, 1019, 65534, 1019, 0, 0, 0, ];
table[4] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[5] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[6] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[7] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[8] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[9] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[10] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[11] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[12] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[13] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[14] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[15] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[16] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[17] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[18] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[19] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[20] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[21] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[22] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[23] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[24] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[25] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[26] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[27] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[28] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[29] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[30] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[31] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[32] = [0, 13176, 244, 18476, 0, 0, 0, 0, 0, 0, 4096, 0, 0, 0, 0, 0, ];
table[33] = [552, 0, 0, 0, 0, 0, 1023, 0, 0, 975, 0, 0, 0, 0, 0, 0, ];
table[34] = [0, 50528, 20009, 48, 0, 4, 203, 0, 0, 544, 32, 32768, 0, 0, 0, 0, ];
table[35] = [128, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[36] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[37] = [4101, 4369, 4112, 4112, 0, 65535, 65535, 31, 65534, 56, 3, 12300, 51392, 0, 60, 0, ];
table[38] = [608, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[39] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[40] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[41] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[42] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[43] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[44] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[45] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[46] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[47] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[48] = [65295, 28727, 1022, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[49] = [65504, 65535, 1023, 0, 0, 0, 0, 0, 0, 65532, 0, 0, 0, 0, 0, 0, ];
table[50] = [0, 0, 65535, 65535, 15, 0, 0, 0, 65535, 65535, 65535, 1, 0, 0, 0, 0, ];
table[51] = [0, 0, 0, 0, 0, 0, 0, 0, 49152, 28672, 2, 0, 16400, 38, 0, 0, ];
table[52] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[53] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[54] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[55] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[56] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[57] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[58] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[59] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[60] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[61] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[62] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[63] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[64] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[65] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[66] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[67] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[68] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[69] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[70] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[71] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[72] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[73] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[74] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[75] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[76] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[77] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[78] = [65419, 50035, 26688, 6927, 59820, 62284, 512, 49160, 31068, 51774, 31094, 1608, 12255, 63472, 826, 43263, ];
table[79] = [61239, 9023, 45060, 64857, 62410, 65535, 56991, 65529, 44031, 32247, 49152, 36588, 61119, 65499, 53251, 17914, ];
table[80] = [64225, 57342, 49135, 4267, 65515, 64682, 61247, 9469, 30893, 32630, 61452, 60927, 53238, 11514, 63481, 60267, ];
table[81] = [8189, 38335, 26231, 49087, 15355, 65204, 31662, 4578, 42625, 16830, 5173, 29379, 32112, 29073, 3, 10091, ];
table[82] = [22475, 28879, 18226, 3567, 32474, 64628, 65030, 48564, 16287, 35786, 32329, 22528, 8847, 60396, 35420, 56763, ];
table[83] = [61280, 46823, 41999, 62099, 14267, 21662, 53323, 39855, 50196, 63444, 12464, 2580, 12040, 35024, 65406, 6447, ];
table[84] = [65498, 64263, 32753, 31723, 50671, 16, 39423, 65023, 31191, 1383, 65511, 64971, 50175, 16448, 28663, 48526, ];
table[85] = [57338, 1175, 62656, 23551, 60795, 53479, 1150, 63712, 65439, 46910, 32254, 34862, 65533, 48767, 33790, 63172, ];
table[86] = [62295, 47357, 54912, 61309, 22375, 18312, 65405, 50143, 61695, 14249, 32224, 28924, 16239, 60570, 19635, 34433, ];
table[87] = [16286, 56668, 63245, 18457, 65187, 7, 44886, 14591, 38925, 61368, 16445, 46944, 55502, 36917, 29375, 16383, ];
table[88] = [32759, 31249, 63419, 44031, 65280, 28606, 43324, 65138, 53231, 61723, 56171, 64522, 50150, 61310, 39836, 62992, ];
table[89] = [61512, 5876, 65205, 20866, 51121, 5563, 28295, 64479, 58431, 25549, 49663, 32382, 65003, 32095, 30587, 64766, ];
table[90] = [38411, 56298, 25129, 21480, 14303, 65007, 14069, 48513, 56344, 64701, 53988, 65535, 16343, 65504, 32623, 45048, ];
table[91] = [39854, 28377, 62971, 61717, 31145, 48635, 23100, 44463, 56250, 8108, 29180, 33657, 31991, 50015, 57343, 1383, ];
table[92] = [65434, 33895, 5428, 57227, 63987, 13171, 63421, 24090, 48960, 41023, 65535, 491, 57280, 53213, 29952, 43987, ];
table[93] = [63683, 61142, 17405, 47103, 24239, 16935, 39852, 63110, 10199, 63164, 63367, 13751, 43725, 57718, 18919, 58015, ];
table[94] = [21596, 45042, 11071, 25048, 64571, 48056, 65487, 31613, 49045, 7392, 32253, 17407, 24566, 65534, 54255, 50382, ];
table[95] = [36278, 44476, 25564, 4587, 57177, 9168, 48820, 62427, 8167, 56263, 65379, 64228, 45611, 25591, 60731, 44474, ];
table[96] = [65025, 32511, 65527, 700, 13055, 61245, 65532, 32773, 30715, 48373, 269, 65527, 65531, 48954, 87, 57343, ];
table[97] = [61307, 48509, 56200, 51412, 65523, 60796, 24046, 22271, 32269, 44127, 65430, 54655, 16366, 49472, 28665, 65511, ];
table[98] = [30619, 36471, 28351, 58461, 28623, 24351, 57471, 65247, 55259, 510, 65280, 64379, 65492, 8159, 63488, 65535, ];
table[99] = [64399, 123, 48896, 32604, 65535, 2035, 60320, 15847, 63423, 64471, 65471, 24579, 65533, 49133, 61371, 639, ];
table[100] = [65088, 56829, 65023, 58105, 26635, 64287, 64483, 45053, 40868, 63469, 31357, 63503, 61118, 4053, 47965, 64927, ];
table[101] = [62171, 15353, 65151, 60364, 34666, 29690, 38396, 40956, 4255, 64247, 56759, 48077, 63614, 60621, 62310, 15423, ];
table[102] = [65533, 45119, 59895, 1662, 38574, 65030, 54646, 24535, 16337, 41971, 52999, 28599, 40913, 32580, 31577, 54237, ];
table[103] = [44859, 43453, 32207, 65338, 64480, 63211, 46081, 65535, 31482, 47039, 49152, 4093, 65407, 65311, 65276, 38399, ];
table[104] = [0, 46556, 61283, 16190, 64383, 27, 59392, 64502, 40687, 47327, 65439, 63, 31696, 62975, 57307, 16383, ];
table[105] = [65008, 191, 33824, 48061, 57143, 65502, 65389, 4083, 24652, 24315, 65531, 64251, 65118, 537, 31220, 63966, ];
table[106] = [42999, 60410, 491, 65332, 60371, 61299, 45015, 49216, 29371, 56575, 61823, 12248, 47340, 65035, 56739, 7947, ];
table[107] = [36637, 18383, 45355, 65502, 32750, 55923, 9471, 52164, 63325, 52210, 60669, 46317, 49145, 19933, 39389, 64397, ];
table[108] = [47999, 44923, 56827, 51545, 64591, 64181, 45027, 27999, 65535, 16253, 30720, 65499, 46847, 32511, 64431, 559, ];
table[109] = [65435, 61383, 65445, 65535, 7, 50944, 63487, 65521, 32765, 447, 56320, 64956, 49141, 65535, 65407, 16127, ];
table[110] = [41, 48640, 63999, 65407, 28411, 64894, 52223, 926, 58112, 64477, 52479, 63199, 65535, 4479, 63488, 64502, ];
table[111] = [59375, 55100, 65263, 57327, 49163, 60863, 65247, 64973, 31733, 16637, 65535, 46943, 65503, 63792, 64479, 56471, ];
table[112] = [65267, 49138, 36831, 57279, 6015, 60902, 3967, 13651, 17532, 34686, 64018, 17851, 60896, 30622, 32791, 49113, ];
table[113] = [32341, 56969, 49519, 1095, 31454, 63325, 22527, 10501, 34551, 65173, 38835, 62255, 53247, 40821, 29175, 64279, ];
table[114] = [13550, 60953, 14284, 61281, 40918, 61260, 54927, 64477, 31603, 28143, 55294, 42033, 24191, 38871, 3931, 65496, ];
table[115] = [40323, 31694, 8940, 56575, 30269, 61319, 57319, 65005, 20479, 41212, 15223, 56316, 15853, 32732, 28585, 62832, ];
table[116] = [16379, 11328, 65407, 33919, 60503, 57015, 59036, 61999, 4075, 54709, 45035, 60903, 35887, 65520, 21375, 59632, ];
table[117] = [47517, 46591, 65382, 59279, 55681, 48656, 40060, 58305, 40145, 10035, 3260, 65389, 64695, 61367, 41183, 65535, ];
table[118] = [48907, 65147, 41983, 13631, 5068, 38861, 30263, 64295, 53206, 32364, 60496, 60721, 26492, 64540, 63226, 24511, ];
table[119] = [4026, 44591, 41901, 32766, 64752, 56948, 65519, 61952, 64447, 65186, 15791, 48383, 63124, 24505, 62381, 16271, ];
table[120] = [62060, 40991, 65519, 447, 30504, 28677, 65333, 55811, 54011, 51194, 16319, 23581, 65338, 60467, 47023, 65180, ];
table[121] = [21046, 31391, 49146, 59170, 40951, 64767, 12219, 46621, 60678, 7677, 32215, 61407, 60195, 61798, 32473, 3520, ];
table[122] = [15677, 57279, 51525, 47747, 32209, 40400, 31623, 53107, 40947, 50165, 57101, 50686, 3251, 33538, 59513, 44736, ];
table[123] = [51059, 28431, 64893, 2367, 65521, 343, 25339, 511, 64948, 15347, 45075, 17330, 24275, 65328, 4095, 60319, ];
table[124] = [65263, 61955, 16367, 64393, 14249, 40601, 57081, 42796, 14131, 49654, 33198, 65086, 23840, 62199, 54661, 27095, ];
table[125] = [65535, 65535, 56071, 65391, 50431, 55679, 61390, 48655, 61819, 61534, 63183, 65463, 24311, 61316, 55243, 3807, ];
table[126] = [65288, 64767, 60991, 65535, 5119, 55295, 44815, 32765, 48583, 8186, 0, 0, 0, 0, 0, 0, ];
table[127] = [0, 0, 0, 59200, 48440, 63795, 32747, 65261, 32744, 31862, 46071, 65519, 65199, 55479, 65391, 64447, ];
table[128] = [63739, 56311, 5970, 58105, 34248, 30023, 37008, 58351, 40692, 16237, 60974, 1334, 63420, 32755, 41083, 32575, ];
table[129] = [1383, 60256, 47806, 26113, 64728, 22591, 51959, 34783, 49101, 65440, 23501, 65215, 46845, 61351, 30703, 57244, ];
table[130] = [16311, 63607, 40231, 47100, 51893, 57327, 64346, 61878, 60473, 61215, 64447, 32763, 13, 56062, 48635, 20095, ];
table[131] = [13311, 23232, 49141, 40958, 65471, 95, 0, 65016, 65482, 28669, 53245, 40961, 57343, 64498, 57279, 65407, ];
table[132] = [65242, 2063, 47624, 49151, 31485, 61143, 64491, 26617, 57412, 65427, 57239, 40791, 65271, 2271, 57216, 65247, ];
table[133] = [65477, 63486, 65531, 26627, 26619, 27642, 32767, 24546, 65535, 65395, 34783, 59387, 60413, 63399, 49022, 61383, ];
table[134] = [7923, 57218, 30463, 57214, 31177, 55933, 61374, 7835, 31968, 30715, 34750, 65531, 7167, 65499, 16220, 20448, ];
table[135] = [32767, 24334, 30719, 56767, 61519, 65535, 65535, 4088, 41918, 64991, 64540, 65533, 8061, 64414, 48639, 57052, ];
table[136] = [16239, 47867, 57215, 64495, 32027, 12012, 44942, 62199, 31503, 53230, 7574, 30662, 65031, 65525, 55682, 32735, ];
table[137] = [24294, 51199, 65262, 31215, 39510, 65487, 65119, 56926, 35182, 63976, 62558, 59076, 1, 48764, 15231, 56799, ];
table[138] = [54685, 59887, 13484, 56915, 62835, 19447, 31567, 40703, 47358, 18286, 3579, 65349, 44029, 64510, 59863, 56831, ];
table[139] = [60919, 32767, 56829, 32491, 53223, 47103, 48617, 61329, 23925, 55164, 0, 0, 0, 0, 0, 0, ];
table[140] = [0, 0, 0, 64128, 65518, 46321, 49014, 12271, 46711, 30655, 40895, 65533, 38335, 63150, 30207, 32571, ];
table[141] = [42997, 2809, 0, 0, 0, 0, 64464, 11229, 63027, 39551, 64939, 55036, 63974, 49131, 57311, 62495, ];
table[142] = [42749, 65535, 19199, 62331, 32695, 65273, 46847, 7516, 32758, 58879, 8059, 9220, 48645, 63902, 56291, 57330, ];
table[143] = [28655, 65023, 54905, 52220, 60413, 61439, 31, 0, 0, 38912, 57672, 32791, 27252, 254, 28031, 65009, ];
table[144] = [47231, 65267, 57375, 61814, 61078, 31551, 60301, 65533, 44543, 52147, 34031, 57727, 19882, 49136, 48959, 65087, ];
table[145] = [60415, 65495, 65503, 53119, 65531, 34285, 55103, 1980, 44799, 65039, 64943, 30399, 64239, 14267, 32732, 41914, ];
table[146] = [46847, 22263, 24824, 59359, 65377, 19679, 45307, 65349, 32237, 16378, 8191, 6908, 65535, 58287, 51155, 57219, ];
table[147] = [64343, 61309, 61439, 4984, 65216, 24567, 13499, 24291, 63245, 61430, 55294, 191, 62877, 63479, 20958, 65504, ];
table[148] = [65225, 895, 24321, 49135, 40945, 24743, 61213, 61951, 15, 0, 0, 0, 0, 0, 0, 0, ];
table[149] = [0, 0, 0, 0, 0, 0, 0, 15488, 64333, 55583, 31546, 65251, 16361, 56447, 63, 0, ];
table[150] = [0, 20480, 62751, 48647, 64541, 63771, 48158, 29183, 28665, 23486, 22422, 39707, 32767, 65532, 34606, 45031, ];
table[151] = [60405, 62287, 57341, 59173, 3036, 23876, 22343, 64989, 60735, 30608, 32127, 35528, 64250, 62457, 8234, 61259, ];
table[152] = [62975, 31183, 43987, 2981, 63354, 64399, 36541, 31, 0, 0, 62208, 64846, 6743, 34816, 44716, 30292, ];
table[153] = [6061, 52735, 65458, 62511, 23466, 56319, 2, 0, 0, 29632, 63978, 11839, 64142, 48127, 30396, 65491, ];
table[154] = [61182, 32370, 32445, 59383, 63359, 52989, 4085, 0, 0, 0, 43264, 56219, 42183, 37247, 63690, 32462, ];
table[155] = [32122, 51175, 52157, 56494, 64894, 36726, 37331, 31987, 485, 19503, 60791, 41824, 2011, 24312, 7671, 8577, ];
table[156] = [27616, 12444, 15162, 64222, 32595, 50165, 25037, 1978, 0, 0, 0, 0, 0, 0, 9952, 48894, ];
table[157] = [1017, 60341, 58221, 59851, 39983, 49118, 40835, 43967, 8183, 65493, 47071, 57342, 64942, 65519, 64382, 61437, ];
table[158] = [43775, 28351, 0, 0, 0, 0, 0, 46624, 32717, 48798, 25267, 22769, 61709, 64891, 59889, 48893, ];
table[159] = [50883, 24429, 65341, 27135, 65487, 64500, 56571, 20471, 8192, 4407, 21, 0, 0, 0, 0, 0, ];
table[160] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[161] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[162] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[163] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[164] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[165] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[166] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[167] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[168] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[169] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[170] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[171] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[172] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[173] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[174] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[175] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[176] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[177] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[178] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[179] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[180] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[181] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[182] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[183] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[184] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[185] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[186] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[187] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[188] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[189] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[190] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[191] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[192] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[193] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[194] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[195] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[196] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[197] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[198] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[199] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[200] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[201] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[202] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[203] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[204] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[205] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[206] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[207] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[208] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[209] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[210] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[211] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[212] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[213] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[214] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[215] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[216] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[217] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[218] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[219] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[220] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[221] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[222] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[223] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[224] = [65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, ];
table[225] = [65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, ];
table[226] = [65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, ];
table[227] = [65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, ];
table[228] = [65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, ];
table[229] = [65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, ];
table[230] = [65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, ];
table[231] = [65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, ];
table[232] = [65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, ];
table[233] = [65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, ];
table[234] = [65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, ];
table[235] = [65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, ];
table[236] = [65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, ];
table[237] = [65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, ];
table[238] = [65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, ];
table[239] = [65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, ];
table[240] = [65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, ];
table[241] = [65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, ];
table[242] = [65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, ];
table[243] = [65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, ];
table[244] = [65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, ];
table[245] = [65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, ];
table[246] = [65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, ];
table[247] = [65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, 65535, ];
table[248] = [65535, 65535, 65535, 65535, 511, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 256, ];
table[249] = [65535, 65535, 61439, 65535, 65535, 65535, 65535, 65023, 65535, 65503, 65535, 65535, 65535, 65535, 65407, 65533, ];
table[250] = [16383, 32485, 15460, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[251] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[252] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[253] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[254] = [0, 0, 0, 65531, 65055, 65271, 3967, 0, 0, 0, 0, 0, 0, 0, 0, 0, ];
table[255] = [65534, 65535, 65535, 65535, 65535, 32767, 16, 0, 0, 0, 0, 0, 0, 0, 43, 0, ];

function b5jpcovt(unicode) {
    if ((unicode >= 63223) && (unicode <= 63391)) {
        if ((unicode >= 63223) && (unicode <= 63305)) unicode -= 50870; //ひらがな
        else if ((unicode >= 63306) && (unicode <= 63391)) unicode -= 50857; //カタカナ
    }
    else if (unicode == 63219) {
        unicode = 12540; //ー記號
    }
    return unicode;
}

function char_check(code) {
    var i = Math.floor(code / 256);
    var j = Math.floor(code / 16) % 16;
    var k = code % 16;
    var check = (table[i])[j];
    return ((check >> k) & 1 == 1);
}

function convert(content) {
    var newStr = "";
    for (var i = 0; i < content.length; i++) {
        var unicode = content.charCodeAt(i);
        unicode = b5jpcovt(unicode);
        newStr += (char_check(unicode)) ? content.charAt(i) : "&#" + unicode + ";";
    }
    return newStr;
}

function convert_text(source) {
    return convert(source);
}
