var ImageOn=true;

function decToHex(dec) {
	var hexa="0123456789ABCDEF";
	var hex="";
	while (dec>15) {
		tmp=dec-(Math.floor(dec/16))*16;
		hex=hexa.charAt(tmp)+hex;
		dec=Math.floor(dec/16);
	}
	hex=hexa.charAt(dec)+hex;
	return(hex);
}
function hexToDec(hex) {
	return parseInt(hex,16);
}

function affcolor(lId){
alert('#005566');
alert(document.getElementById(lId).style.backgroundColor);
alert(document.getElementById(lId).style.color);
}

function ligthButtonV(lId){
return;
if(ImageOn){
	document.getElementById(lId).className="ButtonLienVCliOff";
	ImageOn=false;
}else{
	document.getElementById(lId).className="ButtonLienVCliOn";
	ImageOn=true;
}
}

function DebutReSize(){
	lElemt=document.getElementById("TdCentre");
	tmp=lElemt.width;
	tmp2=lElemt.clientWidth;
	//alert(tmp + " " + tmp2);
	if(( lElemt.clientWidth > 1024 )||( document.getElementById("Tab1").clientWidth > 1044 )){
		lElemt.width="1024";
		nlargeTotal=document.getElementById("Tab1").clientWidth;
		document.getElementById("TdGauche").width = (nlargeTotal-1024)/2;
		document.getElementById("TdDroite").width = (nlargeTotal-1024)/2;
	}else{
	if( document.getElementById("Tab1").clientWidth < 1044 ){
		lElemt.width="96%";
		document.getElementById("TdGauche").width = "2%";
		document.getElementById("TdDroite").width = "2%";
	}}
if(navigator.appName == "Microsoft Internet Explorer"){
	if( document.getElementById("Tab1").clientHeight > 720 ){
		document.getElementById("Tab1").height="720";
	}else{
		if( document.body.clientHeight < 720 ){
			document.getElementById("Tab1").height="100%";
	}}
}
}

function InitImg(){
	lImg=document.getElementById("oImgBandeau");
	alert(lImg.style.posLeft);
	lImg.style.posLeft=0;
	lImg.Left=0;
	alert(lImg.Left);
	lImg.style.posTop=0;
	lImg.Top=0;
	alert(lImg.style.posTop);
}

function InitMenuH(lIdMenu){
	lMenu=document.getElementById("MenuHor" + lIdMenu);
	lMenu.style.posLeft=(document.body.clientWidth - lMenu.clientWidth)/2;
	lMenu.style.posTop=0 + document.getElementById("oTdBandeau").clientHeight;
}

function InitMenuV(lIdMenu){
	lMenu=document.getElementById("MenuVer" + lIdMenu);
	lMenu.style.posLeft=3;
	lMenu.style.posTop=document.body.clientHeight * 0.05 + document.getElementById("oTdBandeau").clientHeight;
}

function reflink(IdFrame,sloc){
	document.getElementById(IdFrame).src=sloc;
}

function reflinkP(sloc){
	window.parent.location=sloc;
}
