var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); var fBrw=(navigator.userAgent.indexOf('MSIE')!= -1 && navigator.userAgent.indexOf('Windows')!= -1); function showdateVN() { // variables declaration var dt=new Date(); var strMonth = new Array("tháng 1","tháng 2","tháng 3","tháng 4","tháng 5","tháng 6","tháng 7","tháng 8","tháng 9","tháng 10","tháng 11","tháng 12"); var strDay = new Array("Chủ Nhật","Thứ Hai","Thứ Ba","Thứ Tư","Thứ Năm","Thứ Sáu","Thứ Bảy"); var date=strDay[dt.getDay()] + ", "; var years= dt.getYear(); if (years<1900) years+= 1900; return (date += dt.getDate()+" "+strMonth[dt.getMonth()] + ", "+years); } function Esc(inval, utf) { inval = escape(inval); if (utf == 0) { return inval; } outval = ""; while (inval.length > 0) { p = inval.indexOf("%"); if (p >= 0) { if (inval.charAt(p + 1) == "u") { outval = outval + inval.substring(0, p) + JStoURLEncode(eval("0x" + inval.substring(p + 2, p + 6))); inval = inval.substring(p +6, inval.length); } else { outval = outval + inval.substring(0, p) + JStoURLEncode(eval("0x" + inval.substring(p + 1, p + 3))); inval = inval.substring(p + 3, inval.length); } } else { outval = outval + inval; inval = ""; } } return outval; } function JStoURLEncode(c) { if (c < 0x80) { return Hexamize(c); } else if (c < 0x800) { return Hexamize(0xC0 | c>>6) + Hexamize(0x80 | c & 0x3F); } else if (c < 0x10000) { return Hexamize(0xE0 | c>>12) + Hexamize(0x80 | c>>6 & 0x3F) + Hexamize(0x80 | c & 0x3F); } else if (c < 0x200000) { return Hexamize(0xF0 | c>>18) + Hexamize(0x80 | c>>12 & 0x3F) + Hexamize(0x80 | c>>6 & 0x3F) + Hexamize(0x80 | c & 0x3F); } else { return '?' // Invalid character } } function Hexamize(n) { hexstr = "0123456789ABCDEF"; return "%" + hexstr.charAt(parseInt(n/16)) + hexstr.charAt(n%16); } function convertUTF(url, Des, ID, Title){ var docDes, docID, docTitle, newURL; docDes = Esc(Des,1); docTitle = Esc(Title,1); newURL = url + '/view_document?docDes=' + docDes + '&docID=' + ID + '&docTitle=' + docTitle; // alert(newURL); windowopen(newURL); } function windowopen(url, vHeight, vWidth){ if (url == '') { return; } vHeight = 130; vWidth = 500; winDef = 'status=no,resizable=no,scrollbars=yes,toolbar=no,location=no,fullscreen=no,titlebar=yes,height='.concat(vHeight).concat(',').concat('width=').concat(vWidth).concat(','); winDef = winDef.concat('top=').concat((screen.height - vHeight)/2).concat(','); winDef = winDef.concat('left=').concat((screen.width - vWidth)/2); newwin = open(url, '_blank', winDef); } function openImage(url, vHeight, vWidth) { if (url == '') { return; } winDef = 'status=no,resizable=yes,scrollbars=yes,toolbar=no,location=no,fullscreen=no,titlebar=yes,height='.concat(vHeight).concat(',').concat('width=').concat(vWidth).concat(','); winDef = winDef.concat('top=').concat((screen.height - vHeight)/2).concat(','); winDef = winDef.concat('left=').concat((screen.width - vWidth)/2); newwin = open('', '_blank', winDef); newwin.document.writeln('
'); newwin.document.writeln(''); newwin.document.writeln(''); } function openImage1(url, vHeight, vWidth) { if (url == '') { return; } winDef = 'status=no,resizable=no,scrollbars=no,toolbar=no,location=no,fullscreen=no,titlebar=yes,height='.concat(vHeight).concat(',').concat('width=').concat(vWidth).concat(','); winDef = winDef.concat('top=').concat((screen.height - vHeight)/2).concat(','); winDef = winDef.concat('left=').concat((screen.width - vWidth)/2); newwin = open('', '_blank', winDef); newwin.document.writeln('