function espaceClient(cpt, pwd)
{
	$("input[@name=compte]").val(cpt);
	$("input[@name=passwd]").val(pwd);

	$("form[@name=espaceClient]").submit();
}

function afficheActualite(zUrl, zPage, iId)
{
	var zPage2 = '' ;
	switch (zPage)
	{
		case 'actualite':
			zPage2 = zUrl + "index.php?zPg=actualite.php" ;
			break ;
	
		case 'communique':
			zPage2 = zUrl + "index.php?zPg=communique.php" ;
			break ;

		default:
			zPage2 = zUrl + "index.php?zPg=offreEmploi.php" ;
			break ;

	}
	
	$.post(
	zPage2,
	{iId:iId},
	function (data){
		if(!data)
			alert ("not ok!!") ;
		else
		{
			switch (zPage)
			{
				case 'actualite':
					$("#bloc_droite_actus").html(data);
					$('#pane3').jScrollPane({showArrows:true, scrollbarWidth: 12});
//					$('#pane3').jScrollPane({showArrows:true, scrollbarWidth: 18, arrowSize: 16});
					break;

				case 'communique':
					$("#bloc_droite_communique").html(data);
					$('#pane4').jScrollPane({showArrows:true, scrollbarWidth: 12});
//					$('#pane4').jScrollPane({showArrows:true, scrollbarWidth: 18, arrowSize: 16});
					break ;

				default:
					$("#bloc_droite_emploi").html(data);
					$('#pane2').jScrollPane({showArrows:true, scrollbarWidth: 12});
					$('#pane3').jScrollPane({showArrows:true, scrollbarWidth: 12});
//					$('#pane2').jScrollPane({showArrows:true, scrollbarWidth: 18, arrowSize: 16});
//					$('#pane3').jScrollPane({showArrows:true, scrollbarWidth: 18, arrowSize: 16});
					break;
			}
		}
	});
}

