function printSpecial(message){

// 07.01 NEW CODE LOGIC BECAUSE OF PROBLEMS ENCOUNTERED WITH FF3
var browser = navigator.appName;
var isIENavigator = new Boolean(browser == "Microsoft Internet Explorer");

var tempHead = '';
var tempBody = '';

	if (document.getElementById("payot_main") != null){
		var html = new String('<html>\n<head>\n');
		
		if (document.getElementsByTagName != null){
			var headTags = document.getElementsByTagName("head");
			if (headTags.length > 0){
				if (browser == "Microsoft Internet Explorer")
					html += headTags[0].innerHTML;
				else
					tempHead = headTags[0].innerHTML;
			}
		}

		if (browser == "Microsoft Internet Explorer")
		{}
		else{
			// Filtering head, we keep only the css tags
			var headArray = new Array();
			headArray = tempHead.split('>');
			
			//alert(tempHead);
			tempHead = '';
			
			for(var i = 0; i < headArray.length; i++)
			{
				if (headArray[i].indexOf('css') != -1)
				{
					//alert('on a un css');
					tempHead += headArray[i];
				}
			}
			// Filtering head, we keep only the css tags
	
			html += tempHead;
		}
		html += '\n</head>\n<body style="background-image:none;"onload="window.print()">\n';

		if (browser == "Microsoft Internet Explorer")
			html += document.getElementById("payot_main").innerHTML;
		else
			tempBody = document.getElementById("payot_main").innerHTML;
		
		html += '<div id="bodyContainer"></div>'
		html += '\n</body>\n</html>';

		var printWin = window.open("", "printingWindow", "width="+document.getElementById("payot_main").clientWidth+",toolbar=no,status=no, menubar=no, scrollbars=yes, resizable=yes,menubar=yes");

		printWin.document.open();
		
		if(browser == "Microsoft Internet Explorer"){
			printWin.document.write(html);
			printWin.document.close();
		}
		else{
			// ggr 07.01.2009 
			// Special trick for FF3, use innerHTML to inject text instead of document.write
			printWin.document.write(html);
			printWin.document.getElementById('bodyContainer').innerHTML = tempBody;			
			printWin.document.close();			
		}		
		printWin.focus()		
	}
	else{
		alert(message);
	}
}

function dummyWaitFunction()
{
	// just do nothing
}

