// JavaScript Document

function recupURL()//Récup URL avec Flash9 AS2
{
	var monURL = window.document.location.href;
	window.document.bando.SetVariable("myVar", monURL);
}

function recupURLVideo(){//Récup URL avec Flash9 AS3
	var myVar = window.document.location.href;
	return myVar;
}


function popupcentree(page,largeur,hauteur,options)
{
	var top=(screen.height-hauteur)/2;
	var left=(screen.width-largeur)/2;
	window.open(page,"","top="+top+",left="+left+",width="+largeur+",height="+hauteur+","+options);
}

var t;			
t = 1;
function changerTaille(modif) {
	t = t + modif;
	document.getElementsByTagName("div")[0].style.fontSize = t + "em";	
}

function afficheId(baliseId)
{
	if (document.getElementById && document.getElementById(baliseId) != null)
		{
		document.getElementById(baliseId).style.visibility='visible';
		document.getElementById(baliseId).style.display='block';
		}
}

function cacheId(baliseId)
{
	if (document.getElementById && document.getElementById(baliseId) != null)
		{
		document.getElementById(baliseId).style.visibility='hidden';
		document.getElementById(baliseId).style.display='none';
		}
}

//Formulaire
function Efface(){
document.demande_de_soutien.reset();
}

function VerifNum(elt, msg){
 if (isNaN(elt.value) == true){ 
    alert(msg);

    elt.focus();

    elt.style.color = "red";}

else

    elt.style.color = "black";

}