/*****************************************
(C) http://www.calculator.net all right reserved.  
*****************************************/
function calcp(){showquickmsg("calculating...",true);Yo=gObj("ccycle").value;UQ=document.calcf.today.value;Dc=parseFloat(UQ.substr(6,4));SM=parseFloat(UQ.substr(0,2))-1;nQ=parseFloat(UQ.substr(3,2));var A=new Date();A.setFullYear(Dc,SM,nQ);Yo=parseFloat(Yo);iu=new Date();ot=new Date();uC=new Date();MT=new Date();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 }kQ="<table class='cinfoT'><tr><td class='cinfoHd'>Most Probably*</td><td class='cinfoHdL'>Ovulation Window</td><td class='cinfoHdL'>Estimated Due Date if Pregnant</td></tr>";Sn="NNN. dd yyyy";for(i=1;i<7;i++){iu.setTime(A.getTime()+(i*Yo-18)*86400000);ot.setTime(A.getTime()+(i*Yo-8)*86400000);uC.setTime(A.getTime()+(i*Yo-14)*86400000);MT.setTime(iu.getTime()+271*86400000);kQ+="<tr><td>"+formatDate(uC,Sn)+"</td><td class='cinfoBodL'>"+formatDate(iu,Sn)+" - "+formatDate(ot,Sn)+"</td><td class='cinfoBodL'>"+formatDate(MT,Sn)+"</td></tr>"}kQ+="</table>";kQ+="<p>* This date is based on the average of 14 days before the next period was due.</p>";showquickmsg(kQ,false)};