function show(bShow, menuId) 
{
	if (bShow) 
	{
		menuId.style.display = "";
	}
	else 
	{
		menuId.style.display = "none";
	}
}

function doSection (bShow, menuId, CurrentCell) 
{
	if (bShow) 
	{
		menuId.style.left = 0;
		menuId.style.top = CurrentCell.offsetHeight;
	}
	show(bShow, menuId);
}

function DisplayCSM (bShow, menuId, CurrentCell) 
{
	if (bShow) 
	{
		menuId.style.left = CurrentCell.offsetWidth;
		menuId.style.top = 0;
	}
	show(bShow, menuId);
}

function DisplayCSM2 (bShow, menuId, CurrentCell, scree, nbFils) 
{
	if (bShow) 
	{
		//alert(scree+"<"+(nbFils*8+menuId.style.top));
		menuId.style.left = CurrentCell.offsetWidth;
		//if(nbFils*8+menuId.style.top>scree)
		{
			menuId.style.bottom = 0;
		}
		/*else
		{
			menuId.style.top = 0;
		}*/
	}
	show(bShow, menuId);
}
function montre(id) {
	var d = document.getElementById(id);

	for (var i = 1; i<=20; i++) {
		if (document.getElementById('smenu'+i)) {document.getElementById('smenu'+i).style.display='none';}
	}
	if (d) {
		d.style.display='block';
	}
}

function montreautres(id) {
	var d = document.getElementById(id);

	for (var i = 0; i<=20; i++) {
		if (document.getElementById('smenuautres'+i)) {document.getElementById('smenuautres'+i).style.display='none';}
	}
	if (d) {
		d.style.display='block';
	}
}

function submitSeek(evt)
{
	if(evt.keyCode==13)
	{
		this.document.forms['seek'].submit();
	}
}

