﻿function EnableControl(){var a=document.getElementsByName("answer");var b=true;for(var c=0;c<a.length;c++){if(a[c].checked){b=false;break}}document.getElementById("btnSubmit").disabled=b}function SubmitBC(){if(BCYet==false){var a=document.getElementsByName("answer");var b="";for(var c=0;c<a.length;c++){if(a[c].checked){if(b.length>0){b+=">"}b+="Respone"+(c+1)}}if(b.length!=0){BinhChonCallServer("Update|"+b)}else{alert("Bạn chưa chọn câu trả lời")}}else{alert("Bạn đã bình chọn rồi")}}function ShowKetQua(){BinhChonCallServer("ShowKetQua|")}function ShowBinhChon(){BinhChonCallServer("ShowBinhChon|")}function ReceiveServerDataBinhChon(a,b){var c=a.split("|");if(c[0]=="ShowBinhChon"){var d=document.getElementById("BinhChon");d.innerHTML=c[1]}else if(c[0]=="ShowKetQua"){var d=document.getElementById("BinhChon");d.innerHTML=c[1]}else if(c[0]=="Update"){BCYet=true;ShowKetQua()}}function printpreview(a){var b;var c='<HTML>\n<HEAD><link rel="stylesheet" type="text/css" href="/Style%20Library/thanhnien2010.css"/><meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\n';c+="\n</HEAD>\n<BODY>";c+="<DIV id=banin><img src=/PublishingImages/img-thethao/logo-print.gif></DIV>";c+="<div class=printpreview><a href=javascript:window.print();>";if(a=="vi-VN")c+="In bài";else c+="Print";c+="</a></div>";c+="<div class=pr-home>";c+="<div class=pr-preview>";c+=document.getElementById("print-news").innerHTML;c+="</div>";c+="</div>";c+="\n</BODY>\n</HTML>";b=window.open("","printNews");b.document.open();b.document.write(c);b.document.close()}function isTuoi(a){invalidChar="'\\/;:<>!#$%^&*+=~`,?ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var b=0;b<invalidChar.length;b++){badChar=invalidChar.charAt(b);if(a.indexOf(badChar)>-1){return false}}}function LoadOpenForm(a){window.open(a+window.location,"_blank")}function showUpload(){document.getElementById("create_Upload").style.display="block";renewImgCode()}function closeUpload(){document.getElementById("create_Upload").style.display="none";document.getElementById("kq").innerHTML="";document.getElementById("txtName").value="";document.getElementById("txtEmail").value="";document.getElementById("txtYKien").value="";document.getElementById("txtNhapMaXacNhan").value="";document.getElementById("td1").style.display="none";document.getElementById("td3").style.display="none";document.getElementById("td5").style.display="none";document.getElementById("td6").style.display="none"}function renewImgCode(){document.getElementById("imgCode").src="/_layouts/TNOTienIch/ImgCode.aspx?rnd="+Math.random()}function UploadPhanHoiBanDoc(){var a="";var b="";if(document.getElementById("txtName").value==""){document.getElementById("kq").style.display="block";document.getElementById("kq").innerHTML="<font color='red'>Vui lòng điền họ tên</font>";return false}else if(document.getElementById("txtEmail").value==""){document.getElementById("kq").style.display="block";document.getElementById("kq").innerHTML="<font color='red'>Vui lòng điền Email</font>";return false}else if(isEmail(document.getElementById("txtEmail").value)==false){document.getElementById("kq").style.display="block";document.getElementById("kq").innerHTML="<font color='red'>Email nhập không đúng định dạng</font>";return false}else if(document.getElementById("txtYKien").value==""){document.getElementById("kq").style.display="block";document.getElementById("kq").innerHTML="<font color='red'>Vui lòng nhập nội dung phản hồi</font>";return false}else if(document.getElementById("txtYKien").value.length>5e3){document.getElementById("kq").style.display="block";document.getElementById("kq").innerHTML="<font color='red'>Vui lòng nhập dưới 5000 ký tự</font>";return false}else if(document.getElementById("txtNhapMaXacNhan").value==""){document.getElementById("kq").style.display="block";document.getElementById("kq").innerHTML="<font color='red'>Vui lòng nhập mã xác nhận</font>";return false}else{document.getElementById("HiddenHoTen").value=document.getElementById("txtName").value;document.getElementById("hiddenEmail").value=document.getElementById("txtEmail").value;document.getElementById("hiddenNoiTung").value=document.getElementById("txtYKien").value;b+=document.getElementById("txtName").value;b+="~"+document.getElementById("txtEmail").value;b+="~"+document.getElementById("txtYKien").value;b+="~"+document.getElementById("txtNhapMaXacNhan").value;b+="~"+document.getElementById("txtAddress").value;a="PhanHoiBanDoc~"+b;CallServerDataItem(a,"");document.getElementById("kq").style.display="block";document.getElementById("kq").innerHTML="<font color='green'>Vui lòng đợi</font>"}}function CallSendmail(){arg="SendMailWrite~"+document.getElementById("HiddenHoTen").value+"~"+document.getElementById("hiddenEmail").value+"~"+document.getElementById("hiddenNoiTung").value;CallServerDataItem(arg,"")}function ReceiveServerDataItem(a,b){var c=a.split("~");switch(c[0]){case"PhanHoiBanDoc":document.getElementById("kq").style.display="block";document.getElementById("kq").innerHTML="<font color='green'>"+c[1]+"</font>";document.getElementById("txtName").value="";document.getElementById("txtAddress").value="";document.getElementById("txtEmail").value="";document.getElementById("txtYKien").value="";document.getElementById("txtNhapMaXacNhan").value="";CallSendmail();renewImgCode();break;case"SendMailWrite":break;case"Error":document.getElementById("kq").style.display="block";document.getElementById("kq").innerHTML="<font color='red'>"+c[1]+"</font>";break;default:document.getElementById("kq").style.display="block";document.getElementById("kq").innerHTML="<font color='red'>"+c[1]+"</font>";break}}function isEmail(a){invalidChar="'\\/;:<>! #$%^&*()+=~`-,?\"";for(var b=0;b<invalidChar.length;b++){badChar=invalidChar.charAt(b);if(a.indexOf(badChar)>-1){return false}}if(a.charAt(0)=="@"){return false}if(a.charAt(a.length-1)=="."){return false}atPos=a.indexOf("@",1);if(atPos==-1){return false}if(a.indexOf("@",atPos+1)!=-1){return false}if(a.indexOf("..")!=-1){return false}if(a.indexOf(".@")!=-1){return false}if(a.indexOf("@.")!=-1){return false}dotPos=a.indexOf(".",atPos);if(a.indexOf(".",atPos)==-1){return false}if(dotPos+2>a.length-1){return false}return true}function zme_click(){u=location.href;t=document.title;window.open("http://link.apps.zing.vn/share?u="+encodeURIComponent(u)+"&t="+encodeURIComponent(t),"sharer","toolbar=0,status=0,width=626,height=436");return false}function fbs_click(){u=location.href;t=document.title;window.open("http://www.facebook.com/sharer.php?u="+encodeURIComponent(u)+"&t="+encodeURIComponent(t),"sharer","toolbar=0,status=0,width=626,height=436");return false}function Getthemtin(){abc++;if(document.getElementById("divbatdau"+abc)){document.getElementById("divbatdau"+abc).style.display="block";if(!document.getElementById("divbatdau"+(abc+1))){document.getElementById("xemthem").style.display="none"}}}function printNews(a){var b='<HTML>\n<HEAD><meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\n';var c;if(document.getElementsByTagName!=null){var d=document.getElementsByTagName("head");if(d.length>0)b+=d[0].innerHTML}b+="\n</HEAD>\n<BODY>";b+="<DIV id=banin><img src=/PublishingImages/img-thethao/logo-print.gif></DIV>";b+="<div class=printpreview><a href=javascript:window.print();>";if(a=="vi-VN")b+="In bài";else b+="Print";b+="</a></div>";b+="<div class=pr-home>";b+="<div class=pr-preview>";var e=document.getElementById("print-news");if(e!=null){b+=e.innerHTML}else{alert("Could not find the print-news div");return}b+="</div>";b+="</div>";b+="\n</BODY>\n</HTML>";c=window.open("","printNews");c.document.open();c.document.write(b);c.document.close()}function GetRadWindow(){var a=null;if(window.radWindow){a=window.radWindow}else if(window.frameElement.radWindow){a=window.frameElement.radWindow}return a}function closeWindow(){GetRadWindow().Close()}function thongbao(){alert("ok")}function ChooseAll(a){for(i=0;i<a.split(/,/).length;i++){document.getElementById(a.split(/,/)[i]).value=""}}function ClickTabTheThao(a){if(a=="tab-tinthethaoAnh"){document.getElementById("tab-tinthethaoAnh").className="clas-tab-active";document.getElementById("tab-tinthethaoY").className="clas-tab";document.getElementById("tab-tinthethaoLiga").className="clas-tab";document.getElementById("tinthethao1nd").style.display="block";document.getElementById("tinthethao2nd").style.display="none";document.getElementById("tinthethao3nd").style.display="none"}else if(a=="tab-tinthethaoY"){document.getElementById("tab-tinthethaoY").className="clas-tab-active";document.getElementById("tab-tinthethaoAnh").className="clas-tab";document.getElementById("tab-tinthethaoLiga").className="clas-tab";document.getElementById("tinthethao1nd").style.display="none";document.getElementById("tinthethao2nd").style.display="block";document.getElementById("tinthethao3nd").style.display="none"}else if(a=="tab-tinthethaoLiga"){document.getElementById("tab-tinthethaoLiga").className="clas-tab-active";document.getElementById("tab-tinthethaoAnh").className="clas-tab";document.getElementById("tab-tinthethaoY").className="clas-tab";document.getElementById("tinthethao1nd").style.display="none";document.getElementById("tinthethao2nd").style.display="none";document.getElementById("tinthethao3nd").style.display="block"}}function ClickManyTab(a){if(a=="tab-tinmoi"){document.getElementById("tab-tinmoi").className="clas-tab-active";document.getElementById("tab-tindocnhieu").className="clas-tab";document.getElementById("tab-tinphanhoinhieu").className="clas-tab";document.getElementById("tinitem1nd").style.display="block";document.getElementById("tinitem2nd").style.display="none";document.getElementById("tinitem3nd").style.display="none"}else if(a=="tab-tindocnhieu"){document.getElementById("tab-tindocnhieu").className="clas-tab-active";document.getElementById("tab-tinmoi").className="clas-tab";document.getElementById("tab-tinphanhoinhieu").className="clas-tab";document.getElementById("tinitem1nd").style.display="none";document.getElementById("tinitem2nd").style.display="block";document.getElementById("tinitem3nd").style.display="none"}else if(a=="tab-tinphanhoinhieu"){document.getElementById("tab-tinphanhoinhieu").className="clas-tab-active";document.getElementById("tab-tinmoi").className="clas-tab";document.getElementById("tab-tindocnhieu").className="clas-tab";document.getElementById("tinitem1nd").style.display="none";document.getElementById("tinitem2nd").style.display="none";document.getElementById("tinitem3nd").style.display="block"}}function getposOffset(a,b){var c=b=="left"?a.offsetLeft:a.offsetTop;var d=a.offsetParent;while(d!=null){c=b=="left"?c+d.offsetLeft:c+d.offsetTop;d=d.offsetParent}return c}function showhide(a,b){dropmenuobj.style.left=dropmenuobj.style.top="-500px";if(b.type=="mouseover")a.visibility="visible"}function iecompattest(){return document.compatMode&&document.compatMode!="BackCompat"?document.documentElement:document.body}function clearbrowseredge(a,b){if(b=="rightedge"){edgeoffsetx=0;var c=ie&&!window.opera?iecompattest().scrollLeft+iecompattest().clientWidth-15:window.pageXOffset+window.innerWidth-15;dropmenuobj.contentmeasure=dropmenuobj.offsetWidth;if(c-dropmenuobj.x<dropmenuobj.contentmeasure)edgeoffsetx=dropmenuobj.contentmeasure-a.offsetWidth;if(dropmenuobj.x-edgeoffsetx+dropmenuobj.contentmeasure>c)edgeoffsetx=dropmenuobj.x-c+dropmenuobj.contentmeasure;return edgeoffsetx}else{edgeoffsety=0;var d=ie&&!window.opera?iecompattest().scrollTop:window.pageYOffset;var c=ie&&!window.opera?iecompattest().scrollTop+iecompattest().clientHeight-15:window.pageYOffset+window.innerHeight-18;dropmenuobj.contentmeasure=dropmenuobj.offsetHeight;if(c-dropmenuobj.y<dropmenuobj.contentmeasure)edgeoffsety=dropmenuobj.contentmeasure+a.offsetHeight+verticaloffset*2;return edgeoffsety}}function displayballoontip(a,b){if(window.event)event.cancelBubble=true;else if(b.stopPropagation)b.stopPropagation();if(typeof dropmenuobj!="undefined")dropmenuobj.style.visibility="hidden";clearhidemenu();dropmenuobj=document.getElementById(a.getAttribute("rel"));showhide(dropmenuobj.style,b);dropmenuobj.x=getposOffset(a,"left");dropmenuobj.y=getposOffset(a,"top")+verticaloffset;dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(a,"rightedge")+"px";dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(a,"bottomedge")+a.offsetHeight+"px";if(enablearrowhead)displaytiparrow()}function displaytiparrow(){tiparrow=document.getElementById("arrowhead");tiparrow.src=edgeoffsety!=0?arrowheadimg[0]:arrowheadimg[1];var a=dropmenuobj.filters&&dropmenuobj.filters[0]?dropmenuobj.filters[0].Strength-1:0;tiparrow.style.left=edgeoffsetx!=0?parseInt(dropmenuobj.style.left)+dropmenuobj.offsetWidth-tiparrow.offsetWidth-10+"px":parseInt(dropmenuobj.style.left)+5+"px";tiparrow.style.top=edgeoffsety!=0?parseInt(dropmenuobj.style.top)+dropmenuobj.offsetHeight-tiparrow.offsetHeight-a+arrowheadheight+"px":parseInt(dropmenuobj.style.top)-arrowheadheight+"px";tiparrow.style.visibility="visible"}function delayhidemenu(){delayhide=setTimeout("dropmenuobj.style.visibility='hidden'; dropmenuobj.style.left=0; if (enablearrowhead) tiparrow.style.visibility='hidden'",disappeardelay)}function clearhidemenu(){if(typeof delayhide!="undefined")clearTimeout(delayhide)}function reltoelement(a){var b=a.getAttribute("rel");return b!=null&&b!=""&&document.getElementById(b)!=null&&document.getElementById(b).className=="balloonstyle"?true:false}function initalizetooltip(){var a=document.getElementsByTagName("a");if(enablearrowhead){tiparrow=document.createElement("img");tiparrow.setAttribute("src",arrowheadimg[0]);tiparrow.setAttribute("id","arrowhead");document.body.appendChild(tiparrow)}for(var b=0;b<a.length;b++){if(reltoelement(a[b])){a[b].onmouseover=function(a){var b=window.event?window.event:a;displayballoontip(this,b)};a[b].onmouseout=delayhidemenu}}}function tabberObj(a){var b;this.div=null;this.classMain="tabber";this.classMainLive="tabberlive";this.classTab="tabbertab";this.classTabDefault="tabbertabdefault";this.classNav="tabbernav";this.classTabHide="tabbertabhide";this.classNavActive="tabberactive";this.titleElements=["h2","h3","h4","h5","h6"];this.titleElementsStripHTML=true;this.removeTitle=true;this.addLinkId=false;this.linkIdFormat="<tabberid>nav<tabnumberone>";for(b in a){this[b]=a[b]}this.REclassMain=new RegExp("\\b"+this.classMain+"\\b","gi");this.REclassMainLive=new RegExp("\\b"+this.classMainLive+"\\b","gi");this.REclassTab=new RegExp("\\b"+this.classTab+"\\b","gi");this.REclassTabDefault=new RegExp("\\b"+this.classTabDefault+"\\b","gi");this.REclassTabHide=new RegExp("\\b"+this.classTabHide+"\\b","gi");this.tabs=new Array;if(this.div){this.init(this.div);this.div=null}}function tabberAutomatic(a){var b,c,d;if(!a){a={}}b=new tabberObj(a);c=document.getElementsByTagName("div");for(d=0;d<c.length;d++){if(c[d].className&&c[d].className.match(b.REclassMain)){a.div=c[d];c[d].tabber=new tabberObj(a)}}return this}function tabberAutomaticOnLoad(a){var b;if(!a){a={}}b=window.onload;if(typeof window.onload!="function"){window.onload=function(){tabberAutomatic(a)}}else{window.onload=function(){b();tabberAutomatic(a)}}}function setTypingMode(a){keymodeid=a;if(theTyper)theTyper.keymode=initKeys();if(!supported&&!disabled){alert("Xin loi, trinh duyet web cua ban khong cho phep dung VietTyping.\n");disabled=true}}function telexingVietUC(a){a.vietarea=true;a.onkeyup=null;if(!supported)return;a.onkeypress=vietTyping;a.getCurrentWord=getCurrentWord;a.replaceWord=replaceWord;a.onkeydown=onKeyDown;a.onmousedown=onMouseDown;if(!theTyper)theTyper=new CVietString("")}function getEvt(a){if(typeof a=="string")return a.charCodeAt(0);return document.all?event.keyCode:a&&a.which?a.which:0}function onKeyDown(a){var b=getEvt(a);if(b==10||b==13){reset(1);linebreak=1}else if(b<49&&b!=16&&b!=20){linebreak=0;reset(b==32)}return true}function onMouseDown(a){reset(0);linebreak=0;return true}function vietTyping(a){var b=getEvt(a);theTyper.value=this.getCurrentWord();var c=b>32&&theTyper.typing(b);if(c)this.replaceWord(theTyper.value);return!c}function getCurrentWord(){if(!document.all)return this.value;var a=this.document.selection.createRange();if(a.text)return null;var b=-10;do{var c=a.duplicate();c.moveStart("character",b++)}while(c.parentElement()!=this&&b<0);this.curword=c.duplicate();return c.text}function replaceWord(a){if(!document.all){this.value=a;return}this.curword.text=a;this.curword.collapse(false)}function CVietString(a){this.value=a;this.keymode=initKeys();this.charmap=initCharMap();this.ctrlchar="-";this.changed=0;this.typing=typing;this.Compose=Compose;this.Correct=Correct;this.findCharToChange=findCharToChange;return this}function typing(a){this.changed=0;this.ctrlchar=String.fromCharCode(a);if(linebreak)linebreak=0;else this.keymode.getAction(this);this.Correct();return this.changed}function Compose(a){if(!this.value)return;var b=this.findCharToChange(a);if(!b||!b[0])return;var c;if(b[0]=="\\")c=[1,this.ctrlchar,1];else if(a>6)c=this.charmap.getAEOWD(b[0],a,b[3]);else c=this.charmap.getDau(b[0],a);if(!(this.changed=c[0]))return;this.value=this.value.replaceAt(b[1],c[1],b[2]);if(!c[2]){spellerror=1;this.value+=this.ctrlchar}}function Correct(){if(this.charmap.maxchrlen||!document.all)return 0;var a=this.value;if("nNcC".indexOf(this.ctrlchar)>=0)a+=this.ctrlchar;var b=/[^\x01-\x7f](hn|hc|gn)$/i.exec(a);if(b){this.value=a.substring(0,a.length-2)+b[1].charAt(1)+b[1].charAt(0);this.changed=1}else if(!this.changed)return 0;b=/\w([^\x01-\x7f])(\w*)([^\x01-\x7f])\S*$/.exec(this.value);if(!b)return 0;var c=this.charmap.isVowel(b[1]);var d=(c-1)%24+1,e=(c-d)/24;var f=this.charmap.isVowel(b[3]);if(!e||!f)return 0;var g=(f-1)%24+1,h=(f-g)/24;var i=this.charmap.charAt(d)+b[2]+this.charmap.charAt(e*24+g);this.value=this.value.replace(new RegExp(b[1]+b[2]+b[3],"g"),i)}function findCharToChange(a){var b=this.charmap.lastCharsOf(this.value,5);var c=0,d=b[0][0],e=0;if(d=="\\")return[d,this.value.length-1,1];if(a==15)while(!(e=this.charmap.isVD(d))){if(d<"A"||c>=4||!(d=b[++c][0]))return null}else while("cghmnptCGHMNPT".indexOf(d)>=0){if(d<"A"||c>=2||!(d=b[++c][0]))return null}d=b[0][0].toLowerCase();var f=b[1][0].toLowerCase();var g=b[2][0].toLowerCase();if(c==0&&a!=15){if((e=this.charmap.isVowel(b[1][0]))&&"uyoia".indexOf(d)>=0&&!this.charmap.isUO(f,d)&&!(f=="o"&&d=="a"||f=="u"&&d=="y")&&!(g=="q"&&f=="u"||g=="g"&&f=="i"))++c;if(d=="a"&&(a==9||a==7))c=0}d=b[c][0];if((c==0||e==0)&&a!=15)e=this.charmap.isVowel(d);if(!e)return null;var h=b[c][1],i=0;if(c>0&&(a==7||a==8||a==11)){i=this.charmap.isUO(b[c+1][0],d);if(i){e=i;h+=b[++c][1];i=1}}var j=this.value.length;for(var k=0;k<=c;k++)j-=b[k][1];return[e,j,h,i]}function CVietCharMap(){this.vietchars=null;this.length=149;this.chr_cache=new Array(20);this.ind_cache=new Array(20);this.cptr=0;this.caching=function(a,b){this.chr_cache[this.cptr]=a;this.ind_cache[this.cptr++]=b;this.cptr%=20};return this}function CVietUniCodeMap(){var a=new CVietCharMap;a.vietchars=new Array("UNICODE",97,226,259,101,234,105,111,244,417,117,432,121,65,194,258,69,202,73,79,212,416,85,431,89,225,7845,7855,233,7871,237,243,7889,7899,250,7913,253,193,7844,7854,201,7870,205,211,7888,7898,218,7912,221,224,7847,7857,232,7873,236,242,7891,7901,249,7915,7923,192,7846,7856,200,7872,204,210,7890,7900,217,7914,7922,7841,7853,7863,7865,7879,7883,7885,7897,7907,7909,7921,7925,7840,7852,7862,7864,7878,7882,7884,7896,7906,7908,7920,7924,7843,7849,7859,7867,7875,7881,7887,7893,7903,7911,7917,7927,7842,7848,7858,7866,7874,7880,7886,7892,7902,7910,7916,7926,227,7851,7861,7869,7877,297,245,7895,7905,361,7919,7929,195,7850,7860,7868,7876,296,213,7894,7904,360,7918,7928,100,273,68,272);return a}function CVietKeys(){this.getAction=function(a){var b=this.keys.indexOf(a.ctrlchar.toLowerCase());if(b>=0)a.Compose(this.actions[b])};return this}function CVKOff(){this.off=true;this.getAction=function(){};return this}function CTelexKeys(){var a=new CVietKeys;a.keys="sfjrxzaeowd";a.actions=[1,2,3,4,5,6,9,10,11,8,15];a.istelex=true;return a}function CVniKeys(){var a=new CVietKeys;a.keys="0123456789";a.actions=[6,1,2,4,5,3,7,8,8,15];return a}function CViqrKeys(){var a=new CVietKeys;a.keys="´/'’`.?~-^(*+d";a.actions=[1,1,1,1,2,3,4,5,6,7,8,8,8,15];return a}function CAllKeys(){var a=new CVietKeys;a.keys="sfjrxzaeowd0123456789´/'`.?~-^(*+d";a.actions=[1,2,3,4,5,6,9,10,11,8,15,6,1,2,4,5,3,7,8,8,15,1,1,1,2,3,4,5,6,7,8,8,8,15];a.istelex=true;return a}function ts(a,b){if(!document.getElementById)return;var c=document,d=null,e=startSz,f,g,h;e+=b;if(e<0)e=0;if(e>6)e=6;startSz=e;if(!(d=c.getElementById(a)))d=c.getElementsByTagName(a)[0];d.style.fontSize=szs[e];for(f=0;f<tgs.length;f++){h=d.getElementsByTagName(tgs[f]);for(g=0;g<h.length;g++)h[g].style.fontSize=szs[e]}}function rs(a){var b=document,c=null,d=startSz,e,f,g;d=2;if(d<0)d=0;if(d>6)d=6;startSz=d;if(!(c=b.getElementById(a)))c=b.getElementsByTagName(a)[0];c.style.fontSize=szs[d];for(e=0;e<tgs.length;e++){g=c.getElementsByTagName(tgs[e]);for(f=0;f<g.length;f++)g[f].style.fontSize=szs[d]}}function showToolTip(a,b){if(document.all)a=event;var c=document.getElementById("bubble_tooltip");var d=document.getElementById("bubble_tooltip_content");d.innerHTML=b;c.style.display="block";var e=Math.max(document.body.scrollTop,document.documentElement.scrollTop);if(navigator.userAgent.toLowerCase().indexOf("safari")>=0)e=0;var f=a.clientX-100;if(f<0)f=0;c.style.left=f+"px";c.style.top=a.clientY-c.offsetHeight-1+e+"px"}function hideToolTip(){document.getElementById("bubble_tooltip").style.display="none"}function ShowTime(){var a=new Date;var b=new Array("01","02","03","04","05","06","07","08","09","10","11","12");var c=new Array("Chủ nhật","Thứ hai","Thứ ba","Thứ tư","Thứ năm","Thứ sáu","Thứ bảy");var d=c[a.getDay()]+", ";var e=a.getYear();var f=a.getDate();if(e<1900)e+=1900;if(f<10)d+="0"+a.getDate()+"/"+b[a.getMonth()]+"/"+e;else d+=""+a.getDate()+"/"+b[a.getMonth()]+"/"+e;var g=a.getMinutes();if(g<10){g="0"+g}if(document.getElementById("timer")!=null){document.getElementById("timer").innerHTML=d+", "+a.getHours()+":"+g+":"+a.getSeconds()+" GMT+7"}}function tabberObj(a){var b;this.div=null;this.classMain="tabber";this.classMainLive="tabberlive";this.classTab="tabbertab";this.classTabDefault="tabbertabdefault";this.classNav="tabbernav";this.classTabHide="tabbertabhide";this.classNavActive="tabberactive";this.titleElements=["h2","h3","h4","h5","h6"];this.titleElementsStripHTML=true;this.removeTitle=true;this.addLinkId=false;this.linkIdFormat="<tabberid>nav<tabnumberone>";for(b in a){this[b]=a[b]}this.REclassMain=new RegExp("\\b"+this.classMain+"\\b","gi");this.REclassMainLive=new RegExp("\\b"+this.classMainLive+"\\b","gi");this.REclassTab=new RegExp("\\b"+this.classTab+"\\b","gi");this.REclassTabDefault=new RegExp("\\b"+this.classTabDefault+"\\b","gi");this.REclassTabHide=new RegExp("\\b"+this.classTabHide+"\\b","gi");this.tabs=new Array;if(this.div){this.init(this.div);this.div=null}}function tabberAutomatic(a){var b,c,d;if(!a){a={}}b=new tabberObj(a);c=document.getElementsByTagName("div");for(d=0;d<c.length;d++){if(c[d].className&&c[d].className.match(b.REclassMain)){a.div=c[d];c[d].tabber=new tabberObj(a)}}return this}function tabberAutomaticOnLoad(a){var b;if(!a){a={}}b=window.onload;if(typeof window.onload!="function"){window.onload=function(){tabberAutomatic(a)}}else{window.onload=function(){b();tabberAutomatic(a)}}}function WriteLog(){WebLog_CallServer(document.title+"|")}function WebLog_ReceiveServerData(a,b){}function timedCount(){if(!document.getElementById("divbai"+c))c=1;var a=document.getElementsByTagName("div");for(var b=0;b<a.length;b++){var d=/divbai/g;var e=d.test(a[b].id);if(e){document.getElementById(a[b].id).style.display="block";document.getElementById(a[b].id).className="bottom-tt-one"}}document.getElementById("divshowhot").innerHTML=document.getElementById("divbai"+c).innerHTML.replace("bottom-tt","hot-tt");document.getElementById("hot-des"+c).style.display="block";document.getElementById("divbai"+c).style.display="none";document.getElementById("divbai"+c).className="bottom-tt-one";c=c+1;t=setTimeout("timedCount()",5e3)}function doTimer(){if(!timer_is_on){timer_is_on=1;timedCount()}}function ShowFirstControl(){var a=0;CurrentOpacity=100;while(true){var b=document.getElementById("MauTin"+a);if(b!=null){if(a==0){b.style.display="block";currentControl=b;CurrentBody=document.getElementById("MauTinBody"+a);currentID=a}else{b.style.display="none"}a++}else{break}}}function EffectHideControl(){if(CurrentOpacity>0){CurrentOpacity-=5;if(browserName=="Microsoft Internet Explorer"){CurrentBody.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity="+CurrentOpacity+")"}else{CurrentBody.style.opacity=CurrentOpacity/100}var a=setTimeout("EffectHideControl()",EffectInterval)}else{currentControl.style.display="none";CurrentOpacity=0;if(browserName=="Microsoft Internet Explorer"){CurrentBody.style.filter="alpha(opacity="+CurrentOpacity+")"}else{CurrentBody.style.opacity=CurrentOpacity/100}currentControl=newControl;CurrentBody=newBody;currentControl.style.display="block";EffectShowControl()}}function EffectShowControl(){if(CurrentOpacity<90){CurrentOpacity+=10;if(browserName=="Microsoft Internet Explorer"){CurrentBody.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity="+CurrentOpacity+")"}else{CurrentBody.style.opacity=CurrentOpacity/100}var a=setTimeout("EffectShowControl()",EffectInterval)}else{CurrentOpacity=100;if(browserName=="Microsoft Internet Explorer"){CurrentBody.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity="+CurrentOpacity+")"}else{CurrentBody.style.opacity=CurrentOpacity/100}Busy=false;countSecond=0}}function ShowControl(a){if(Busy==false){currentID=a;Busy=true;newControl=document.getElementById("MauTin"+a);newBody=document.getElementById("MauTinBody"+a);EffectHideControl();countSecond=0}}function AutoScroll(){if(currentID>=0){var a=parseInt(currentID)+1;if(document.getElementById("MauTin"+a.toString())!=null){ShowControl(a)}else{if(document.getElementById("MauTin"+0)!=null){ShowControl(0)}}}}function SecondCounter(){countSecond+=1;if(countSecond==scrollTime){AutoScroll();countSecond=0}var a=setTimeout("SecondCounter()",1e3)}function SetScrollTime(a){scrollTime=a}var abc=0;var disappeardelay=250;var verticaloffset=0;var enablearrowhead=0;var arrowheadimg=["/_layouts/images/VuThao.TNO.TinTrangChu/arrowdown.gif","/_layouts/images/VuThao.TNO.TinTrangChu/arrowup.gif"];var arrowheadheight=11;var ie=document.all;var ns6=document.getElementById&&!document.all;verticaloffset=enablearrowhead?verticaloffset+arrowheadheight:verticaloffset;if(window.addEventListener)window.addEventListener("load",initalizetooltip,false);else if(window.attachEvent)window.attachEvent("onload",initalizetooltip);else if(document.getElementById)window.onload=initalizetooltip;tabberObj.prototype.init=function(a){var b,c,d,e,f=0,g,h,i,j,k;if(!document.getElementsByTagName){return false}if(a.id){this.id=a.id}this.tabs.length=0;b=a.childNodes;for(c=0;c<b.length;c++){if(b[c].className&&b[c].className.match(this.REclassTab)){e=new Object;e.div=b[c];this.tabs[this.tabs.length]=e;if(b[c].className.match(this.REclassTabDefault)){f=this.tabs.length-1}}}g=document.createElement("ul");g.className=this.classNav;for(c=0;c<this.tabs.length;c++){e=this.tabs[c];e.headingText=e.div.title;if(this.removeTitle){e.div.title=""}if(!e.headingText){for(d=0;d<this.titleElements.length;d++){k=e.div.getElementsByTagName(this.titleElements[d])[0];if(k){e.headingText=k.innerHTML;if(this.titleElementsStripHTML){e.headingText.replace(/<br>/gi," ");e.headingText=e.headingText.replace(/<[^>]+>/g,"")}break}}}if(!e.headingText){e.headingText=c+1}h=document.createElement("li");e.li=h;i=document.createElement("a");i.appendChild(document.createTextNode(e.headingText));i.href="javascript:void(null);";i.title=e.headingText;i.onclick=this.navClick;i.tabber=this;i.tabberIndex=c;if(this.addLinkId&&this.linkIdFormat){j=this.linkIdFormat;j=j.replace(/<tabberid>/gi,this.id);j=j.replace(/<tabnumberzero>/gi,c);j=j.replace(/<tabnumberone>/gi,c+1);j=j.replace(/<tabtitle>/gi,e.headingText.replace(/[^a-zA-Z0-9\-]/gi,""));i.id=j}h.appendChild(i);g.appendChild(h)}a.insertBefore(g,a.firstChild);a.className=a.className.replace(this.REclassMain,this.classMainLive);this.tabShow(f);if(typeof this.onLoad=="function"){this.onLoad({tabber:this})}return this};tabberObj.prototype.navClick=function(a){var b,c,d,e,f;c=this;if(!c.tabber){return false}d=c.tabber;e=c.tabberIndex;c.blur();if(typeof d.onClick=="function"){f={tabber:d,index:e,event:a};if(!a){f.event=window.event}b=d.onClick(f);if(b===false){return false}}d.tabShow(e);return false};tabberObj.prototype.tabHideAll=function(){var a;for(a=0;a<this.tabs.length;a++){this.tabHide(a)}};tabberObj.prototype.tabHide=function(a){var b;if(!this.tabs[a]){return false}b=this.tabs[a].div;if(!b.className.match(this.REclassTabHide)){b.className+=" "+this.classTabHide}this.navClearActive(a);return this};tabberObj.prototype.tabShow=function(a){var b;if(!this.tabs[a]){return false}this.tabHideAll();b=this.tabs[a].div;b.className=b.className.replace(this.REclassTabHide,"");this.navSetActive(a);if(typeof this.onTabDisplay=="function"){this.onTabDisplay({tabber:this,index:a})}return this};tabberObj.prototype.navSetActive=function(a){this.tabs[a].li.className=this.classNavActive;return this};tabberObj.prototype.navClearActive=function(a){this.tabs[a].li.className="";return this};if(typeof tabberOptions=="undefined"){tabberAutomaticOnLoad()}else{if(!tabberOptions["manualStartup"]){tabberAutomaticOnLoad(tabberOptions)}}var supported=document.all||document.getElementById;var disabled=false;var charmapid=1;var keymodeid=0;var linebreak=0;var theTyper=null;reset=function(){};initTyper=telexingVietUC;initCharMap=function(){return new CVietUniCodeMap};initKeys=function(){switch(keymodeid){case 1:return new CTelexKeys;case 2:return new CVniKeys;case 3:return new CViqrKeys;case 4:return new CAllKeys;default:return new CVKOff}};CVietCharMap.prototype.charAt=function(a){var b=this.vietchars[a];return b?String.fromCharCode(b):null};CVietCharMap.prototype.isVowel=function(a){var b=0;while(b<20&&a!=this.chr_cache[b])++b;if(b<20)return this.ind_cache[b];b=this.length-5;while(a!=this.charAt(b)&&b)--b;this.caching(a,b);return b};CVietCharMap.prototype.isVD=function(a){var b=this.length-5;while(a!=this.charAt(b)&&b<this.length)++b;return b<this.length?b:0};CVietCharMap.prototype.isUO=function(a,b){if(!a||!b)return 0;var c=this.isVowel(a);var d=(c-1)%12;if(d!=9&&d!=10)return 0;var e=this.isVowel(b);d=(e-1)%12;if(d!=6&&d!=7&&d!=8)return 0;return[c,e]};CVietCharMap.prototype.getDau=function(a,b){var c=a<25?0:1;var d=(a-1)%24+1;var e=b==6?0:b;if(b==6&&!c)return[0];var f=e*24+d;if(f==a)f=d;var g=this.charAt(f);if(!g)g=this.lowerCaseOf(0,f);return[1,g,f>24||b==6]};var map=[[7,7,7,8,8,8,9,10,11,15],[0,3,6,0,6,9,0,3,6,0],[1,4,7,2,8,10,1,4,7,1]];CVietCharMap.prototype.getAEOWD=function(a,b,c){var d=0,e=c?a[0]:a;var f=b==15?(e-1)%2:(e-1)%12;if(c){var g=a[1]-(a[1]-1)%12;if(b==7||b==11)d=this.charAt(e-f+9)+this.charAt(g+7);else if(b==8)d=this.charAt(e-f+10)+this.charAt(g+8);return[d!=0,d,1]}var h=-1,i=0,j=0;while(i==0&&++h<map[0].length){if(map[0][h]==b){if(map[1][h]==f)i=map[2][h]-f;else if(map[2][h]==f)i=map[1][h]-f}}if(i==0){if(b==7&&(f==2||f==8))i=-1;else if(b==9&&f==2||b==11&&f==8)i=-1;else if(b==8&&(f==1||f==7))i=1;j=1}else j=i>0;e+=i;var k=this.charAt(e);if(e<145)this.caching(k,e);if(!k)k=this.lowerCaseOf(0,e);return[i!=0,k,j]};CVietCharMap.prototype.lastCharsOf=function(a,b){if(!b)return[a.charAt(a.length-1),1];var c=new Array(b);for(var d=0;d<b;d++){c[d]=[a.charAt(a.length-d-1),1]}return c};String.prototype.replaceAt=function(a,b,c){return this.substring(0,a)+b+this.substring(a+c)};var tgs=new Array("div","td","tr","p","span","font");var szs=new Array("xx-small","x-small","small","medium","large","x-large","xx-large");var startSz=2;tabberObj.prototype.init=function(a){var b,c,d,e,f=0,g,h,i,j,k;if(!document.getElementsByTagName){return false}if(a.id){this.id=a.id}this.tabs.length=0;b=a.childNodes;for(c=0;c<b.length;c++){if(b[c].className&&b[c].className.match(this.REclassTab)){e=new Object;e.div=b[c];this.tabs[this.tabs.length]=e;if(b[c].className.match(this.REclassTabDefault)){f=this.tabs.length-1}}}g=document.createElement("ul");g.className=this.classNav;for(c=0;c<this.tabs.length;c++){e=this.tabs[c];e.headingText=e.div.title;if(this.removeTitle){e.div.title=""}if(!e.headingText){for(d=0;d<this.titleElements.length;d++){k=e.div.getElementsByTagName(this.titleElements[d])[0];if(k){e.headingText=k.innerHTML;if(this.titleElementsStripHTML){e.headingText.replace(/<br>/gi," ");e.headingText=e.headingText.replace(/<[^>]+>/g,"")}break}}}if(!e.headingText){e.headingText=c+1}h=document.createElement("li");e.li=h;i=document.createElement("a");i.appendChild(document.createTextNode(e.headingText));i.href="javascript:void(null);";i.title=e.headingText;i.onclick=this.navClick;i.tabber=this;i.tabberIndex=c;if(this.addLinkId&&this.linkIdFormat){j=this.linkIdFormat;j=j.replace(/<tabberid>/gi,this.id);j=j.replace(/<tabnumberzero>/gi,c);j=j.replace(/<tabnumberone>/gi,c+1);j=j.replace(/<tabtitle>/gi,e.headingText.replace(/[^a-zA-Z0-9\-]/gi,""));i.id=j}h.appendChild(i);g.appendChild(h)}a.insertBefore(g,a.firstChild);a.className=a.className.replace(this.REclassMain,this.classMainLive);this.tabShow(f);if(typeof this.onLoad=="function"){this.onLoad({tabber:this})}return this};tabberObj.prototype.navClick=function(a){var b,c,d,e,f;c=this;if(!c.tabber){return false}d=c.tabber;e=c.tabberIndex;c.blur();if(typeof d.onClick=="function"){f={tabber:d,index:e,event:a};if(!a){f.event=window.event}b=d.onClick(f);if(b===false){return false}}d.tabShow(e);return false};tabberObj.prototype.tabHideAll=function(){var a;for(a=0;a<this.tabs.length;a++){this.tabHide(a)}};tabberObj.prototype.tabHide=function(a){var b;if(!this.tabs[a]){return false}b=this.tabs[a].div;if(!b.className.match(this.REclassTabHide)){b.className+=" "+this.classTabHide}this.navClearActive(a);return this};tabberObj.prototype.tabShow=function(a){var b;if(!this.tabs[a]){return false}this.tabHideAll();b=this.tabs[a].div;b.className=b.className.replace(this.REclassTabHide,"");this.navSetActive(a);if(typeof this.onTabDisplay=="function"){this.onTabDisplay({tabber:this,index:a})}return this};tabberObj.prototype.navSetActive=function(a){this.tabs[a].li.className=this.classNavActive;return this};tabberObj.prototype.navClearActive=function(a){this.tabs[a].li.className="";return this};if(typeof tabberOptions=="undefined"){tabberAutomaticOnLoad()}else{if(!tabberOptions["manualStartup"]){tabberAutomaticOnLoad(tabberOptions)}}var c=1;var t;var timer_is_on=0;var BCYet=false;var browserName=navigator.appName;var CurrentOpacity;var EffectInterval=20;var currentControl;var CurrentBody;var newControl;var newBody;var currentID=-1;var scrollTime=8;var Busy=false;var countSecond=0
