// JavaScript Document

function browserInfos() {
	var browserI = {
		name: navigator.appName,
		agent: navigator.userAgent,
		version: navigator.appVersion,
		cookie: navigator.cookieEnabled,
		language: navigator.language,
		bLanguage: navigator.browserLanguage,
		sLanguage: navigator.systemLanguage,
		uLanguage: navigator.userLanguage,
		uProfile: navigator.userProfile,
		vendor: navigator.vendor,
		platForm: navigator.platform,
		osCpu: navigator.oscpu
	} ;
	return browserI;
}

function elementHeight_toWinHeight( elmtName, baseElmt, correction, bEcorrection ) {
	var bInfos = browserInfos();
	var elmtHeight;
	var baseElmtScrollH;
	
	if ((correction == '') || (correction.lenght == 0)) {
		correction = 0;
	}
	if ((bEcorrection == '') || (bEcorrection.lenght == 0)) {
		bEcorrection = 0;
	}
	if (bInfos.name == 'Netscape') {
		elmtHeight = window.innerHeight+correction;
	} else {
		elmtHeight = screen.availHeight-window.screenTop+correction-8;
	}
	baseElmtScrollH = document.getElementById(baseElmt).clientHeight+correction+bEcorrection;
	if (baseElmtScrollH > elmtHeight) elmtHeight = baseElmtScrollH;
	
	document.getElementById(elmtName).style.height = elmtHeight+'px';
}