// JavaScript Document
var gAutoPrint = true; // Tells whether to automatically call the print function
Today = new Date;
Jour = Today.getDate();
Mois = (Today.getMonth())+1;
Annee = Today.getFullYear();
Message = Jour + "/" + Mois + "/" + Annee;






function printSpecial(CultureISO)
{
    if (document.getElementById != null)
    {
        var html = '<HTML>\n<HEAD>\n';
        html += '<link href=\'/ress/css/screen.css\' rel=\'stylesheet\' type=\'text/css\'>\n';
        html += '<script type="text/javascript" src="/js/PrintTimer.js"></script>\n';

        if (document.getElementsByTagName != null)
        {
            var headTags = document.getElementsByTagName("head");
            if (headTags.length > 0)
            {
                html += headTags[0].innerHTML;
            }
        }
        html += '\n</HEAD>\n';        
        html += '\n<BODY>\n';

        html += '<CENTER> \n';	  
        html += '\n<TABLE width=640 height="100%" border=0 cellpadding=0 cellspacing=0><TR><TD width="125" valign="top">\n';
        html +='\n<img src=\'/medias/communs/header.jpg\'><BR><BR>\n'
        html +='\n</TD></TR>\n'	
        html +='\n<TR><TD height="100%" valign="top">\n'	

        var printReadyElem = document.getElementById("printReady");

        if (printReadyElem != null)
        {
            html += printReadyElem.innerHTML;
        }
        else
        {
            if(CultureISO == "FR")
            {
                alert("Fonction printReady introuvable");
            }
            else
            {
                alert("Function printReady could not be found");
            }

        return;
    }

    var printWin = window.open("","printSpecial");

    html +='\n</TD></TR>\n'	
    html +='\n<TR class="pied"><TD height="100%" valign="top">\n'	
    html +='\n<HR>\n'
    html +='\n<B>Marius Bridge</B>\n'	
    html +='\n<BR>http://www.mariusbridge.com\n'
    if(CultureISO == "FR")
    {
        html +='\n<BR>Imprim&eacute; le : \n'
    }
    else
    {
        html +='\n<BR>Printed on : ' + Message + '\n'
    }
        
    html +='\n</TD></TR></TABLE>\n</BODY>\n</HTML>\n'


    printWin.document.open();
    printWin.document.write(html);
    printWin.document.close();
    	


    if (gAutoPrint)
    {
        //printWin.print();   
    }
    else
    {
        if(CultureISO == "FR")
        {
            alert("Opter pour un Navigateur plus r&eacute;cent.");
        }
        else
        {
            alert("Please update your web browser.");
        }

    }
    
}

}
