

function getHauteurDocument() 
	{ 
	return document.body && document.body.scrollHeight ? document.body.scrollHeight : document.height ? document.height : null; 
	} 

function platformDetect()
	{
  	if(navigator.appVersion.indexOf("Win") != -1)
  		{
    	return("windows");
  		}
  		else if(navigator.appVersion.indexOf("Mac") != -1)
  		{
    	return("mac");
 		}
  		else
		{
		return ("Other");
		}
	}

 function redimmensionnerFrame(IDframe)
	{ 
	tmpFrame=parent.getElement(IDframe);
	//var tmpFrame = parent.frames[IDframe]; 
	if (typeof tmpFrame != 'undefined') 
		{ 
		docHeight = getHauteurDocument() ; 
		if(platformDetect()=="mac")
			{
			if (docHeight<1000)
				{
				docHeight=2000;
				}
			}
	
		tmpFrame.style.height = docHeight + 10 + 'px' ;
		}
	}


