//enter limit in "minutes:seconds" Minutes should range from 0 to inifinity. Seconds should range from 0 to 59
var limit="1:10"
if (document.images){
var parselimit=limit.split(":")
parselimit=parselimit[0]*60+parselimit[1]*1
}
function begintimer(){
if (!document.images)
return
if (parselimit==1)
window.location.reload();
else{
parselimit-=1
curmin=Math.floor(parselimit/60)
cursec=parselimit%60
if (curmin!=0)
curtime="<font size='2' face='Arial'>กรุณารอ <font color=red>"+curmin+" </font>นาที กับ<font color=red> "+cursec+" </font>วินาที "
else
if(cursec==1)
{
curtime="<font size='2' face='Arial'>กำลังส่งอีเมล"
}
else
{
curtime="<font size='2' face='Arial'>กรุณารอ <font color=red>"+cursec+" </font>วินาที "
}
//alert(curtime);
//window.status=curtime
//document.all.dplay.value=curtime
document.getElementById('dplay').innerHTML = curtime;
setTimeout("begintimer()",1000)
}
}
//-->
</SCRIPT>