function confirmDeleteHL(text,id)
	{
	if(id!='')
		{
		bkColor=window.document.getElementById(id).style.background;
		window.document.getElementById(id).style.background="#FF8080";
		ret=confirm(text);
		window.document.getElementById(id).style.background=bkColor;
		return ret;
		}
	else
		{
		return confirm(text);
		}
	}

function confirmDeleteBK(text,id)			// Proto commutation background image
	{
	if(id!='')
		{
		bk=window.document.getElementById(id).style.backgroundImage;
		window.document.getElementById(id).style.backgroundImage="url(/images/bgFicheDoc.png)";
		ret=confirm(text);
		window.document.getElementById(id).style.backgroundImage=bk;
		return ret;
		}
	else
		{
		return confirm(text);
		}
	}

function confirmDeleteCN(text,id)				// Proto commutation style
	{
	if(id!='')
		{
		cname=window.document.getElementById(id).className;
		window.document.getElementById(id).className="selected";
		ret=confirm(text);
		window.document.getElementById(id).className=cname;
		return ret;
		}
	else
		{
		return confirm(text);
		}
	}

function confirmDelete(text)
	{
	return confirm(text);
	}
	
function openWindow(theURL,winName,features)
	{ 
	newWindow=window.open(theURL,winName,features);
	newWindow.focus();
	}
	
// Detect if the browser is IE or not.
// If it is not IE, we assume that the browser is NS.
var IE = document.all?true:false

// If NS -- that is, !IE -- then set up for mouse capture
if (!IE) document.captureEvents(Event.MOUSEMOVE)
// Set-up to use getMouseXY function onMouseMove
document.onmousemove = getMouseXY;

// Temporary variables to hold mouse x-y pos.s
var tempX = 0
var tempY = 0

// Main function to retrieve mouse x-y pos.s

function getMouseXY(e) {
if (IE) {	
	if (browser.isIE6x | browser.isIE6up) {
		tempX = event.clientX + document.documentElement.scrollLeft
		tempY = event.clientY + document.documentElement.scrollTop
  	}   
	else  {
		tempX = event.clientX + document.body.scrollLeft
		tempY = event.clientY + document.body.scrollTop
	}
  }
  else {  // grab the x-y pos.s if browser is NS
    tempX = e.pageX
    tempY = e.pageY
  }  
  // catch possible negative values in NS4
  if (tempX < 0){tempX = 0}
  if (tempY < 0){tempY = 0}  
  // show the position values in the form named Show
  // in the text fields named MouseX and MouseY
  return true
}

function show(id) {
	if (document.getElementById) {
		document.getElementById(id).style.top=tempY+"px"
		document.getElementById(id).style.left=tempX+"px"
		document.getElementById(id).style.display="block"
	} 
}
function move(id) {
	if (document.getElementById) {
		document.getElementById(id).style.top=tempY+"px"
		document.getElementById(id).style.left=tempX+"px"
	} 
}

function hide(id) {
	if (document.getElementById) {
		document.getElementById(id).style.display="none";
	}
}
function goToURL() { 
  var i, args=goToURL.arguments;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

