function printThisURL()
	{
		if (window.print)
		{
			// Pop up the URL in a print friendly format.
			var width = 625;
			var height = 519;			
			// Set the value of the printFlag so the page knows which link to print (see below)
			var printFlag = "pq-pf=1";
			
			// locotion.protocol is like http:, locaction.host is like www.kodak.com, last part points to the print-friendly version (without the menu bar)
			var protoHostPath = location.protocol + "//" + location.host + "/CA/fr/consumer/guideToBetterPictures/next/print.jhtml";
			
			// Get the part of the URL that's after the ?, like ?style=&cat=6&subCat=3
			var queryString = new String (unescape(window.location.search));
			(queryString.length == 0)?printFlag ="?" + printFlag:printFlag ="&" + printFlag;
			var urlToPopup = protoHostPath + queryString + printFlag;
			openPopup (urlToPopup, height, width);
		}
		else
		{
			alert ("Your browser does not support the print function");
		}
	}
	
	// find out what's after the ? in the URL
	var infoSent = new String (unescape (window.location.search));

	// check for printMode flag (is this the URL in printMode, or just a normal rendering?)
	// If true, ie: a normal rendering, then output a link to the printFriendly version of the page.
	if (infoSent.indexOf("pq-pf") == -1)
	{
	    document.write ("<table cellpadding='0' cellspacing='0'>");
		document.write ("<tr>");
		document.write ("<td height='25' valign='middle' align='center' class='bannerGrey'>"); 

		document.write ("<a href=javascript:location.replace(location.href) onClick='javascript:printThisURL()' alt='printer friendly page'>Imprimer</a></td><td><a href=javascript:location.replace(location.href) onClick='javascript:printThisURL()' alt='printer friendly page'><img src='/eknec/documents/20/0900688a800a2e20/glo_0009_obj004.gif' border='0' align='center'/></a>");


		document.write ("</td></tr></table>"); 
	}

	// check for printMode flag, if true display the close and clickToPrint buttons;
	// this is the popup window for printing
	if (infoSent.indexOf("pq-pf") != -1)
	{
		document.write ("<table width='105' cellpadding='0' cellspacing='0'>");
		document.write ("<tr>");
		document.write ("<td width='105' height='25' valign='middle' align='center' class='bannerGrey'>"); 

		document.write ("<a href=javascript:location.replace(location.href) onClick='javascript:window.print()'>Imprimer</a>");
		document.write(" | ");
		document.write ("<a href=# onClick='javascript:closePopup(window.window)'>Fermer</a>");


		document.write ("</td></tr></table>");
	}