﻿function showPayam() {
day = new Date()
hr = day.getHours()
if (hr ==1) {
document.write("نیمه شب شما بخير<br>");
document.write("امیدوارم روز خوبی رو سپری کرده باشید.");
}
if (hr ==2) {
document.write("نيمه شب شما بخير<br>")
document.write("امیدوارم در این سکوت شبانه اوقات خوشی را در این وبلاگ سپری کنید.")
}
if (hr ==3) {
document.write("نيمه شب شما بخير<br>")
document.write("از اینکه تا پاسی از شب بیدار مانده اید تا از مطالب این وبلاگ استفاده کنید سپاسگزارم.")
}
if (hr ==4) {
document.write("بامدادان بخیر<br>")
document.write("لحظات خوشی را برای شما آرزومندم.")
}
if (hr ==5) {
document.write("سحر بخير<br>")
document.write("روز تازه ای در انتظار شماست. امیدوارم روز خوبی باشد.")
}
if ((hr == 6) || (hr ==7) || (hr ==8) || (hr == 9) || (hr ==10)) {
document.write("صبح بخير<br>")
document.write("از اینکه صبح خود را با خواندن مطالب این وبلاگ آغاز کرده اید سپاسگذارم. امیدواره استفاده لازم را ببرید.")
}
if (hr ==11) {
document.write("نيمروز بخير<br>")
document.write("لطفا با نظرات خود ما را در هر چه بهتر شدن مطالب وبلاگ یاری دهید.")
}
if (hr ==12) {
document.write("ظهر بخير<br>")
document.write("نیمی از امروز نیز گذشت. امیدوارم در نیمه دوّم به آنچه که هنوز دست نیافته اید، دست یابید.")
}
if ((hr==13) || (hr==14) || (hr==15) || (hr==16)) {
document.write("بعد از ظهر شما بخير<br>")
document.write("اوقات خوشی را برای شما آرزومندم. نظرات، پیشنهادات و انتقادات شما در هر چه بهتر شدن کار ما سازنده خواهد بود.")
}
if ((hr==17) || (hr==18)) {
document.write("عصر شما بخير<br>")
document.write("روز کم کم جای خود را به شب خواهد داد. امیدوارم کارهایتان بخوبی انجام شده باشد.")
}
if ((hr==19) || (hr==20) || (hr==21)) {
document.write("شامگاه شما بخير<br>")
document.write("از این که سرشب خود را به خواندن مطالب این وبلاگ اختصاص داده اید کمال تشکر را دارم.")
}
if ((hr==22) || (hr==23)) {
document.write("شبانگاه شما بخير<br>")
document.write("چنانچه تصمیم به خوابیدن دارید، امیدوارم رؤیاهای شیرین ببینید.")
}
if (hr==0) {
document.write("نيمه شب بخير<br>")
document.write("یک روز دیگر هم گذشت. امیدوارم در روزهای آینده هم به وبلاگ ما سر بزنید.")
}
}

function showDetails() {
var xy = navigator.appVersion;
xz = xy.substring(22,25);
if (navigator.onLine==true) document.write('شما اکنون آن لاین هستید<br>');
else document.write("شما اکنون آف لاین هستید<br>");
document.write("مرورگر شما : ", navigator.appName,"<br>");
document.write("نگارش : ",xz,"<br>");
document.write("وضوح نمايشگر شما : ",screen.width," در ",screen.height,"پيکسل<br>");
if (navigator.javaEnabled()) document.write("جاوا فعال است<br>");
else document.write("جاوا فعال نیست<br>")
}

var bookmarkurl="http://gahshomar.blogfa.com";
var bookmarktitle="گاهشمار تاریخ ایران و جهان";
function addbookmark(){
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle);
}

function Instruction() {
	if (document.URLUnencoded=="http://gahshomar.blogfa.com/" || document.URLUnencoded=="http://gahshomar.blogfa.ir/") {
		document.write('<div class="text" style="text-align: justify; direction: rtl; width: 590">');
		document.write('<div class="titr2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; معرفی وبلاگ</div>');
		document.write('با سلام خدمت شما بازدیدکنندگان گرامی!<br>');
		document.write('وب سایت «تاریخ» یا «گاهشمار تاریخ ایران و جهان»، تلاش دارد تا به طور عمده به سیر دگرگونی تاریخ سیاسی ایران و جهان، از هزاره های دور تا زمان کنونی بپردازد، هر چند ممکن است در این میان، نیم نگاهی نیز به دگرگونی های غیر سیاسی از جمله فرهنگی، اجتماعی، هنری و ... نیز داشته باشد؛ که البته این موارد سهم بسیار اندکی از این طرح را در بر می گیرد.');
		document.write('<br>');
		document.write('<hr>');
		document.write('<div class="titr2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7 یادداشت آخر</div>');
		document.write('</div>');
	}
}

