
function calculHauteurPrincipal()
{
	var divHeight;
	var obj = document.getElementById('cont');
//	var obj = element;
	if(obj!=null)
	{
		if(obj.offsetHeight)
		{
			divHeight=obj.offsetHeight;
		}
		else if(obj.style.pixelHeight)
		{
			divHeight=obj.style.pixelHeight;
		}
	}

		return divHeight;
}

function calculHauteurDroite()
{
		var divHeightDroite;
	var obj = document.getElementById('contDroite');
	
		if(obj.offsetHeight)
		{
			divHeightDroite=obj.offsetHeight;
		}
		else if(obj.style.pixelHeight)
		{
			divHeightDroite=obj.style.pixelHeight;
		}

		return divHeightDroite;
}

function calculDiffHauteur()
{
//	alert(calculHauteurPrincipal());
//	alert(calculHauteurDroite());
	var calcul = calculHauteurPrincipal() - calculHauteurDroite();
	
	if( calcul > 600 )
	{
		//alert("bingo pour la pub !!  " + calcul);
		return true;
	
	}
	else
	{
	//	alert("Dommage  !!  " + calcul);
		return false;
	}
}

