/*****************************************
(C) http://www.calculator.net all right reserved.  
*****************************************/
function calcp(){showquickmsg("calculating...",true);wt=document.calcf.today.value;xG=parseFloat(wt.substr(6,4));ka=parseFloat(wt.substr(0,2))-1;Fk=parseFloat(wt.substr(3,2));var A=new Date();var B=new Date(0);B.setFullYear(xG,ka,Fk);Jm=new Date();eK=new Date();hA=new Date();lG=new Date();hA.setTime(B.getTime());lG.setTime(hA.getTime()-280*86400000);dd=(document.domain+"").toLowerCase();if((dd!="\x6C\x6F\x63\x61\x6C\x68\x6F\x73\x74")&&(dd.indexOf("\x63\x61\x6C\x63\x75\x6C\x61\x74\x6F\x72\x2E\x6E\x65\x74")<0)){cc="a";return }if(typeof (cc)!="undefined"){return }bi="<table class='cinfoT'><tr><td class='cinfoHd'>Week</td><td class='cinfoHdL'>Date</td><td class='cinfoHdL'>Trimester</td><td class='cinfoHdL'>Important Milestones</td></tr>";iR="NNN. dd yyyy";for(i=1;i<43;i++){Jm.setTime(lG.getTime()+(i*7-6)*86400000);eK.setTime(lG.getTime()+(i*7)*86400000);bi+="<tr>";if((A>(Jm-86400000+1))&&(A<eK)){bi+="<td bgcolor='#e1fee1'><b>Week "+i+"</b></td>";bi+="<td class='cinfoBodL' bgcolor='#e1fee1'><b>"+formatDate(Jm,iR)+" - "+formatDate(eK,iR)+" (today)</b></td>"}else{bi+="<td>Week "+i+"</td>";bi+="<td class='cinfoBodL'>"+formatDate(Jm,iR)+" - "+formatDate(eK,iR)+"</td>"}if(i==1){bi+="<td rowspan='13' class='cinfoBodL' bgcolor='#dddddd'>first<br>trimester</td>";bi+="<td class='cinfoBodL' rowspan='5'>&nbsp;</td>"}else{if(i==6){bi+="<td class='cinfoBodL' rowspan='2' bgcolor='#e1fee1'>Heartbeat on the ultrasound</td>"}else{if(i==8){bi+="<td class='cinfoBodL' rowspan='10'>&nbsp;</td>"}else{if(i==14){bi+="<td rowspan='14' class='cinfoBodL' bgcolor='#dddddd'>second<br>trimester</td>"}else{if(i==18){bi+="<td class='cinfoBodL' rowspan='5' bgcolor='#e1fee1'>Begin to feel the baby movement.<br> Expecting to find out the baby's <br>gender from 20th week.</td>"}else{if(i==23){bi+="<td class='cinfoBodL' rowspan='15'>&nbsp;</td>"}else{if(i==28){bi+="<td rowspan='16' class='cinfoBodL' bgcolor='#dddddd'>third<br>trimester</td>"}else{if(i==38){bi+="<td rowspan='5' class='cinfoBodL' bgcolor='#e1fee1'><font color=green><b>Full Term</b></font></td>"}}}}}}}}bi+="</tr>"}bi+="</table>";showquickmsg(bi,false)};