var x=0;
var y=0;

if (document.getElementById)
{
if (navigator.appName.substring(0,3)=="Net") 
document.captureEvents(Event.MOUSEMOVE);
document.onmousemove = Pos_Souris;
}
var checkflag = "false";

function check(field) {
	if (checkflag == "false") {
		for (i = 0; i < field.length; i++) {
			field[i].checked = true;
			}
		checkflag = "true";
		return "Toutes les décocher"; 
		}
	else {
		for (i = 0; i < field.length; i++) {
			field[i].checked = false; 
			}

		checkflag = "false";
		return "Cocher toutes les cases"; 
		}
	}


function Pos_Souris(e)

{
x=(navigator.appName.substring(0,3) == "Net") ? e.pageX : 
event.x+document.body.scrollLeft;
y=(navigator.appName.substring(0,3) == "Net") ? e.pageY : 
event.y+document.body.scrollTop;
document.getElementById("detailCalendrier").style.left=x+20;
document.getElementById("detailCalendrier").style.top=y;

}

function affiche_detail(msg)
{
var description="<TABLE border='1'><TR><TD bgcolor='#eeeeee' >"+msg+"</TD></TR></TABLE>";

if (document.getElementById)
{
document.getElementById("detailCalendrier").innerHTML =description;
document.getElementById("detailCalendrier").style.visibility="visible";

}
}

function efface_detail()
{

if (document.getElementById)
{
document.getElementById("detailCalendrier").innerHTML ="";
document.getElementById("detailCalendrier").style.visibility="hidden";
}
}

function changePhoto(src,champ)
{
 
if (document.getElementById) {
	if (src=='') affiche='';
	else affiche="<img src='"+src+"'/>";
	document.getElementById(champ).innerHTML=affiche;
	//document.getElementById(champ).innerHTML=src;
	}
}

/***********************************************
* Bookmark site script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

function bookmarksite(title, url){
if (document.all)
window.external.AddFavorite(url, title);
else if (window.sidebar)
window.sidebar.addPanel(title, url, "")
}
