
mydate=new Date();
myyear= mydate.getYear();
myyearTXT= new String(myyear)
myyear2=myyearTXT.charAt(myyearTXT.length - 1)
myyear1=myyearTXT.charAt(myyearTXT.length - 2)
myyearlib="20"+myyear1+myyear2



if(myyearlib=="2010")libelle_annee=" + 2 + 0 + 1 + 0"
if(myyearlib=="2011")libelle_annee=" + 2 + 0 + 1 + 1"
if(myyearlib=="2012")libelle_annee=" + 2 + 0 + 1 + 2"
if(myyearlib=="2013")libelle_annee=" + 2 + 0 + 1 + 3"
if(myyearlib=="2014")libelle_annee=" + 2 + 0 + 1 + 4"
if(myyearlib=="2015")libelle_annee=" + 2 + 0 + 1 + 5"
if(myyearlib=="2016")libelle_annee=" + 2 + 0 + 1 + 6"


totpers=window.opener.document.rec.totapers.value;
document.write(window.opener.document.rec.jjj.value.charAt(0)+" + "+window.opener.document.rec.jjj.value.charAt(1)+" + "+window.opener.document.rec.mmm.value.charAt(0)+" + "+window.opener.document.rec.mmm.value.charAt(1)+libelle_annee+" =  <b>"+window.opener.document.rec.totapers.value+"</b>")


if (window.opener.document.rec.totapers.value>=10){
document.write(" = "+window.opener.document.rec.totapers.value.charAt(0)+" + "+window.opener.document.rec.totapers.value.charAt(1)+" = <b>"+
window.opener.document.rec.red1pers.value+"</b>")}


if (window.opener.document.rec.red1pers.value>=10){
document.write(" = "+window.opener.document.rec.red1pers.value.charAt(0)+" + "+window.opener.document.rec.red1pers.value.charAt(1)+" = <b>"+
window.opener.document.rec.red2pers.value+"</b>")};
