
var	MonthSt = new Array("มกราคม","กุมภาพันธ","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน", "กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม")

function GetBrowserID()
{
   if ( navigator.appName.substring(0,8) == "Netscape" ) { 
		// Netscape
		if ( navigator.appVersion.substring(0,1) == "4" ) {
			// Netscape 4.X
			return "NN4"
		} else if ( navigator.appVersion.substring(0,1) == "3" ) {
			// Netscape 3.X
			return "NN3"
		}
   } else if ( navigator.appName.substring(0,8) == "Microsof" ) {
		// IE
		if ( navigator.appVersion.substring(0,1) == "4" ) {
			//  IE 4
			return "IE4"
		} else if ( navigator.appVersion.substring(0,1) == "3" ) {
			// IE 3
			return "IE3"
		}
   }
}


function PrintLastUpdated( dd )
{
	var d = new Date (dd)
	var year = d.getYear();
	
	if (year==0) year=2000;
	if (year<1900) year+=1900;

	document.write( d.getDate() + " " + MonthSt[d.getMonth()] + " " + (year+543) )
	document.write("<BR>")
}

function PrintAboutAuthor(AuthorName)
{
   var FullName
	var Email
	var Profile

	Email = ""
   if ( AuthorName == "wimut" ) {
      FullName = "วิมุติ วสะหลาย" 
		Email = "wimut@hotmail.com"
		Profile = "กรรมการบริหารสมาคมดาราศาสตรไทย"
   } else if ( AuthorName == "nibondh" ) {
      FullName = "นิพนธ ทรายเพชร" 
		Email = ""
		Profile = "อุปนายกสมาคมดาราศาสตรไทย<BR> ภาคีสมาชิกราชบัณฑิตยสถาน สาขาดาราศาสตร<BR> ผูเชียวชาญดานดาราศาสตรของ สสวท. <BR>และอดีตผูอำนวยการทองฟาจำลองกรุงเทพ"
	} else if ( AuthorName == "visanu" ) {
      FullName = "วิษณุ เอือชูเกียรติ" 
		Email = "viseua@inet.co.th"
		Profile = "กรรมการบริหารสมาคมดาราศาสตรไทย"
	} else if ( AuthorName == "pornchai" ) {
      FullName = "พรชัย อมรศรีจิรทร" 
		Email = "fa2@geocities.com"
		Profile = "บรรณารักษและกรรมการบริหารสมาคมดาราศาสตรไทย"
	} else if ( AuthorName == "worachate" ) {
      FullName = "วรเชษฐ บุญปลอด"
		Email = "worachateb@hotmail.com"
		Profile = "วทบ. (ฟิสิกส) จุฬาฯ"
   } else if ( AuthorName == "puangroi" ) {
      FullName = "พวงรอย คำเรียง"
		Email = "pkhamriang@hotmail.com"
		Profile = ""
   } else if ( AuthorName == "khao" ) {
      FullName = "ผศ.ดร.ขาว เหมือนวงศ"
		Email = ""
		Profile = "รองคณบดีคณะวิทยาศาสตร ม.ขอนแกน กรรมการวิชาการสมาคมดาราศาสตรไทย"
	}
   document.write ( "<HR SIZE=1 align=left width=100%>" )
	document.write ( "*** เกียวกับผูเขียน ***<BR>")
   document.write ( "<B>" + FullName + "</B> " )
	if ( Email != "" ) 
      document.write ( "<I>(<A HREF='mailto:" + Email + "'>" + Email + "</A>)</I>" )
	document.write ( "<BR>" + Profile )
	document.write ( "<BR>" )
}

function PrintNavigationBar(RootPath)
{
	document.write ('<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="750"><TR><TD><MAP NAME="Map0">')
	document.write ('<AREA SHAPE="RECT" COORDS="0, 0, 62, 24" HREF="' + RootPath + 'index.html">')
	document.write ('<AREA SHAPE="RECT" COORDS="62, 0, 99, 24" HREF="' + RootPath + 'news/blletin.html">')
	document.write ('<AREA SHAPE="RECT" COORDS="100, 0, 152, 24" HREF="' + RootPath + 'skyevnt/index.html">')
	document.write ('<AREA SHAPE="RECT" COORDS="154, 0, 207, 24" HREF="' + RootPath + 'activity/index.html">')
	document.write ('<AREA SHAPE="RECT" COORDS="208, 0, 267, 24" HREF="' + RootPath + 'library/library.html">')
	document.write ('<AREA SHAPE="RECT" COORDS="385, 0, 445, 24" HREF="' + RootPath + 'gal/gallery.html">')
	document.write ('<AREA SHAPE="RECT" COORDS="447, 0, 500, 24" HREF="' + RootPath + 'report/index.html">')
	document.write ('<AREA SHAPE="RECT" COORDS="504, 0, 604, 24" HREF="' + RootPath + 'about/abouttas.html">')
	document.write ('<AREA SHAPE="RECT" COORDS="603, 0, 729, 24" HREF="' + RootPath + 'letters/letters.html">')
	document.write ('<AREA HREF="' + RootPath + 'library/faqs/index.html" COORDS="268, 0, 383, 23" SHAPE="rect"></MAP><IMG SRC="' + RootPath + 'img/topnav.gif" BORDER="0" WIDTH="750" HEIGHT="24" USEMAP="#Map0"></TD>')
	document.write ('</TR></table>')
}


