function MM_swapImage(){
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_openBrWindow(theURL,winName,features){
  window.open(theURL,winName,features);
}

function FP_swapImg() {//v1.0
 var doc=document,args=arguments,elm,n; doc.$imgSwaps=new Array(); for(n=2; n<args.length;
 n+=2) { elm=FP_getObjectByID(args[n]); if(elm) { doc.$imgSwaps[doc.$imgSwaps.length]=elm;
 elm.$src=elm.src; elm.src=args[n+1]; } }
}
function FP_getObjectByID(id,o) {//v1.0
 var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById) el=o.getElementById(id);
 else if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el) return el;
 if(o.id==id || o.name==id) return o; if(o.childNodes) c=o.childNodes; if(c)
 for(n=0; n<c.length; n++) { el=FP_getObjectByID(id,c[n]); if(el) return el; }
 f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements;
 for(m=0; m<els.length; m++){ el=FP_getObjectByID(id,els[n]); if(el) return el; } }
 return null;
}

function pop(filename, winname, h, w){  
	popup = window.open(filename,winname,"height="+h+",width="+w+",status=yes,scrollbars=no,resizable=no,toolbar=no")  
	if ( popup.document.close() ) {
		popup.document.close()
	}
}

function PopIt(filename, winname, h, w){  
	popup = window.open(filename,winname,"height="+h+",width="+w+",status=yes,scrollbars=yes,resizable=yes")  
	if ( popup.document.close() ) {
		popup.document.close()
	}
}
function launch(newURL, newName, newFeatures, orgName){var remote = open(newURL, newName, newFeatures); if (remote.opener == null) remote.opener = window;remote.opener.name = orgName;return remote;}
function Libelle(site,num,lan,width,height)
{
	url = "/admin/" + lan + "/libellesmodifier.cfm?direct=&select_word=&order_lib_num=NUM&libnumid=" + num + "&libcod=" + lan;
	launch(url,"R","height="+height+",width="+width+",screenX=" + (screen.availWidth/2 -(width/2)) +",left=" + (screen.availWidth/2 -(width/2)) +",screenY=" + (screen.availHeight/2 - (height/2)) +",top=" + (screen.availHeight/2 - (height/2)) +",alwaysLowered=0,alwaysRaised=1,channelmode=0,dependent=0,directories=0,fullscreen=0,hotkeys=1,location=0,menubar=0,resizable=1,scrollbars=1,status=0,titlebar=0,toolbar=0,z-lock=0","none");
}
function Parametre(site,parameter,type,lan,width,height)
{
	url = "/admin/" + lan + "/Parametresmodifier.cfm?direct=&parameterid=" + parameter + "&paramtype=" + type;
	launch(url,"R","height="+height+",width="+width+",screenX=" + (screen.availWidth/2 -(width/2)) +",left=" + (screen.availWidth/2 -(width/2)) +",screenY=" + (screen.availHeight/2 - (height/2)) +",top=" + (screen.availHeight/2 - (height/2)) +",alwaysLowered=0,alwaysRaised=1,channelmode=0,dependent=0,directories=0,fullscreen=0,hotkeys=1,location=0,menubar=0,resizable=1,scrollbars=1,status=0,titlebar=0,toolbar=0,z-lock=0","none");
}

var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height){
	if(popUpWin)
		{
		if(!popUpWin.closed) popUpWin.close();
		}
		popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menub ar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
		}
