		function js_clock()
		{
			var clock_time = new Date();
			var clock_hours = clock_time.getHours();
			var clock_minutes = clock_time.getMinutes();
			var clock_seconds = clock_time.getSeconds();
			var clock_suffix = "AM";
			var tsec = "";
			switch(clock_hours)
			{
				case 1 :  thour = '๐๑';break;case 11 :  thour = '๑๑';break;case 21 :  thour = '๒๑';break;
				case 2 :  thour = '๐๒';break;case 12 :  thour = '๑๒';break;case 22 :  thour = '๒๒';break;
				case 3 :  thour = '๐๓';break;case 13 :  thour = '๑๓';break;case 23 :  thour = '๒๓';break;
				case 4 :  thour = '๐๔';break;case 14 :  thour = '๑๔';break;case 0 :  thour = '๐๐';break;
				case 5 :  thour = '๐๕';break;case 15 :  thour = '๑๕';break;
				case 6 :  thour = '๐๖';break;case 16:  thour = '๑๖';break;
				case 7 :  thour = '๐๗';break;case 17 :  thour = '๑๗';break;
				case 8 :  thour = '๐๘';break;case 18 :  thour = '๑๘';break;
				case 9 :  thour = '๐๙';break;case 19 :  thour = '๑๙';break;
				case 10 :  thour = '๑๐';break;case 20 :  thour = '๒๐';break;

			}
			switch(clock_minutes)
			{
				case 1 :  tmin = '๐๑';break;case 11 :  tmin = '๑๑';break;case 21 :  tmin = '๒๑';break;
				case 2 :  tmin = '๐๒';break;case 12 :  tmin = '๑๒';break;case 22 :  tmin = '๒๒';break;
				case 3 :  tmin = '๐๓';break;case 13 :  tmin = '๑๓';break;case 23 :  tmin = '๒๓';break;
				case 4 :  tmin = '๐๔';break;case 14 :  tmin = '๑๔';break;case 24 :  tmin = '๒๔';break;
				case 5 :  tmin = '๐๕';break;case 15 :  tmin = '๑๕';break;case 25 :  tmin = '๒๕';break;
				case 6 :  tmin = '๐๖';break;case 16:  tmin = '๑๖';break;case 26 :  tmin = '๒๖';break;
				case 7 :  tmin = '๐๗';break;case 17 :  tmin = '๑๗';break;case 27 :  tmin = '๒๗';break;
				case 8 :  tmin = '๐๘';break;case 18 :  tmin = '๑๘';break;case 28 :  tmin = '๒๘';break;
				case 9 :  tmin = '๐๙';break;case 19 :  tmin = '๑๙';break;case 29 :  tmin = '๒๙';break;
				case 10 :  tmin = '๑๐';break;case 20 :  tmin = '๒๐';break;case 30 :  tmin = '๓๐';break;

				case 31 :  tmin = '๓๑';break;case 41 :  tmin = '๔๑';break;case 51 :  tmin = '๕๑';break;
				case 32 :  tmin = '๓๒';break;case 42 :  tmin = '๔๒';break;case 52 :  tmin = '๕๒';break;
				case 33 :  tmin = '๓๓';break;case 43 :  tmin = '๔๓';break;case 53 :  tmin = '๕๓';break;
				case 34 :  tmin = '๓๔';break;case 44 :  tmin = '๔๔';break;case 54 :  tmin = '๕๔';break;
				case 35 :  tmin = '๓๕';break;case 45 :  tmin = '๔๕';break;case 55 :  tmin = '๕๕';break;
				case 36 :  tmin = '๓๖';break;case 46:   tmin = '๔๖';break;case 56 :   tmin = '๕๖';break;
				case 37 :  tmin = '๓๗';break;case 47 :  tmin = '๔๗';break;case 57 :  tmin = '๕๗';break;
				case 38 :  tmin = '๓๘';break;case 48 :  tmin = '๔๘';break;case 58 :  tmin = '๕๘';break;
				case 39 :  tmin = '๓๙';break;case 49 :  tmin = '๔๙';break;case 59 :  tmin = '๕๙';break;
				case 40 :  tmin = '๔๐';break;case 50 :  tmin = '๕๐';break;case 00 :  tmin = '๐๐';break;
			}
			switch(clock_seconds)
			{
				case 1 :  tsec = '๐๑';break;case 11 :  tsec = '๑๑';break;case 21 :  tsec = '๒๑';break;
				case 2 :  tsec = '๐๒';break;case 12 :  tsec = '๑๒';break;case 22 :  tsec = '๒๒';break;
				case 3 :  tsec = '๐๓';break;case 13 :  tsec = '๑๓';break;case 23 :  tsec = '๒๓';break;
				case 4 :  tsec = '๐๔';break;case 14 :  tsec = '๑๔';break;case 24 :  tsec = '๒๔';break;
				case 5 :  tsec = '๐๕';break;case 15 :  tsec = '๑๕';break;case 25 :  tsec = '๒๕';break;
				case 6 :  tsec = '๐๖';break;case 16:  tsec = '๑๖';break;case 26 :  tsec = '๒๖';break;
				case 7 :  tsec = '๐๗';break;case 17 :  tsec = '๑๗';break;case 27 :  tsec = '๒๗';break;
				case 8 :  tsec = '๐๘';break;case 18 :  tsec = '๑๘';break;case 28 :  tsec = '๒๘';break;
				case 9 :  tsec = '๐๙';break;case 19 :  tsec = '๑๙';break;case 29 :  tsec = '๒๙';break;
				case 10 :  tsec = '๑๐';break;case 20 :  tsec = '๒๐';break;case 30 :  tsec = '๓๐';break;

				case 31 :  tsec = '๓๑';break;case 41 :  tsec = '๔๑';break;case 51 :  tsec = '๕๑';break;
				case 32 :  tsec = '๓๒';break;case 42 :  tsec = '๔๒';break;case 52 :  tsec = '๕๒';break;
				case 33 :  tsec = '๓๓';break;case 43 :  tsec = '๔๓';break;case 53 :  tsec = '๕๓';break;
				case 34 :  tsec = '๓๔';break;case 44 :  tsec = '๔๔';break;case 54 :  tsec = '๕๔';break;
				case 35 :  tsec = '๓๕';break;case 45 :  tsec = '๔๕';break;case 55 :  tsec = '๕๕';break;
				case 36 :  tsec = '๓๖';break;case 46:   tsec = '๔๖';break;case 56 :   tsec = '๕๖';break;
				case 37 :  tsec = '๓๗';break;case 47 :  tsec = '๔๗';break;case 57 :  tsec = '๕๗';break;
				case 38 :  tsec = '๓๘';break;case 48 :  tsec = '๔๘';break;case 58 :  tsec = '๕๘';break;
				case 39 :  tsec = '๓๙';break;case 49 :  tsec = '๔๙';break;case 59 :  tsec = '๕๙';break;
				case 40 :  tsec = '๔๐';break;case 50 :  tsec = '๕๐';break;case 00 :  tsec = '๐๐';break;
			}
			switch(clock_hours)
			{
				case 1 :  tnhour = 'ตีหนึ่ง';break;case 11 :  tnhour = 'สิบเอ็ดโมง';break;case 21 :  tnhour = 'สามทุ่ม';break;
				case 2 :  tnhour = 'ตีสอง';break;case 12 :  tnhour = 'เที่ยง';break;case 22 :  tnhour = 'สี่ทุ่ม';break;
				case 3 :  tnhour = 'ตีสาม';break;case 13 :  tnhour = 'บ่ายโมง';break;case 23 :  tnhour = 'ห้าทุ่ม';break;
				case 4 :  tnhour = 'ตีสี่';break;case 14 :  tnhour = 'บ่ายสองโมง';break;case 0 :  tnhour = 'เที่ยงคืน';break;
				case 5 :  tnhour = 'ตีห้า';break;case 15 :  tnhour = 'บ่ายสามโมง';break;
				case 6 :  tnhour = 'หกโมงเช้า';break;case 16:  tnhour = 'สี่โมง';break;
				case 7 :  tnhour = 'เจ็ดโมง';break;case 17 :  tnhour = 'ห้าโมง';break;
				case 8 :  tnhour = 'แปดโมง';break;case 18 :  tnhour = 'หกโมง';break;
				case 9 :  tnhour = 'เก้าโมง';break;case 19 :  tnhour = 'หนึ่งทุ่ม';break;
				case 10 :  tnhour = 'สิบโมง';break;case 20 :  tnhour = 'สองทุ่ม';break;

			}

			switch(clock_minutes)
			{
				case 1 : tnmin = 'หนึ่งนาที';break;case 11 : tnmin = 'สิบเอ็ดนาที';break;case 21 : tnmin = 'ยี่สิบเอ็ดนาที';break;
				case 2 : tnmin = 'สองนาที';break;case 12 : tnmin = 'สิบสองนาที';break;case 22 : tnmin = 'ยี่สิบสองนาที';break;
				case 3 : tnmin = 'สามนาที';break;case 13 : tnmin = 'สิบสามนาที';break;case 23 : tnmin = 'ยี่สิบสามนาที';break;
				case 4 : tnmin = 'สี่นาที';break;case 14 : tnmin = 'สิบสี่นาที';break;case 24 : tnmin = 'ยี่สิบสี่นาที';break;
				case 5 : tnmin = 'ห้านาที';break;case 15 : tnmin = 'สิบห้านาที';break;case 25 : tnmin = 'ยี่สิบห้านาที';break;
				case 6 : tnmin = 'หกนาที';break;case 16: tnmin = 'สิบหกนาที';break;case 26 : tnmin = 'ยี่สิบหกนาที';break;
				case 7 : tnmin = 'เจ็ดนาที';break;case 17 : tnmin = 'สิบเจ็ดนาที';break;case 27 : tnmin = 'ยี่สิบเจ็ดนาที';break;
				case 8 : tnmin = 'แปดนาที';break;case 18 : tnmin = 'สิบแปดนาที';break;case 28 : tnmin = 'ยี่สิบแปดนาที';break;
				case 9 : tnmin = 'เก้านาที';break;case 19 : tnmin = 'สิบเก้านาที';break;case 29 : tnmin = 'ยี่สิบเก้านาที';break;
				case 10 : tnmin = 'สิบนาที';break;case 20 : tnmin = 'ยี่สิบนาที';break;case 30 : tnmin = 'ครึ่ง';break;

				case 31 : tnmin = 'สามสิบเอ็ดนาที';break;case 41 : tnmin = 'สี่สิบเอ็ดนาที';break;case 51 : tnmin = 'ห้าสิบเอ็ดนาที';break;
				case 32 : tnmin = 'สามสิบสองนาที';break;case 42 : tnmin = 'สี่สิบสองนาที';break;case 52 : tnmin = 'ห้าสิบสองนาที';break;
				case 33 : tnmin = 'สามสิบสามนาที';break;case 43 : tnmin = 'สี่สิบสามนาที';break;case 53 : tnmin = 'ห้าสิบสามนาที';break;
				case 34 : tnmin = 'สามสิบสี่นาที';break;case 44 : tnmin = 'สี่สิบสี่นาที';break;case 54 : tnmin = 'ห้าสิบสี่นาที';break;
				case 35 : tnmin = 'สามสิบห้านาที';break;case 45 : tnmin = 'สี่สิบห้านาที';break;case 55 : tnmin = 'ห้าสิบห้านาที';break;
				case 36 : tnmin = 'สามสิบหกนาที';break;case 46:  tnmin = 'สี่สิบหกนาที';break;case 56 :  tnmin = 'ห้าสิบหกนาที';break;
				case 37 : tnmin = 'สามสิบเจ็ดนาที';break;case 47 : tnmin = 'สี่สิบเจ็ดนาที';break;case 57 : tnmin = 'ห้าสิบเจ็ดนาที';break;
				case 38 : tnmin = 'สามสิบแปดนาที';break;case 48 : tnmin = 'สี่สิบแปดนาที';break;case 58 : tnmin = 'ห้าสิบแปดนาที';break;
				case 39 : tnmin = 'สามสิบเก้านาที';break;case 49 : tnmin = 'สี่สิบเก้านาที';break;case 59 : tnmin = 'ห้าสิบเก้านาที';break;
				case 40 : tnmin = 'สี่สิบนาที';break;case 50 : tnmin = 'ห้าสิบนาที';break;case 00 : tnmin = '';break;
			}
			if (clock_hours > 11)
			{
				clock_suffix = "PM";
				clock_hours = clock_hours - 12;
			}
			if (clock_hours == 0)
			{
				clock_hours = 12;
			}
			if (clock_hours < 10)
			{
				clock_hours = "0" + clock_hours;
			}
			if (clock_minutes < 10)
			{
				clock_minutes = "0" + clock_minutes;
			}
			if (clock_seconds < 10)
			{
				clock_seconds = "0" + clock_seconds;
			}
			var clock_div = document.getElementById('js_clock');
//			clock_div.innerHTML = clock_hours + ":" + clock_minutes + ":" + clock_seconds + " " + clock_suffix+ " เวลา "+thour+"."+tmin+"."+tsec+" น.";
			clock_div.innerHTML = " เวลา "+thour+"."+tmin+"."+tsec+" น. ("+tnhour+""+tnmin+")";
			setTimeout("js_clock()", 1000);
		}

//window.addEvent('domready', ่js_clock());
js_clock();
