<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->


function confirm_supp(url)
{
	if(confirm('Confirmez-vous cette suppression ?'))
	{
	document.location=''+url+'';
	}
	else
	{}
}



function confirm_act(url)
{
	if(confirm('<?echo"$tl_gen_copera";?>'))
	{
	document.location=''+url+'';
	}

}

function Status ( texte )
  {
  window.status = texte
  }

function fiche_pop(s,l,h) {
			var winwidth = ""+l+""; var winheight = ""+h+"";
			var xMax = screen.width;var yMax = screen.height;
			var xOffset = (xMax - winwidth)/2, yOffset = (yMax - winheight)/2;
			locat=""+s+"";
			window.open(locat,'nouveau_sujet','width='+winwidth+',height='+winheight+',screenX=20,screenY=20,top=20,left=20,scrollbars=yes,resizable=yes');
		}	

function fiche_pop2(s,l,h) {
			var winwidth = ""+l+""; var winheight = ""+h+"";
			var xMax = screen.width;var yMax = screen.height;
			var xOffset = (xMax - winwidth)/2, yOffset = (yMax - winheight)/2;
			locat=""+s+"";
			window.open(locat,'nouveau_sujet','width='+winwidth+',height='+winheight+',screenX=20,screenY=20,top=20,left=20,scrollbars=no,resizable=yes');
		}	

function fiche_pop3(s,l,h,nam) {
			var winwidth = ""+l+""; var winheight = ""+h+"";
			var xMax = screen.width;var yMax = screen.height;
			var xOffset = (xMax - winwidth)/2, yOffset = (yMax - winheight)/2;
			locat=""+s+"";
			window.open(locat,nam,'width='+winwidth+',height='+winheight+',screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+',scrollbars=no,resizable=yes');
		}

function fiche_pop4(s,l,h,nam) {
			var winwidth = ""+l+""; var winheight = ""+h+"";
			var xMax = screen.width;var yMax = screen.height;
			var xOffset = (xMax - winwidth)/2, yOffset = (yMax - winheight)/2;
			locat=""+s+"";
			window.open(locat,nam,'width='+winwidth+',height='+winheight+',screenX=20,screenY=20,top=20,left=20,scrollbars=no,resizable=yes');
		}	

function make_area_height(champ,limite,rapport)
{
		if (champ.value.length > limite )
		{
		champ.style.height=champ.value.length/rapport;
		}
}
function make_area_no_height(champ,hh)
{
		champ.style.height=hh;
}

function media1(img){	
	if(img && img.filters && img.filters[0]){
		img.filters[0].apply();
		img.filters[0].play();
	}
}
function media2(img){
	if(img && img.filters && img.filters[0]){
		img.filters[0].apply();
		img.filters[0].play();
	}
}

function chaine2maj(champ)
{
champ.value=champ.value.toUpperCase()
}

function chaine2initmaj(champ)
{
champ.value=champ.value.toLowerCase()
champ.value=champ.value.substr(0,1).toUpperCase()+champ.value.substr(1,(champ.value.length-1))
}