function Instruction2() {
	if (document.URLUnencoded=="http://z550i.blogfa.com/" || document.URLUnencoded=="http://z550i.blogfa.ir/") {
		document.write('<div class="text" style="text-align: justify; direction: rtl; width: 590">');
		document.write('<div class="titr2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; معرفی وبلاگ</div>');
		document.write('<br>');
		document.write('');
		document.write('<br>');
		document.write('<hr>');
		document.write('<div class="titr2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7 یادداشت آخر</div>');
		document.write('</div>');
	}
}
function NewsLetter() {
document.write('<div style="font-size: 11px; font-family: Tahoma">');
document.write('<div style="width: 196" dir=ltr>');
document.write('<form action="http://www.webgozar.com/nletter/a.aspx"  target=_blank onsubmit="return sp(this);" name=wfrm method=post>');
document.write('<div style="border-collapse: collapse">');
document.write('<p dir=rtl>');
document.write('نام:&nbsp;&nbsp;&nbsp;');
document.write('<input class=txts type=text name="wgname"><span style="font-size: 8pt"><br>');
document.write('ایمیل:<input class=txts type=text name="wgemail">');
document.write('<br>');
document.write('<input type=hidden value="100461" name="code">');
document.write('<input type="radio" id=c1 value="1" checked="" name="R1" checked=true><font class=txtb>');
document.write('<label for="c1">عضويت</label>');
document.write('<input type="radio" id=c2 value="0" name="R1"><label for="c2">لغو عضويت&nbsp; </label>');
document.write('<input type=submit class=txts value="ارسال" style="height:22 ;font-family: Tahoma; font-size:11; width:90">');
document.write('</font>');
document.write('</span>');
document.write('<font class=txtb>');
document.write('</p>');
document.write('</div>');
document.write('</form>');
document.write('</div>');
}


function GoogleSearch() {
document.write('<div style="font-size: 11px; font-family: Tahoma">');
document.write('<FORM method=GET target=_blank action="http://www.google.com/search">');
document.write('<div style="border-collapse: collapse;">');
document.write('<p dir="rtl">');
document.write('<span style="font-size: 8pt">');
document.write('&nbsp;&nbsp;');
document.write('<INPUT class="INPUT-Text" TYPE=text name=q size=23 maxlength=255 value="" style="font-family: Tahoma; ">');
document.write('</span>');
document.write('<font face="Tahoma">');
document.write('<span style="font-size: 8pt">');
document.write('<input type=hidden name=domains value="http://gahshomar.blogfa.com">');
document.write('<br>');
document.write('&nbsp;&nbsp;');
document.write('<input type=radio name=sitesearch value="">در كل اينترنت<br>');
document.write('&nbsp;&nbsp;');
document.write('<input type=radio name=sitesearch value="http://gahshomar.blogfa.com" checked>	در گاهشمار تاریخ ایران و جهان');
document.write('<INPUT type=submit name=btnG VALUE="بگرد" style="height:22 ;font-family: Tahoma; font-size:11; width:80">');
document.write('</span>');
document.write('</font>');
document.write('</p>');
document.write('</div>');
document.write('<input type=hidden name=ie value=UTF-8>');
document.write('<input type=hidden name=oe value=UTF-8>');
document.write('</FORM>');
document.write('</div>');
}

function Yahoo_Mail_LoginForm() {
document.write('<div style="width: 180" dir=ltr>');
document.write('<form method="post" autocomplete="off" name="login_form" action="https://login.yahoo.com/config/login?" target="_blank">');
document.write('<input type="hidden" name=".tries" value="1">');
document.write('<input type="hidden" name=".src" value="ym">');
document.write('<input type="hidden" name=".md5" value>');
document.write('<input type="hidden" name=".hash" value>');
document.write('<input type="hidden" name=".js" value>');
document.write('<input type="hidden" name=".last" value>');
document.write('<input type="hidden" name="promo" value>');
document.write('<input type="hidden" name=".intl" value="us">');
document.write('<input type="hidden" name=".bypass" value>');
document.write('<input type="hidden" name=".partner" value>');
document.write('<input type="hidden" name=".u" value="dvkbltl3d0c4p">');
document.write('<input type="hidden" name=".v" value="0">');
document.write('<input type="hidden" name=".challenge" value="8M5A.qs8rFPr8ibxx6ua5rw_3B5a">');
document.write('<input type="hidden" name=".yplus" value>');
document.write('<input type="hidden" name=".emailCode" value>');
document.write('<input type="hidden" name="pkg" value>');
document.write('<input type="hidden" name="stepid" value>');
document.write('<input type="hidden" name=".ev" value>');
document.write('<input type="hidden" name="hasMsgr" value="0">');
document.write('<input type="hidden" name=".chkP" value="Y">');
document.write('<input type="hidden" name=".done" value="http://mail.yahoo.com">');
document.write('<input type="hidden" name=".pd" value="ym_ver%3d0%26c=">');
document.write('<table id="table1" summary="form: login information">');
document.write('<tr>');
document.write('<th><label style="font-size:12" for="username">Yahoo! ID:</label></th>');
document.write('<td style="text-align: left">');
document.write('<input name="login" id="username" value size="12" type="text">');
document.write('</td>');
document.write('<scr'+'ipt language="JavaScript" type="text/javascript">if(document.getElementById) document.getElementById("username").focus();</scr'+'ipt>');
document.write('</tr>');
document.write('<tr>');
document.write('<th><label style="font-size:12" for="passwd">Password:</label></th>');
document.write('<td style="text-align: left">');
document.write('<input name="passwd" id="passwd" value size="12" type="password">');
document.write('</td>');
document.write('</tr>');
document.write('</table>');
document.write('<input type="submit" name=".save" value="Sign In">');
document.write('</form>');
document.write('</div>');
}
