//--年號---//
//--農曆部份年號---//
function nianHao(y,m,ak){//農曆y年m月,ak為控制開關ak=1只顯示朝代、年號;ak=0或空顯示出朝代帝號、皇帝姓名、年號
var nh=new Array(//各朝代或分裂時期其中之一政權的年號,數字後無漢字的表示以後不顯示
"-7800000000",
"-2697000000,黃帝,,",
"-2069000000,[夏]禹,(姒文命),",
"-2024000000,[夏]啟,(姒啟),",
"-2014000000,[夏],,太康",
"-1986000000,[夏],,仲康",
"-1972000000,[夏],,相",
"-1944000000,[夏],,有窮政權 後羿",
"-1942000000,[夏],,有窮政權 寒浞",
"-1904000000,[夏],,少康",
"-1883000000,[夏],,杼",
"-1866000000,[夏],,槐",
"-1840000000,[夏],,芒",
"-1822000000,[夏],,泄",
"-1806000000,[夏],,不降",
"-1747000000,[夏],,扃",
"-1726000000,[夏],,廑",
"-1705000000,[夏],,孔甲",
"-1674000000,[夏],,臯",
"-1663000000,[夏],,發",
"-1652000000,[夏],,桀",
"-1599000000",
"-1587000000,[商]哀王,(子勝),外丙",
"-1585000000,[商]懿王,(子庸 ),仲壬",
"-1581000000,[商]太宗,(子至),太甲",
"-1569000000,[商]昭王,(子絢),沃丁",
"-1540000000,[商]宣王,(子辯),太庚",
"-1515000000,[商]敬王,(子高),小甲",
"-1498000000,[商]元王,(子密),雍己",
"-1485000000,[商]中宗,(子伷),太戊",
"-1410000000,[商]孝成王,(子莊),仲丁",
"-1399000000,[商]思王,(子發),外壬",
"-1384000000,[商]前平王,(子整),河亶甲",
"-1375000000,[商]穆王,(子滕),祖乙",
"-1356000000,[商]桓王,(子旦),祖辛",
"-1340000000,[商]僖王,(子逾),沃甲",
"-1335000000,[商]莊王,(子新),祖丁",
"-1326000000,[商]頃王,(子更),南庚",
"-1320000000,[商]悼王,(子和),陽甲",
"-1313000000,[商]世祖,(子旬),盤庚",
"-1271000000,[商]章王,(子頌),小辛",
"-1250000000,[商]惠王,(子斂),小乙",
"-1249000000,[商]高宗,(子昭),武丁",
"-1190000000,[商]後平王,(子躍),祖庚",
"-1188000000,[商]世宗,(子載),祖甲",
"-1155000000,[商]甲宗,(子先),廩辛",
"-1147000000,[商]康祖,(子囂),庚丁",
"-1146000000,[商]武祖,(子瞿),武乙",
"-1111000000,[商]匡王,(子托),文丁",
"-1100000000,[商]德王,(子羨),帝乙",
"-1074000000,[商]紂王,(子壽),帝辛",
"-1045000000",
"-1041000000,[西周]成王,(姬誦),",
"-1019000000,[西周]康王,(姬釗),",
"-0994000000,[西周]昭王,(姬瑕),",
"-0975000000,[西周]穆王,(姬滿),",
"-0921000000,[西周]共王,(姬繄[yī]扈),",
"-0898000000,[西周]懿王,(姬囏 [jiān]),",
"-0890000000,[西周]孝王,(姬辟方),",
"-0884000000,[西周]夷王,(姬燮[xiè]),",
"-0876000000,[西周]厲王,(姬胡),",
"-0840000000,[西周]厲王,(姬胡), [共和]",
"-0826000000,[西周]宣王,(姬靜),",
"-0780000000,[西周]幽王,(姬宮湦[shēng]),",
"-0769000000,[東周]平王,(姬宜臼),",
"-0718000000,[東周]桓王,(姬林),",
"-0695000000,[東周]莊王,(姬佗[tuó]),",
"-0680000000,[東周]釐王,(姬胡齊),",
"-0675000000,[東周]惠王,(姬閬[làng]),",
"-0650000000,[東周]襄王,(姬鄭),",
"-0617000000,[東周]頃王,(姬壬臣),",
"-0611000000,[東周]匡王,(姬班),",
"-0605000000,[東周]定王,(姬瑜),",
"-0584000000,[東周]簡王,(姬夷),",
"-0570000000,[東周]靈王,(姬泄心),",
"-0543000000,[東周]景王,(姬貴),",
"-0519000000,[東周]悼王,(姬猛),",
"-0518000000,[東周]敬王,(姬匄[gài]),",
"-0474000000,[東周]元王,(姬仁),",
"-0467000000,[東周]貞定王,(姬介),",
"-0440000000,[東周]哀王,(姬去疾) 思王(姬叔),",
"-0439000000,[東周]考王,(姬嵬[wéi]),",
"-0424000000,[東周]威烈王,(姬午),",
"-0400000000,[東周]安王,(姬驕),",
"-0374000000,[東周]烈王,(姬喜),",
"-0367000000,[東周]顯王,(姬扁),",
"-0319000000,[東周]慎靚[jìng]王,(姬定),",
"-0313000000,[東周]赧[nǎn]王,(姬延),",
"-0254000000",
"-0249000000,[秦]孝文王,(嬴柱),",
"-0248000000,[秦]莊襄王,(嬴子楚),",
"-0245000000,[秦]始皇帝,(嬴政),",
"-0208000000,[秦]二世皇帝,(嬴胡亥),",
"-0205000000,[西漢]高帝,(劉邦),",
"-0193000000,[西漢]惠帝,(劉盈),",
"-0186000000,[西漢]高後,(呂雉),",
"-0178000000,[西漢]文帝,(劉恒),",
"-0162000000,[西漢]文帝,(劉恒), 後元",
"-0155000000,[西漢]景帝,(劉啟), 前元",
"-0148000000,[西漢]景帝,(劉啟), 中元",
"-0142000000,[西漢]景帝,(劉啟),(後)後元",
"-0139000000,[西漢]武帝,(劉徹), 建元",
"-0133000000,[西漢]武帝,(劉徹), 元光",
"-0127000000,[西漢]武帝,(劉徹), 元朔",
"-0121000000,[西漢]武帝,(劉徹), 元狩",
"-0115000000,[西漢]武帝,(劉徹), 元鼎",
"-0109000000,[西漢]武帝,(劉徹), 元封",
"-0103000000,[西漢]武帝,(劉徹), 太初",
"-0099000000,[西漢]武帝,(劉徹), 天漢",
"-0095000000,[西漢]武帝,(劉徹), 太始",
"-0091000000,[西漢]武帝,(劉徹), 征和",
"-0087000000,[西漢]武帝,(劉徹), 後元",
"-0085000000,[西漢]昭帝,(劉弗陵), 始元",
"-0079080000,[西漢]昭帝,(劉弗陵), 元鳳",
"-0073000000,[西漢]昭帝,(劉弗陵), 元平",
"-0072000000,[西漢]宣帝,(劉詢), 本始",
"-0068000000,[西漢]宣帝,(劉詢), 地節",
"-0064000000,[西漢]宣帝,(劉詢), 元康",
"-0060030000,[西漢]宣帝,(劉詢), 神爵",
"-0056000000,[西漢]宣帝,(劉詢), 五鳳",
"-0052000000,[西漢]宣帝,(劉詢), 甘露",
"-0048000000,[西漢]宣帝,(劉詢), 黃龍",
"-0047000000,[西漢]元帝,(劉奭[shì]), 初元",
"-0042000000,[西漢]元帝,(劉奭[shì]), 永光",
"-0037000000,[西漢]元帝,(劉奭[shì]), 建昭",
"-0032000000,[西漢]元帝,(劉奭[shì]), 竟寧",
"-0031000000,[西漢]成帝,(劉驁[ào]), 建始",
"-0027030000,[西漢]成帝,(劉驁[ào]), 河平",
"-0023000000,[西漢]成帝,(劉驁[ào]), 陽朔",
"-0019000000,[西漢]成帝,(劉驁[ào]), 鴻嘉",
"-0015000000,[西漢]成帝,(劉驁[ào]), 永始",
"-0011000000,[西漢]成帝,(劉驁[ào]), 元延",
"-0007000000,[西漢]成帝,(劉驁[ào]), 綏和",
"-0005000000,[西漢]哀帝,(劉欣), 建平",
"-0001000000,[西漢]哀帝,(劉欣), 元壽",
"00001000000,[西漢]平帝,(劉衍), 元始",
"00006000000,[西漢]孺子嬰,(王莽攝政), 居攝",
"00008110000,[西漢]孺子嬰,(王莽攝政), 初始",
"00009000000,[新]王莽,, 始建國",
"00014000000,[新]王莽,, 天鳳",
"00020000000,[新]王莽,, 地皇",
"00023020000,[西漢]更始帝,(劉玄), 更始",
"00025060000,[東漢]光武帝,(劉秀), 建武",
"00056040000,[東漢]光武帝,(劉秀), 建武中元",
"00058000000,[東漢]明帝,(劉莊), 永平",
"00076000000,[東漢]章帝,(劉炟[dá]), 建初",
"00084080000,[東漢]章帝,(劉炟[dá]), 元和",
"00087070000,[東漢]章帝,(劉炟[dá]), 章和",
"00089000000,[東漢]和帝,(劉肇), 永元",
"00105040000,[東漢]和帝,(劉肇), 元興",
"00106000000,[東漢]殤[shāng]帝,(劉隆), 延平",
"00107000000,[東漢]安帝,(劉祜[hù]), 永初",
"00114000000,[東漢]安帝,(劉祜[hù]), 元初",
"00120040000,[東漢]安帝,(劉祜[hù]), 永寧",
"00121070000,[東漢]安帝,(劉祜[hù]), 建光",
"00122030000,[東漢]安帝,(劉祜[hù]), 延光",
"00126000000,[東漢]順帝,(劉保), 永建",
"00132030000,[東漢]順帝,(劉保), 陽嘉",
"00136000000,[東漢]順帝,(劉保), 永和",
"00142000000,[東漢]順帝,(劉保), 漢安",
"00144040000,[東漢]順帝,(劉保), 建康",
"00145000000,[東漢]沖帝,(劉炳), 永憙[xī](嘉)",
"00146000000,[東漢]質帝,(劉纘[zuǎn]), 本初",
"00147000000,[東漢]桓帝,(劉誌), 建和",
"00150000000,[東漢]桓帝,(劉誌), 和平",
"00151000000,[東漢]桓帝,(劉誌), 元嘉",
"00153050000,[東漢]桓帝,(劉誌), 永興",
"00155000000,[東漢]桓帝,(劉誌), 永壽",
"00158060000,[東漢]桓帝,(劉誌), 延熹",
"00167060000,[東漢]桓帝,(劉誌), 永康",
"00168000000,[東漢]靈帝,(劉宏), 建寧",
"00172050000,[東漢]靈帝,(劉宏), 熹平",
"00178030000,[東漢]靈帝,(劉宏), 光和",
"00184120000,[東漢]靈帝,(劉宏), 中平",
"00190000000,[東漢]獻帝,(劉協), 初平",
"00194000000,[東漢]獻帝,(劉協), 興平",
"00196000000,[東漢]獻帝,(劉協), 建安",
"00220030000,[東漢]獻帝,(劉協), 延康",
"00220100000,[魏]文帝,(曹丕), 黃初",
"00227000000,[魏]明帝,(曹叡[ruì]), 太和",
"00233020000,[魏]明帝,(曹叡[ruì]), 青龍",
"00237030000,[魏]明帝,(曹叡[ruì]), 景初",
"00240000000,[魏]齊王,(曹芳), 正始",
"00249040000,[魏]齊王,(曹芳), 嘉平",
"00254100000,[魏]高貴鄉公,(曹髦[máo]), 正元",
"00256060000,[魏]高貴鄉公,(曹髦[máo]), 甘露",
"00260060000,[魏]元帝,(曹奐[huàn]), 景元",
"00264050000,[魏]元帝,(曹奐[huàn]), 鹹熙",
"00265120000,[西普]武帝,(司馬炎), 泰始",
"00275000000,[西普]武帝,(司馬炎), 鹹寧",
"00280040000,[西普]武帝,(司馬炎), 太康",
"00290000000,[西普]武帝,(司馬炎), 太熙",
"00290040000,[西普]惠帝,(司馬衷), 永熙",
"00291000000,[西普]惠帝,(司馬衷), 永平",
"00291030000,[西普]惠帝,(司馬衷), 元康",
"00300000000,[西普]惠帝,(司馬衷), 永康",
"00301040000,[西普]惠帝,(司馬衷), 永寧",
"00302120000,[西普]惠帝,(司馬衷), 太安",
"00304000000,[西普]惠帝,(司馬衷), 永安",
"00304070000,[西普]惠帝,(司馬衷), 建武",
"00304110000,[西普]惠帝,(司馬衷), 永安",
"00304120000,[西普]惠帝,(司馬衷), 永興",
"00306060000,[西普]惠帝,(司馬衷), 光熙",
"00307000000,[西普]懷帝,(司馬熾[chì]), 永嘉",
"00313040000,[西普]湣[mǐn]帝,(司馬鄴[yè]), 建興",
"00317030000,[東晉]元帝,(司馬睿[ruì]), 建武",
"00318000000,[東晉]元帝,(司馬睿[ruì]), 大興",
"00322120000,[東晉]元帝,(司馬睿[ruì]), 永昌",///閏11改元
"00323000000,[東晉]明帝,(司馬紹), 太寧",
"00325090002,[東晉]成帝,(司馬衍), 太寧",///成帝閏8即位,未改元。
"00326020000,[東晉]成帝,(司馬衍), 鹹和",
"00335000000,[東晉]成帝,(司馬衍), 鹹康",
"00343000000,[東晉]康帝,(司馬嶽), 建元",
"00345000000,[東晉]穆帝,(司馬聃[dān]), 永和",
"00357000000,[東晉]穆帝,(司馬聃[dān]), 升平",
"00362000000,[東晉]哀帝,(司馬丕[pī]), 隆和",
"00363020000,[東晉]哀帝,(司馬丕[pī]), 興寧",
"00366000000,[東晉]海西公,(司馬奕[yì]), 太和",
"00371110000,[東晉]簡文帝,(司馬昱[yù]), 鹹安",
"00373000000,[東晉]孝武帝,(司馬曜[yào]), 寧康",
"00376000000,[東晉]孝武帝,(司馬曜[yào]), 太元",
"00397000000,[東晉]安帝,(司馬德宗), 隆安",
"00402000000,[東晉]安帝,(司馬德宗), 元興",
"00405000000,[東晉]安帝,(司馬德宗), 義熙",
"00419000000,[東晉]恭帝,(司馬德文), 元熙",
"00420060000,[宋]武帝,(劉裕), 永初",
"00423000000,[宋]少帝,(劉義符), 景平",
"00424080000,[宋]文帝,(劉義隆), 元嘉",
"00454000000,[宋]孝武帝,(劉駿), 孝建",
"00457000000,[宋]孝武帝,(劉駿), 大明",
"00465000000,[宋]前廢帝,(劉子業), 永光",
"00465080000,[宋]前廢帝,(劉子業), 景和",
"00465120000,[宋]明帝,(劉彧[yù]), 泰始",
"00472000000,[宋]明帝,(劉彧[yù]), 泰豫",
"00473000000,[宋]後廢帝,(劉昱[yù]), 元徽",
"00477000000,[宋]順帝,(劉凖), 昇明",