function font_zoom(D){try{var C=document.getElementById("resize_news_text");var A;if(""==C.style.fontSize){C.style.fontSize="11pt"}A=C.style.fontSize.split("pt").toString();A=A.replace(/,/,"");if("in"==D){C.style.fontSize=(parseInt(A)+1).toString()+"pt"}else{C.style.fontSize=(parseInt(A)-1).toString()+"pt"}}catch(B){}}function print_news_catalog(){try{var C=document.getElementById("hide_pp_catalog").childNodes[0].data;var A=document.getElementById("hide_catalog").childNodes[0].data;document.write(C+"-&gt;"+A)}catch(B){}}function pdf_dl(){try{var A=document.getElementById("hide_news_url").childNodes[0].data;var B=document.getElementById("hide_news_pdf").childNodes[0].data;if(""==B){return}window.open("http://www.takungpao.com/news/pdf.asp?d="+A+"&f="+B)}catch(C){}}function pdf_dl_link(){try{var A=document.getElementById("hide_news_pdf").childNodes[0].data;if(""==A){return}document.write('&nbsp;<img src="http://www.takungpao.com/images/pdf2.gif" width="21" height="21" /><a href="javascript:void(0)" onclick="pdf_dl();" class="blue">\u0764j</a>')}catch(B){}}function popUpWin(A,K,E,D){try{var C=K,I=E,J,H;var B=screen.width,F=screen.height;if(D){J=(B-K)/2;H=(F-E)/2-100}return window.open(A,"","top="+H+",left="+J+",toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width="+(C)+",height="+(I))}catch(G){}}function getTkpNews(A){try{window.open(A)}catch(B){}}function setMail(D,B,A){try{if(null==A){A=D+"@"+B}document.write('<a href="mailto:'+D+"@"+B+'" class="eng">'+A+"</a>")}catch(C){}}function initSelectBox(C,A){try{document.forms[0][C].value=A}catch(B){}}function change_nav_msg(){try{}catch(A){}}function change_nav(){try{}catch(A){}}function sendnote(){var B=document.getElementById("hide_news_url").childNodes[0].data;var A="http://www.takungpao.com/note/note.asp?url="+B;window.open(A,"","top=0,left=0,width=600,height=500","true");return false}function filterNaN(B){var A=window.event?B.keyCode:B.which;var C=String.fromCharCode(A);reg=/\r/;if(reg.test(C)){document.forms[0].submit()}reg=/\D/;return !reg.test(C)}function xfilterNaNx(A){A.value=A.value.replace(/\D/g,"")};