
// ********************************************************

var highlightcolor="#FFEBC1"

var ns6=document.getElementById&&!document.all
var previous=''
var eventobj

//Regular expression to highlight only form elements
var intended=/INPUT|TEXTAREA|SELECT|OPTION/

//Function to check whether element clicked is form element
function checkel(which){
if (which.style&&intended.test(which.tagName)){
if (ns6&&eventobj.nodeType==3)
eventobj=eventobj.parentNode.parentNode
return true
}
else
return false
}

//Function to highlight form element
function highlight(e){
eventobj=ns6? e.target : event.srcElement
if (previous!=''){
if (checkel(previous))
previous.style.backgroundColor=''
previous=eventobj
if (checkel(eventobj))
eventobj.style.backgroundColor=highlightcolor
}
else{
if (checkel(eventobj))
eventobj.style.backgroundColor=highlightcolor
previous=eventobj
}
}
// ********************************************************
function MM_showHide(z) { //v3.0
  //window.focus();
  t=eval("document.all.t"+z);
  {
  	t.style.display="none";}
  }

function swapMenu(n){
//window.focus();
t=eval("document.all.t"+n);if (t.style.display=="none"){t.style.display="block";}else{t.style.display="none";}}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

//------
function DisplayOneAndHideRest(n1,n2,x)
{
	var d;
	for (i=n1; i<=n2; i++)
	{
		d=eval("document.getElementById('d'+i)");
		d.style.cursor="pointer";
		if (i == x)
			d.style.display="block";
		else
			d.style.display="none";
	}	
}

function Send_Clickfaq() {
		fenetreCent('../web_faq.asp','callback',410,196,'menubar=no,scrollbars=no,statusbar=no')
}

function fenetreCent(url,nom,largeur,hauteur,options) {
var haut=(screen.height-hauteur)/2;
var Gauche=(screen.width-largeur)/2;
	fencent=window.open(url,nom,"top="+haut+",left="+Gauche+",width="+largeur+",height="+hauteur+","+options);
}
