<script language="JavaScript" type="text/javascript"> function setcountup(theday,themonth,theyear){
da=theday,mo=themonth,yr=theyear;
}
setcountup(22,07,2012);
var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
function countup() {
var prefix="فونیکس ";
var suffix="است که پابرجاست!";
var today=new Date();
var todayy=today.getYear();
if (todayy < 1000) {
todayy+=1900; }
var todaym=today.getMonth();
var todayd=today.getDate();
var todayh=today.getHours();
var todaymin=today.getMinutes();
var todaysec=today.getSeconds();
var todaystring=montharray[todaym]+" "+todayd+", "+todayy+" "+todayh+":"+todaymin+":"+todaysec;
paststring=montharray[mo-1]+" "+da+", "+yr;
dd=Date.parse(todaystring)-Date.parse(paststring);
dday=Math.floor(dd/(60*60*1000*24)*1);
dhour=Math.floor((dd%(60*60*1000*24))/(60*60*1000)*1);
dmin=Math.floor(((dd%(60*60*1000*24))%(60*60*1000))/(60*1000)*1);
dsec=Math.floor((((dd%(60*60*1000*24))%(60*60*1000))%(60*1000))/1000*1);
if (document.all||document.getElementById) {
document.getElementById('countupie').innerHTML=prefix+dday+ " روز و "+dhour+" ساعت و "+dmin+" دقیقه و "+dsec+" ثانیه "+suffix;
setTimeout("countup()",1000); }
}
</script>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td nowrap="nowrap" height="17" style="font-size:12px; font-family:Tahoma; color:#FFFFFF; cursor:default;" id="countupie" title="فونیکس در تاریخ اول مرداد 1391 تأسیس شده است."><img src="http://www.tarfandestan.com/forum/clear.gif" border="0" alt="" onload="countup();" /> </td>
</tr>
</table>
</span>
</div>