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('', (fBrw) ? 'Đóng lại' : 'Dong lai', ''); 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('Hình ?nh'); newwin.document.writeln('', (fBrw) ? 'Đóng lại' : 'Dong lai', ''); newwin.document.writeln(''); } function CheckDate(dfield,datefield) { mdateval = datefield.value; if (mdateval != "") { mday = mdateval.substring(0, mdateval.indexOf("/")); mmonth = mdateval.substring(mdateval.indexOf("/") + 1, mdateval.lastIndexOf("/")) myear = mdateval.substring(mdateval.lastIndexOf("/") + 1, mdateval.length); mdate = new Date (mmonth + "/" + mday + "/" + myear); cday = mdate.getDate(); cmonth = mdate.getMonth() + 1; cyear = mdate.getYear(); if (parseFloat(mday) != parseFloat(cday) || parseFloat(mmonth) != parseFloat(cmonth)) { alert("Invalid Date !!!"); datefield.value = ""; datefield.focus(); return; } } } /*vietuni6x.js * by Tran Anh Tuan [tuan@physik.hu-berlin.de] - R. 14.09.01 * Copyright (c) 2001, 2002 AVYS e.V.. All Rights Reserved. * * Originally published and documented at http://www.avys.de/ * This code is free for you to use on non-commercial web sites. * If you want to, keep this copyright notice intact to make friends with AVYS :-) */ // interface for HTML // function VNOff() { return 0; } var disabled = false; var typingMode = VNOff; var theTyper = null; var checkerror = 0; var charmapID = 0; // for HTML-call: //------------------------ telexingVietUC = initTyper; function setCharMap(mapID) { charmapID = mapID; if(theTyper) theTyper.charmap = initCharMap(); } function setTypingMode(mode) { switch (mode) { case 1: typingMode = telexTyping; break; case 2: typingMode = vniTyping; break; case 3: typingMode = viqrTyping; break; default: typingMode = VNOff; } if (theTyper) theTyper.typingMode = typingMode; if (disabled) return true; if (!document.all && !document.getElementById) { alert("Xin loi, trinh duyet web cua ban khong cho phep dung VietTyping.\n"); disabled = true; } } function convertAtOnce(txtarea) { if(!txtarea) return; if(!theTyper) theTyper = new CVietString(""); txtarea.value = theTyper.doConvertIt(txtarea.value); } // end from HTML function initCharMap() { switch (charmapID) { case 0: return new CVietUniCodeMap(); case 1: return new CVietVniMap(); case 2: return new CVietTCVNMap(); case 3: return new CVietVISCIIMap(); case 4: return new CVietVPSMap(); default: return new CVietUniCodeMap(); } } function initTyper(txtarea,evt) { if(!txtarea) return; if (document.all) telexingVietUC = ieTyping; else if (document.getElementById) telexingVietUC = ns6Typing; else telexingVietUC = VNOff; } // event & typing: //------------------------ function fire (code) { if ((code > 40) || (code == 32)) return true; else return (checkerror = 0); } function ieTyping(txtarea,evt) { var c = event.keyCode; var curword= getCurrentWord(txtarea); if(!theTyper) theTyper = new CVietString(curword); else theTyper.setValue(curword); if (fire(c) && theTyper.typing()) replaceWord(txtarea, theTyper.value); if (c < 49 && theTyper.onEndWord()) replaceWord(txtarea, theTyper.value); } function ns6Typing(txtarea,evt) { var c = evt ? evt.keyCode: 50; if(!theTyper) theTyper = new CVietString(txtarea.value); else theTyper.setValue(txtarea.value); } /* FILE ARCHIVED ON 06:40:40 Jul 04, 2008 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 08:07:53 Apr 27, 2024. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): captures_list: 1.611 exclusion.robots: 0.204 exclusion.robots.policy: 0.185 cdx.remote: 0.157 esindex: 0.018 LoadShardBlock: 176.927 (3) PetaboxLoader3.resolve: 102.079 (4) PetaboxLoader3.datanode: 65.626 (4) load_resource: 56.498 */