//2009-07-07 
//图片参数和是否跳转都由参数定义
//2009-08-20增加jytx_m参数，定义了是否显示400小号

if (jytx_s == undefined)
{
    var jytx_s;
}

var keyStr = "ABCDEFGHIJKLMNOP" +"QRSTUVWXYZabcdef" +"ghijklmnopqrstuv" +"wxyz0123456789+/" +"=";
var openurl = "http://webcall.port400.com/"  //2008-04-24 单独定义呼叫页的域名
var showstr = "<img src=\""+jytx_img+"\" border=\"0\" onmouseover=\"this.style.cursor='hand'\" onclick=\"window.open('"+openurl+"/"+jytx_page+"?m="+jytx_m+"&f="+encode64(window.location)+"&t="+jytx_t+"&s="+jytx_s+"','prot400','scrollbars=no,width=600,height=450,toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no')\">";
document.write(showstr);

function encode64(input) 
        {
              input = escape(input);
              var output = "";
              var chr1, chr2, chr3 = "";
              var enc1, enc2, enc3, enc4 = "";
              var i = 0;
              do 
        {
                 chr1 = input.charCodeAt(i++);
                 chr2 = input.charCodeAt(i++);
                 chr3 = input.charCodeAt(i++);

                 enc1 = chr1 >> 2;
                 enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);
                 enc3 = ((chr2 & 15) << 2) | (chr3 >> 6);
                 enc4 = chr3 & 63;

                 if (isNaN(chr2)) 
        {
                    enc3 = enc4 = 64;
                  } 
        else if (isNaN(chr3)) 
        {
                    enc4 = 64;
                  }

                 output = output + keyStr.charAt(enc1) + keyStr.charAt(enc2) + keyStr.charAt(enc3) + 
                    keyStr.charAt(enc4);
                 chr1 = chr2 = chr3 = "";
                 enc1 = enc2 = enc3 = enc4 = "";
              } while (i < input.length);
              return output;
           }


