function ExtAlbumResetIntfAlbum(npID)
{
	HideElement('AlbumBoite' + npID);	
	HideElement('SpanFormAlbum' + npID);
	HideElement('SpanForm' + npID + 'Page0');
}

function ExtAlbumSetIntfAlbum(npID, npSection)
{
	ExtAlbumResetIntfAlbum(npID);
	
	switch(npSection)
	{
		case 1 :
			if(IsVisible('AlbumBoite' + npID + 'Hide'))
			{
				ShowElement('AlbumBoite' + npID);	
			}
			break;
		case 2 :
			ShowElement('SpanFormAlbum' + npID);
			break;
		case 3 :
			ShowElement('SpanForm' + npID + 'Page0');
			break;
	}
}

function ExtAlbumResetIntfPage(npIDAlbum, npIDPage)
{
	HideElement('SpanForm' + npIDAlbum + 'Page' + npIDPage);
	HideElement('SpanFormPhoto');
}

function ExtAlbumSetIntfPage(npIDAlbum, npIDPage, npSection)
{
	ExtAlbumResetIntfPage(npIDAlbum, npIDPage);
	
	switch(npSection)
	{
		case 1 :
			ShowElement('SpanForm' + npIDAlbum + 'Page' + npIDPage);
			break;
		case 2 :
			ShowElement('SpanFormPhoto');
			break;
	}
}

function ExtAlbumMAJOrdrePhoto(npID, npOrdre)
{
	document.getElementById('Ordre' + npID).value = npOrdre;
	document.getElementById('FormMAJOrdrePhoto' + npID).submit();
}
