<!--
document.body.style.scrollbarBaseColor='#7F9FDF'
document.body.style.scrollbarArrowColor='#7F9FDF'
document.body.style.scrollbarDarkShadowColor='#F4F8FF'
document.body.style.scrollbarFaceColor='#F4F8FF'
document.body.style.scrollbarHighlightColor='#F4F8FF'
document.body.style.scrollbarShadowColor='#7F9FDF'
document.body.style.scrollbar3dlightColor='#F4F8FF'

function chkbg(b){
bcolor="#000033";
b.style.backgroundColor = bcolor
}
function chkout(b){
color="#F5F5F5";
b.style.backgroundColor=color
}

function chkbg1(b){
bcolor="#000033";
b.style.backgroundColor = bcolor
}
function chkout1(b){
color="#F3FFF0";
b.style.backgroundColor=color
}

var max=0;
function textlist()
{
      max=textlist.arguments.length;
      for (i=0; i<max; i++)
      this[i]=textlist.arguments[i];
}
      tl=new textlist
	 ("www.tambol.com ศูนย์รวมข้อมูลของ องค์กรบริหารส่วนท้องถิ่นทั่วประเทศ ",
	"นำเสนอข้อมูลที่สำคัญเกี่ยวกับองค์การบริหารส่วนตำบล โฆษณาสินค้าสำหรับ อบต.",
	"กระดานถาม - ตอบ,ข่าวประชาสัมพันธ์,ร่วมแสดงความคิดเห็น, แจ้งประสงค์ขอย้าย");
      var x=0; pos=0;
      var l=tl[0].length;
function textticker()
{
        document.tickform.tickfield.value=tl[x].substring(0,pos)+"_";
        if(pos++==l) { pos=0; setTimeout("textticker()",2500); x++;
        if(x==max) x=0; l=tl[x].length; } else
        setTimeout("textticker()",50);
} 
	  
function openwin(name,winn) {
		window.open(name,winn,"scrollbars=1,width=480,height=300,top=100,left=150");
} 
function openwinobt(name,winn) {
		window.open(name,winn,"scrollbars=1,width=430,height=300,top=100,left=100");
} 
		
function calday(){
	window.setTimeout( "calday()", 1000 );
	var day=new Array("อาทิตย์","จันทร์","อังคาร","พุธ","พฤหัสบดี","ศุกร์","เสาร์");
	var month=new Array("มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม");
	var time =new Date();
	var sevenday=day[time.getDay()];
	var twelvemonth=month[time.getMonth()];
	var date=time.getDate();
	var year=(543+time.getYear());
	var hour = time.getHours()
	var minute = time.getMinutes()
	var second = time.getSeconds()
	if (minute < 10) {
		minute = "0" + minute
	}
	if (second < 10) {
		second = "0" + second
	}
	
	show = 'วัน'+sevenday+'ที่ ' +date+' '+twelvemonth+' '+ year+' เวลา ' + hour + ':' + minute + ':' + second
	window.status = show
}
//calday()
//-->