function isDefined(ckVar) {
var DEFINED_V=true;    
function handleError() {
DEFINED_V=false;
return true;
}
var oldOnError=window.onerror;
window.onerror=handleError;
try { 
eval(ckVar);
}catch (e) 
{ DEFINED_V=false;
}
window.onerror=oldOnError;
return DEFINED_V;
}
function typeCH(ch){
html="";
if(!isDefined("ch")) ch="w";
if(ch=="w") {
/*// TOPWORD WWW */

html += '<a target=_blank href="http://webindex.sanook.com/result-search.php?q=pai+hotel&sf=1">ที่พักปาย</a> ';
html += '<a target=_blank href="http://webindex.sanook.com/result-search.php?q=koh+tao&sf=1">เกาะเต่า</a> ';
html += '<a target=_blank href="http://webindex.sanook.com/result-search.php?q=%E0%B9%81%E0%B8%9E%E0%B8%84%E0%B9%80%E0%B8%81%E0%B8%88%E0%B8%97%E0%B8%B1%E0%B8%A7%E0%B8%A3%E0%B9%8C&sf=1">แพคเกจทัวร์</a> ';

/*// TOPWORD WWW */
}
if(ch=="t") {
/*// TOPWORD THAI */
html += '<a target=_blank href="http://search.sanook.com/search.php?q=%E0%B8%9A%E0%B9%89%E0%B8%B2%E0%B8%99%E0%B9%80%E0%B8%94%E0%B8%B5%E0%B9%88%E0%B8%A2%E0%B8%A7&si=t&sf=1">บ้านเดี่ยว</a> ';
html += '<a target=_blank href="http://search.sanook.com/search.php?q=%E0%B9%80%E0%B8%81%E0%B8%B2%E0%B8%B0%E0%B8%8A%E0%B9%89%E0%B8%B2%E0%B8%87&si=t&sf=1">เกาะช้าง</a> ';
html += '<a target=_blank href="http://search.sanook.com/search.php?q=%E0%B9%81%E0%B8%95%E0%B9%88%E0%B8%87%E0%B8%87%E0%B8%B2%E0%B8%99&si=t&sf=1">แต่งงาน</a> ';
/*// TOPWORD THAI */
html = "";
}
if(ch=="s") {
/*// TOPWORD SANOOK */
html += '<a target=_blank href="http://search.sanook.com/search.php?q=fengshui&si=s&sf=1">fengshui</a> ';
html += '<a target=_blank href="http://search.sanook.com/search.php?q=%E0%B8%81%E0%B8%A5%E0%B8%AD%E0%B8%99%E0%B8%A3%E0%B8%B1%E0%B8%81&si=s&sf=1">กลอนรัก</a> ';
html += '<a target=_blank href="http://search.sanook.com/search.php?q=%E0%B8%94%E0%B8%B9%E0%B8%94%E0%B8%A7%E0%B8%87&si=s&sf=1">ดูดวง</a> ';
/*// TOPWORD SANOOK */
}
if(ch=="n") {
/*// TOPWORD NEWS */
html += '<a target=_blank href="http://search.sanook.com/searchnews.php?q=%E0%B8%A7%E0%B8%B1%E0%B8%94%E0%B9%82%E0%B8%AA%E0%B8%98%E0%B8%A3&si=n&sf=1">วัดโสธร</a> ';
html += '<a target=_blank href="http://search.sanook.com/searchnews.php?q=%E0%B8%97%E0%B8%B1%E0%B8%81%E0%B8%A9%E0%B8%B4%E0%B8%93&si=n&sf=1">ทักษิณ</a> ';
html += '<a target=_blank href="http://search.sanook.com/searchnews.php?q=%E0%B8%99%E0%B8%B2%E0%B8%98%E0%B8%B2%E0%B8%99&si=n&sf=1">นาธาน</a> ';
/*// TOPWORD NEWS */
}
if(ch=="d") {
/*// TOPWORD DOCUMENT */
html += '<a target=_blank href="http://search.sanook.com/search.php?q=%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%97%E0%B8%94%E0%B8%AA%E0%B8%AD%E0%B8%9A&si=d&sf=1">แบบทดสอบ</a> ';
html += '<a target=_blank href="http://search.sanook.com/search.php?q=%E0%B9%81%E0%B8%9C%E0%B8%99%E0%B8%98%E0%B8%B8%E0%B8%A3%E0%B8%81%E0%B8%B4%E0%B8%88&si=d&sf=1">แผนธุรกิจ</a> ';
html += '<a target=_blank href="http://search.sanook.com/search.php?q=%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%9A%E0%B9%89%E0%B8%B2%E0%B8%99&si=d&sf=1">แบบบ้าน</a> ';
/*// TOPWORD DOCUMENT */
}
if(ch=="m") {
/*// TOPWORD MUSIC */
html += '<a target=_blank href="http://search.sanook.com/searchmusic/music/search.php?q=Nobody&si=m&sf=1">Nobody</a> ';
html += '<a target=_blank href="http://search.sanook.com/searchmusic/music/search.php?q=%E0%B9%82%E0%B8%94%E0%B8%A1&si=m&sf=1">โดม</a> ';
html += '<a target=_blank href="http://search.sanook.com/searchmusic/music/search.php?q=%E0%B8%95%E0%B8%B1%E0%B9%8A%E0%B8%81%E0%B9%81%E0%B8%95%E0%B8%99&si=m&sf=1">ตั๊กแตน</a> ';
/*// TOPWORD MUSIC */
}
if(ch=="c") {
/*// TOPWORD CLASSIFIED */
html += '<a target=_blank href="http://search.sanook.com/shopping/Search.php?sact=on&q=Dress&si=c&sf=1">Dress</a> ';
html += '<a target=_blank href="http://search.sanook.com/shopping/Search.php?sact=on&q=%E0%B8%84%E0%B8%A3%E0%B8%B5%E0%B8%A1%E0%B8%9A%E0%B8%B3%E0%B8%A3%E0%B8%B8%E0%B8%87%E0%B8%9C%E0%B8%B4%E0%B8%A7&si=c&sf=1">ครีมบำรุงผิว</a> ';
html += '<a target=_blank href="http://search.sanook.com/shopping/Search.php?sact=on&q=%E0%B8%99%E0%B8%B2%E0%B8%AC%E0%B8%B4%E0%B8%81%E0%B8%B2&si=c&sf=1">นาฬิกา</a> ';
/*// TOPWORD CLASSIFIED */
}
return html;
}
// document.write(html);