/*****************************************
(C) http://www.calculator.net all right reserved.  
*****************************************/
function calcp(){showquickmsg("calculating...",true);eq=document.calcf.today.value;Od=parseFloat(eq.substr(6,4));oR=parseFloat(eq.substr(0,2))-1;Yc=parseFloat(eq.substr(3,2));var A=new Date();A.setFullYear(Od,oR,Yc);ws=A;gF=new Date();gF.setTime(ws-271*86400000);tX=new Date();We=new Date();tX.setTime(gF);We.setTime(gF-(-4*86400000));LM=new Date();LM.setTime(tX-3*86400000);gm=new Date();bh=new Date();gm.setTime(gF-86400000);bh.setTime(gF-(-9*86400000));ba=new Date();ba.setTime(gm-5*86400000);Wv="NNN dd yyyy";qU="Most probable conception date: <font color='green'><b>"+formatDate(tX,Wv)+" - "+formatDate(We,Wv)+"</b></font>";qU+="<br>Most probable sexual intercourse date that lead to the pregnancy: <font color='green'><b>"+formatDate(LM,Wv)+" - "+formatDate(We,Wv)+"</b></font>";qU+="<br><br>Possible conception date: <font color='green'><b>"+formatDate(gm,Wv)+" - "+formatDate(bh,Wv)+"</b></font>";qU+="<br>Possible sexual intercourse date that lead to the pregnancy: <font color='green'><b>"+formatDate(ba,Wv)+" - "+formatDate(bh,Wv)+"</b></font>";showquickmsg(qU,false)};