	function showCommandDetail(strID) {
		jQuery('#comman_detail').fadeOut('0', function(){
			jQuery('#comman_detail').load('commande-'+strID+'.html', function(answer){
				jQuery('#comman_detail').fadeIn('0');
                setStyles();
                //$('.holder .scroll-pane').jScrollPane({showArrows:true, scrollbarWidth: 4});
			});
		});
	}
	function backToComand() {
		jQuery('#comman_detail').fadeOut('0', function(){
			jQuery('#comman_detail').load('modules/client/client_commands.php',function(res){
				jQuery('#comman_detail').fadeIn('0');
                setStyles();
                //$('.holder .scroll-pane').jScrollPane({showArrows:true, scrollbarWidth: 4});
			});
		});
	}

    function ToPdfObject(nID)
	{
		var bScroll = false;
		strURL = "command_pdf.php?command_id="+nID;
		nWidth = 0;
		nHeight = 0;
		strName = "command";
		if (nWidth == 0) nWidth = 800;
		if (nHeight == 0) nHeight = 600;
		var bOverflowX = (nWidth > window.screen.width);
		var bOverflowY = (nHeight > window.screen.height);
		if (bOverflowX) { nWidth = window.screen.width; bScroll = true; }
		if (bOverflowY) { nHeight = window.screen.height; bScroll = true; }
		var nLeft = (window.screen.width - nWidth) / 2;
		var nTop = (window.screen.height - nHeight) / 2;
		if (bOverflowX) { nWidth -= 20; }
		if (bOverflowY) { nHeight -= 50; }
		if (bOverflowX && !bOverflowY)
			nHeight += 16;
		else if (bOverflowY && !bOverflowX)
			nWidth += 16;
		g_bIE = document.all;
		var strFeatures = "left=" + nLeft + ",top=" + nTop + ",width=" + nWidth + ",height=" + nHeight + ",resizable=yes," + (bScroll ? "scrollbars=yes," : "scrollbars=" + (g_bIE ? "auto" : "yes") + ",") + "modal=no";

		var objWin = window.open(strURL, strName, strFeatures);
		return objWin;
	}
