// Procedures globales du projet
function GetXAbsolu(name)
{
	var obj;
	obj = eval("_PAGE_." + name);
	
	if (obj.offsetParent) {
		curleft = obj.offsetLeft
		while (obj = obj.offsetParent) {
			curleft += obj.offsetLeft
			}
		}
	
	return curleft;
}

function GetYAbsolu(name)
{
	var obj;
	obj = eval("_PAGE_." + name);
	
	if (obj.offsetParent) {
		curtop = obj.offsetTop
		while (obj = obj.offsetParent) {
			curtop += obj.offsetTop
			}
		}
	
	return curtop;
}

function ModifieDimensionGFI(iGFI)
{
	// La cellule qui imite le GFI de WinDev prend toute la dimension de la page
	eval("dww" + iGFI).style.width = NavigateurLargeur();
	eval("dww" + iGFI).style.height = NavigateurHauteur();
	// Elle est semi transparente
	eval("dww" + iGFI).style.filter = "alpha(opacity=60)"		
	eval("dww" + iGFI).style.opacity = 0.60
	eval("dww" + iGFI).innerHTML = "";
	eval("dww" + iGFI).style.backgroundColor = "#666666";	
}

function NavigateurHauteur()
{
	return document.body.offsetHeight - (document.body.offsetHeight - document.body.scrollHeight);
}

function NavigateurLargeur()
{
	return document.body.offsetWidth - (document.body.offsetWidth - document.body.scrollWidth);
}


