// Author John-Paul Voisin
// Fonction pour ouverture des popup d'aides

function Open(num,l,h,type) {
	var Menu = "";
	if(type==1) { Menu = "yes"; }
	else { Menu = "no"; }
	window.open("aide_"+num+".htm","_new","width="+l+",height="+h+",menubar="+Menu+",status=0,left=0,top=0,scrollbars=yes") 
}

function Open2(num,l,h,type) {
	var Menu = "";
	if(type==1) { Menu = "yes"; }
	else { Menu = "no"; }
	window.open("../aide_"+num+".htm","_new","width="+l+",height="+h+",menubar="+Menu+",status=0,left=0,top=0,scrollbars=yes") 
}
// ********************************************************
// Script Modifié par John-Paul Voisin

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;
}

<!-------------------------------------------------- js plein écran

function ecranplein(){
var ie4 = ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 ))
var ns4 = ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 4 ))
if (ie4) {
fenetre=window.open("institutionnel/droit_commun_auto.htm","","resizable,scrollbars")
fenetre.moveTo(0,0)
fenetre.resizeTo(screen.width,(screen.height-25))
}
else
plecran=window.open("institutionnel/droit_commun_auto.htm", "plecran", "height="+window.screen.availHeight+", width="+(window.screen.availWidth-10)+", top=0, left=0, toolbar=no, status=no, scrollbars=no, location=no, menubar=no, directories=no, resizable=no");
}

function ecranplein_bis(){
var ie4 = ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 ))
var ns4 = ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 4 ))
if (ie4) {
fenetre=window.open("droit_commun_auto.htm","","resizable,scrollbars")
fenetre.moveTo(0,0)
fenetre.resizeTo(screen.width,(screen.height-25))
}
else
plecran=window.open("droit_commun_auto.htm", "plecran", "height="+window.screen.availHeight+", width="+(window.screen.availWidth-10)+", top=0, left=0, toolbar=no, status=no, scrollbars=no, location=no, menubar=no, directories=no, resizable=no");
}
