// JavaScript Document

function varglobale()
{
	blanc_globale = 0;
}

function fondCouleur()
{
	if(blanc_globale == 0)
	{		blanc();	}
	
	var fond_couleur = document.getElementById("demo"); // Acces IFRAME
	fond_couleur.contentWindow.document.getElementById("body").style.backgroundColor = document.forms["form1"].elements["fond_couleur"].value;
}


function blanc()
{
	blanc_globale = 1;

			var demo = document.getElementById("demo"); // Acces IFRAME

			demo.contentWindow.document.getElementById("milieu").style.backgroundColor = "transparent";// milieu page blanc

			demo.contentWindow.document.getElementById("demograph").style.backgroundColor = "transparent"; // profil carré en haut
			
			demo.contentWindow.document.getElementById("photo").style.backgroundColor = "transparent"; // fond photo
			
			// DEBUT Interets
			demo.contentWindow.document.getElementById("moduleHead_interest").style.backgroundColor = "transparent";
			demo.contentWindow.document.getElementById("interestMusic").style.backgroundColor = "transparent";
			demo.contentWindow.document.getElementById("interestMovies").style.backgroundColor = "transparent";
			demo.contentWindow.document.getElementById("interestTelevision").style.backgroundColor = "transparent";
			demo.contentWindow.document.getElementById("interestBooks").style.backgroundColor = "transparent";
			// FIN intérets
			
			// DEBUT Section détails
			demo.contentWindow.document.getElementById("moduleHead_details").style.backgroundColor = "transparent";

			for(i=1; i<=6; i++)
				{
					demo.contentWindow.document.getElementById("odd"+i).style.backgroundColor = "transparent";
				}
			
			for(i=1; i<=6; i++)
				{
					demo.contentWindow.document.getElementById("even"+i).style.backgroundColor = "transparent";
				}
				// FIN details
			
			// DEBUT commentaires
			demo.contentWindow.document.getElementById("moduleHead_presentation").style.backgroundColor = "transparent";// entete presentation
			demo.contentWindow.document.getElementById("moduleHead_amis").style.backgroundColor = "transparent";// entete amis
			demo.contentWindow.document.getElementById("moduleHead_com").style.backgroundColor = "transparent";// entete commentaires
			demo.contentWindow.document.getElementById("userComment").style.backgroundColor = "transparent"; // photo commentaire
			demo.contentWindow.document.getElementById("comment").style.backgroundColor = "transparent";// fond texte commentaire
			// FIN commentaires
			
			// ligne pointillé blog
			demo.contentWindow.document.getElementById("blog1").style.border = "0px";
			demo.contentWindow.document.getElementById("blog2").style.border = "0px";
			
			// Menus fond couleur
			demo.contentWindow.document.getElementById("header").style.backgroundColor = "transparent";
			demo.contentWindow.document.getElementById("googlebar").style.backgroundColor = "transparent";
			demo.contentWindow.document.getElementById("topnav").style.backgroundColor = "transparent";
			demo.contentWindow.document.getElementById("leftNav").style.backgroundColor = "transparent";
			
			// Menus bordures
			/*var bordure = "transparent";
			demo.contentWindow.document.getElementById("leftnav").style.borderColor = bordure;
			demo.contentWindow.document.getElementById("nav1000001").style.borderColor = bordure;
			demo.contentWindow.document.getElementById("nav1000027").style.borderColor = bordure;
			demo.contentWindow.document.getElementById("nav1000028").style.borderColor = bordure;
			demo.contentWindow.document.getElementById("nav1000029").style.borderColor = bordure;
			demo.contentWindow.document.getElementById("nav1000030").style.borderColor = bordure;
			demo.contentWindow.document.getElementById("nav1000031").style.borderColor = bordure;
			demo.contentWindow.document.getElementById("nav1999999").style.borderColor = bordure;
			demo.contentWindow.document.getElementById("nav2500000").style.borderColor = bordure;
			demo.contentWindow.document.getElementById("nav4000058").style.borderColor = bordure;
			demo.contentWindow.document.getElementById("nav4000059").style.borderColor = bordure;
			demo.contentWindow.document.getElementById("rightnav").style.borderColor = bordure;*/		
}

function fondImg()
{
		if(blanc_globale == 0)
	{
		blanc();
	}

	var Url = document.forms["form1"].elements["img1"].value;
	var Url = "url("+Url+")";
	var fondImg = document.getElementById("demo"); // Acces IFRAME
	fondImg.contentWindow.document.getElementById("body").style.backgroundImage = Url; // Img fond
}


function repeter(objet)
{
var repetons = 	objet.options[objet.selectedIndex].value;
var fondCouleur = document.getElementById("demo");
fondCouleur.contentWindow.document.getElementById("body").style.backgroundRepeat = repetons;
}


function positions()
{
     var cases = document.getElementById("form1").Groupe1;
     var posi;

     // on recherche le bouton coche (s'il y en a un)
     for(var i=0; i<cases.length && !posi; i++)
          if(cases[i].checked)
               posi = cases[i].value;

     // s'il y en a un, on affiche la valeur correspondante
     if(posi)    
         // alert("Votre plat favori est : " + posi);
										
					var fondCouleur = document.getElementById("demo");
					fondCouleur.contentWindow.document.getElementById("body").style.backgroundPosition = posi;
}


function fixe()
{
	    var cases = document.getElementById("form1").Groupe2;
     var type;

     // on recherche le bouton coche (s'il y en a un)
     for(var i=0; i<cases.length && !type; i++)
          if(cases[i].checked)
               type = cases[i].value;

     // s'il y en a un, on affiche la valeur correspondante
     if(type)    
         // alert("Votre plat favori est : " + type);
										
					var fondCouleur = document.getElementById("demo");
					fondCouleur.contentWindow.document.getElementById("body").style.backgroundAttachment = type;
}


function fondcouleurtab()
{
	
	if(blanc_globale == 0)
		{
			blanc();
		}
		
	var accesdemos = document.getElementById("demo");
	var valeur = document.forms["form1"].elements["fond_couleur_tab"].value;
	if(valeur == ""){valeur = "transparent";} // Si pas de couleur alors celle ci
	
	var fondCouleurTabProfil = accesdemos; // Acces IFRAME
	fondCouleurTabProfil.contentWindow.document.getElementById("modulebasicInfo").style.backgroundColor = valeur; // couleur fond profil
	fondCouleurTabProfil.contentWindow.document.getElementById("module2").style.backgroundColor = valeur; // couleur fond interets
	fondCouleurTabProfil.contentWindow.document.getElementById("module3").style.backgroundColor = valeur; // couleur fond détails
	fondCouleurTabProfil.contentWindow.document.getElementById("module7").style.backgroundColor = valeur; // couleur fond blog
	fondCouleurTabProfil.contentWindow.document.getElementById("module8").style.backgroundColor = valeur; // couleur fond présentation
	fondCouleurTabProfil.contentWindow.document.getElementById("module10").style.backgroundColor = valeur; // couleur fond amis
	fondCouleurTabProfil.contentWindow.document.getElementById("module_com").style.backgroundColor = valeur; // couleur fond commentaires
	
}


function fondcouleurtabr()
{
	
	if(blanc_globale == 0)
		{
			blanc();
		}
		
	document.getElementById('fond_couleur_tab').value = "";
	document.getElementById('fond_couleur_tab').style.backgroundColor = '#ffffff';
	document.getElementById('fond_couleur_tab').style.backgroundImage = "url(http://myspace-editeur-profil.com/couleur/css/inputColor.png)";
	
	var accesdemos = document.getElementById("demo");
	var valeur = "transparent";
	
	var fondCouleurTabProfil = accesdemos; // Acces IFRAME
	fondCouleurTabProfil.contentWindow.document.getElementById("modulebasicInfo").style.backgroundColor = valeur; // couleur fond	profil
	fondCouleurTabProfil.contentWindow.document.getElementById("module2").style.backgroundColor = valeur; // couleur fond interets
	fondCouleurTabProfil.contentWindow.document.getElementById("module3").style.backgroundColor = valeur; // couleur fond détails
	fondCouleurTabProfil.contentWindow.document.getElementById("module7").style.backgroundColor = valeur; // couleur fond blog
	fondCouleurTabProfil.contentWindow.document.getElementById("module8").style.backgroundColor = valeur; // couleur fond présentation
	fondCouleurTabProfil.contentWindow.document.getElementById("module10").style.backgroundColor = valeur; // couleur fond amis
	fondCouleurTabProfil.contentWindow.document.getElementById("module_com").style.backgroundColor = valeur; // couleur fond commentaires
}


function largeurborduretab()
{
	if(blanc_globale == 0)
	{
		blanc();
	}
	
	bordurestyle();
	bordurecolor();
	
	var accesdemos = document.getElementById("demo");
	var valeur = document.forms["form1"].elements["largeur_bordure_tab"].value;
	
	if(valeur == "") {valeur = 0;} // évite au navigateur de choisir taille au hazard
	
	var LargeurBordureTabProfil = accesdemos; // Acces IFRAME
	LargeurBordureTabProfil.contentWindow.document.getElementById("modulebasicInfo").style.borderWidth = valeur; // couleur fond profil
	LargeurBordureTabProfil.contentWindow.document.getElementById("module2").style.borderWidth = valeur; // couleur fond interets
	LargeurBordureTabProfil.contentWindow.document.getElementById("module3").style.borderWidth = valeur; // couleur fond détails
	LargeurBordureTabProfil.contentWindow.document.getElementById("module7").style.borderWidth = valeur; // couleur fond blog
	LargeurBordureTabProfil.contentWindow.document.getElementById("module8").style.borderWidth = valeur; // couleur fond présentation
	LargeurBordureTabProfil.contentWindow.document.getElementById("module10").style.borderWidth = valeur; // couleur fond amis
	LargeurBordureTabProfil.contentWindow.document.getElementById("module_com").style.borderWidth = valeur; // couleur fond commentaires
}


function bordurestyle()
{
	
	var accesdemos = document.getElementById("demo");
	var valeur = document.forms["form1"].elements["bordure_style"].options[document.forms["form1"].elements["bordure_style"].selectedIndex].value;
	
	var StyleBordureTabProfil = accesdemos; // Acces IFRAME
	StyleBordureTabProfil.contentWindow.document.getElementById("modulebasicInfo").style.borderStyle = valeur; // couleur fond	profil
	StyleBordureTabProfil.contentWindow.document.getElementById("module2").style.borderStyle = valeur; // couleur fond interets
	StyleBordureTabProfil.contentWindow.document.getElementById("module3").style.borderStyle = valeur; // couleur fond détails
	StyleBordureTabProfil.contentWindow.document.getElementById("module7").style.borderStyle = valeur; // couleur fond blog
	StyleBordureTabProfil.contentWindow.document.getElementById("module8").style.borderStyle = valeur; // couleur fond présentation
	StyleBordureTabProfil.contentWindow.document.getElementById("module10").style.borderStyle = valeur; // couleur fond amis
	StyleBordureTabProfil.contentWindow.document.getElementById("module_com").style.borderStyle = valeur; // couleur fond commentaires
}


function bordurecolor()
{
	var accesdemos = document.getElementById("demo");
	var valeur = document.forms["form1"].elements["bordure_color"].value;
	if(valeur == ""){valeur = "#988038";} // Si pas de couleur alors celle ci

	
	var ColorBordureTabProfil = accesdemos; // Acces IFRAME
	ColorBordureTabProfil.contentWindow.document.getElementById("modulebasicInfo").style.borderColor = valeur; // couleur fond profil
	ColorBordureTabProfil.contentWindow.document.getElementById("module2").style.borderColor = valeur; // couleur fond interets
	ColorBordureTabProfil.contentWindow.document.getElementById("module3").style.borderColor = valeur; // couleur fond détails
	ColorBordureTabProfil.contentWindow.document.getElementById("module7").style.borderColor = valeur; // couleur fond blog
	ColorBordureTabProfil.contentWindow.document.getElementById("module8").style.borderColor = valeur; // couleur fond présentation
	ColorBordureTabProfil.contentWindow.document.getElementById("module10").style.borderColor = valeur; // couleur fond amis
	ColorBordureTabProfil.contentWindow.document.getElementById("module_com").style.borderColor = valeur; // couleur fond commentaires
}


function fondimgtab()
{
	var accesdemos = document.getElementById("demo");
	
	var Url = document.forms["form1"].elements["fond_img_tab"].value;
	var Url = "url("+Url+")";
	
	var fondCouleur = accesdemos; // Acces IFRAME
	fondCouleur.contentWindow.document.getElementById("modulebasicInfo").style.backgroundImage = Url; // Img fond profil
	fondCouleur.contentWindow.document.getElementById("module2").style.backgroundImage = Url; // Img fond interets
	fondCouleur.contentWindow.document.getElementById("module3").style.backgroundImage = Url; // Img fond détails
	fondCouleur.contentWindow.document.getElementById("module7").style.backgroundImage = Url; // Img fond blog
	fondCouleur.contentWindow.document.getElementById("module8").style.backgroundImage = Url; // Img fond présentation
	fondCouleur.contentWindow.document.getElementById("module10").style.backgroundImage = Url; // Img fond amis
	fondCouleur.contentWindow.document.getElementById("module_com").style.backgroundImage = Url; // Img fond commentaires
}


function fondimgtabf(objet)
{
	if(blanc_globale == 0)
	{
		blanc();
	}
	
	var accesdemos = document.getElementById("demo");
	
	var Url = objet.options[objet.selectedIndex].value;
	
	if(Url != "none")
	 {var Url = "url(http://myspace-editeur-profil.com/ImgFondTab/"+Url+".jpg)";}
				else {var Url = "url(none)";}
	
	var fondCouleur = accesdemos; // Acces IFRAME
	fondCouleur.contentWindow.document.getElementById("modulebasicInfo").style.backgroundImage = Url; // Img fond profil
	fondCouleur.contentWindow.document.getElementById("module2").style.backgroundImage = Url; // Img fond interets
	fondCouleur.contentWindow.document.getElementById("module3").style.backgroundImage = Url; // Img fond détails
	fondCouleur.contentWindow.document.getElementById("module7").style.backgroundImage = Url; // Img fond blog
	fondCouleur.contentWindow.document.getElementById("module8").style.backgroundImage = Url; // Img fond présentation
	fondCouleur.contentWindow.document.getElementById("module10").style.backgroundImage = Url; // Img fond amis
	fondCouleur.contentWindow.document.getElementById("module_com").style.backgroundImage = Url; // Img fond commentaires
}


function police(objet)
{
	var accesdemos = document.getElementById("demo");
	var valeur = objet.value;
	
	if(valeur != "Style")
	{
		
	if(objet.name == "police1") // ligne1
		{
			var id = "nametext";
			accesdemos.contentWindow.document.getElementById(id).style.fontFamily = valeur;
		}
		else if(objet.name == "police2") // ligne2
			{
				var id = "moduleHead_interest";
				var fondCouleurTabProfil = accesdemos;
				fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
				
				var id = "moduleHead_details";
				var fondCouleurTabProfil = accesdemos;
				fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
				
				var id = "moduleHead_presentation";
				var fondCouleurTabProfil = accesdemos;
				fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
				
				var id = "moduleHead_amis";
				var fondCouleurTabProfil = accesdemos;
				fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
				
				var id = "moduleHead_com";
				var fondCouleurTabProfil = accesdemos;
				fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
				
			}
						else if(objet.name == "police4") // ligne4
							{
								var id = "interestMusic_st";
								var fondCouleurTabProfil = accesdemos;
								fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
								
								var id = "interestMovies_st";
								var fondCouleurTabProfil = accesdemos;
								fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
								
								var id = "interestTelevision_st";
								var fondCouleurTabProfil = accesdemos;
								fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
								
								var id = "interestBooks_st";
								var fondCouleurTabProfil = accesdemos;
								fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
								
								var id = "odd11";
								var fondCouleurTabProfil = accesdemos;
								fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
								
								var id = "odd22";
								var fondCouleurTabProfil = accesdemos;
								fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
								
								var id = "odd33";
								var fondCouleurTabProfil = accesdemos;
								fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
								
								var id = "odd44";
								var fondCouleurTabProfil = accesdemos;
								fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
								
								var id = "odd55";
								var fondCouleurTabProfil = accesdemos;
								fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
								
								var id = "odd66";
								var fondCouleurTabProfil = accesdemos;
								fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
								
								var id = "even11";
								var fondCouleurTabProfil = accesdemos;
								fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
								
								var id = "even22";
								var fondCouleurTabProfil = accesdemos;
								fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
								
								var id = "even33";
								var fondCouleurTabProfil = accesdemos;
								fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
								
								var id = "even44";
								var fondCouleurTabProfil = accesdemos;
								fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
								
								var id = "even55";
								var fondCouleurTabProfil = accesdemos;
								fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
								
								var id = "even66";
								var fondCouleurTabProfil = accesdemos;
								fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
								
								var id = "propos";
								var fondCouleurTabProfil = accesdemos;
								fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
								
								var id = "qui";
								var fondCouleurTabProfil = accesdemos;
								fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
							}
								else if(objet.name == "police5") // ligne5
									{
										var corp = 26;
										for (i=1; i<=corp; i++)
											{
												var id = 'corp'+i;
												var fondCouleurTabProfil = accesdemos;
												fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
											}
									}
										else if(objet.name == "police6") // ligne4
											{
												var id = "nbamis";
												var fondCouleurTabProfil = accesdemos;
												fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
												
												var id = "nbcom1";
												var fondCouleurTabProfil = accesdemos;
												fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
												
												var id = "nbcom2";
												var fondCouleurTabProfil = accesdemos;
												fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
											}
												else if(objet.name == "police7") // ligne7
													{
														var fondCouleurTabProfil = accesdemos;
														for(i=44; i<=86; i++)
														{fondCouleurTabProfil.contentWindow.document.links[i].style.fontFamily = valeur;}
														fondCouleurTabProfil.contentWindow.document.getElementById("outpol").value = valeur;
													}
															else if(objet.name == "police8") // ligne7
																{
																	var fondCouleurTabProfil = accesdemos;
																	fondCouleurTabProfil.contentWindow.document.getElementById("overpol").value = valeur;
																}
	}
}


function taille(objet)
{
	var accesdemos = document.getElementById("demo");
	var valeur = objet.value;
	
	if(valeur != "Choix")
	{
		
	if(objet.name == "taille1") // ligne1
		{
			var id = "nametext";
			var fondCouleurTabProfil = accesdemos;
			fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
		}
		else if(objet.name == "taille2") // ligne2
			{
			var id = "moduleHead_interest";
				var fondCouleurTabProfil = accesdemos;
				fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
				
				var id = "moduleHead_details";
				var fondCouleurTabProfil = accesdemos;
				fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
				
				var id = "moduleHead_presentation";
				var fondCouleurTabProfil = accesdemos;
				fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
				
				var id = "moduleHead_amis";
				var fondCouleurTabProfil = accesdemos;
				fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
				
				var id = "moduleHead_com";
				var fondCouleurTabProfil = accesdemos;
				fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
			}
			else if(objet.name == "taille3") // ligne3
				{
					var id = "btext";
					var fondCouleurTabProfil = accesdemos;
					fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
					
					var id = "orangetext15titre1";
					var fondCouleurTabProfil = accesdemos;
					fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
					
					var id = "orangetext15titre2";
					var fondCouleurTabProfil = accesdemos;
					fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
					
					var id = "orangetext15titre3";
					var fondCouleurTabProfil = accesdemos;
					fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
					
					var id = "orangetext15titre4";
					var fondCouleurTabProfil = accesdemos;
					fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
					
					var id = "orangetext15titre5";
					var fondCouleurTabProfil = accesdemos;
					fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
				}
						else if(objet.name == "taille4") // ligne3
							{
								var id = "interestMusic_st";
								var fondCouleurTabProfil = accesdemos;
								fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
								
								var id = "interestMovies_st";
								var fondCouleurTabProfil = accesdemos;
								fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
								
								var id = "interestTelevision_st";
								var fondCouleurTabProfil = accesdemos;
								fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
								
								var id = "interestBooks_st";
								var fondCouleurTabProfil = accesdemos;
								fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
								
								var id = "odd11";
								var fondCouleurTabProfil = accesdemos;
								fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
								
								var id = "odd22";
								var fondCouleurTabProfil = accesdemos;
								fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
								
								var id = "odd33";
								var fondCouleurTabProfil = accesdemos;
								fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
								
								var id = "odd44";
								var fondCouleurTabProfil = accesdemos;
								fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
								
								var id = "odd55";
								var fondCouleurTabProfil = accesdemos;
								fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
								
								var id = "odd66";
								var fondCouleurTabProfil = accesdemos;
								fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
								
								var id = "even11";
								var fondCouleurTabProfil = accesdemos;
								fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
								
								var id = "even22";
								var fondCouleurTabProfil = accesdemos;
								fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
								
								var id = "even33";
								var fondCouleurTabProfil = accesdemos;
								fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
								
								var id = "even44";
								var fondCouleurTabProfil = accesdemos;
								fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
								
								var id = "even55";
								var fondCouleurTabProfil = accesdemos;
								fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
								
								var id = "even66";
								var fondCouleurTabProfil = accesdemos;
								fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
								
								var id = "propos";
								var fondCouleurTabProfil = accesdemos;
								fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
								
								var id = "qui";
								var fondCouleurTabProfil = accesdemos;
								fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
							}
									else if(objet.name == "taille5") // ligne5
									{
										var corp = 26;
										for (i=1; i<=corp; i++)
											{
												var id = 'corp'+i;
												var fondCouleurTabProfil = accesdemos;
												fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
											}
									}
										else if(objet.name == "taille6") // ligne6
											{
												var id = "nbamis";
												var fondCouleurTabProfil = accesdemos;
												fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
												
												var id = "nbcom1";
												var fondCouleurTabProfil = accesdemos;
												fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
												
												var id = "nbcom2";
												var fondCouleurTabProfil = accesdemos;
												fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
											}
												else if(objet.name == "taille7") // ligne7
													{
														var fondCouleurTabProfil = accesdemos;
														for(i=44; i<=86; i++)
														{fondCouleurTabProfil.contentWindow.document.links[i].style.fontSize = valeur;}
														fondCouleurTabProfil.contentWindow.document.getElementById("outtaille").value = valeur;
													}
														else if(objet.name == "taille8") // ligne7
																{
																	var fondCouleurTabProfil = accesdemos;
																	fondCouleurTabProfil.contentWindow.document.getElementById("overtaille").value = valeur;
																}
	}
}


function textcouleur(objet)
{
	if(blanc_globale == 0)
	{
		blanc();
	}
	
	var accesdemos = document.getElementById("demo");
	var fondCouleurTabProfil = accesdemos; // Acces IFRAME
	
	if(objet.name == "bouton7") // ligne1
		{
			var id = "nametext";
			var valeur = document.forms["form1"].elements["text_couleur1"].value; // couleur fond
			fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur; // val police couleur
		}
	else if (objet.name == "bouton8") // ligne1
		{
			var id = "nametext";
			var valeur = document.forms["form1"].elements["text_couleur11"].value; // couleur fond
			fondCouleurTabProfil.contentWindow.document.getElementById(id).style.backgroundColor = valeur;
		}
			else if(objet.name == "bouton9") // ligne2
				{
					var valeur = document.forms["form1"].elements["text_couleur2"].value;
					
					var id = "moduleHead_interest";
					fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
					
					var id = "moduleHead_details";
					fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
					
					var id = "moduleHead_presentation";
					fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
					
					var id = "moduleHead_amis";
					fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
					
					var id = "moduleHead_com";
					fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
				}
					else if(objet.name == "bouton10") // ligne2
						{
							var valeur = document.forms["form1"].elements["text_couleur22"].value;
					
							var id = "moduleHead_interest";
							fondCouleurTabProfil.contentWindow.document.getElementById(id).style.backgroundColor = valeur;
							
							var id = "moduleHead_details";
							fondCouleurTabProfil.contentWindow.document.getElementById(id).style.backgroundColor = valeur;
							
							var id = "moduleHead_presentation";
							fondCouleurTabProfil.contentWindow.document.getElementById(id).style.backgroundColor = valeur;
							
							var id = "moduleHead_amis";
							fondCouleurTabProfil.contentWindow.document.getElementById(id).style.backgroundColor = valeur;
							
							var id = "moduleHead_com";
							fondCouleurTabProfil.contentWindow.document.getElementById(id).style.backgroundColor = valeur;
						}
							else if(objet.name == "bouton11") // ligne3
								{
									var id = "btext";
									var valeur = document.forms["form1"].elements["text_couleur3"].value;
									fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
									
									var id = "orangetext15titre1";
									var valeur = document.forms["form1"].elements["text_couleur3"].value;
									fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
									
									var id = "orangetext15titre2";
									var valeur = document.forms["form1"].elements["text_couleur3"].value;
									fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
									
									var id = "orangetext15titre3";
									var valeur = document.forms["form1"].elements["text_couleur3"].value;
									fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
									
									var id = "orangetext15titre4";
									var valeur = document.forms["form1"].elements["text_couleur3"].value;
									fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
									
									var id = "orangetext15titre5";
									var valeur = document.forms["form1"].elements["text_couleur3"].value;
									fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
								}
									else if(objet.name == "bouton12") // ligne3
										{
											var id = "btext1";
											var valeur = document.forms["form1"].elements["text_couleur33"].value;
											fondCouleurTabProfil.contentWindow.document.getElementById(id).style.backgroundColor = valeur;
											
											var id = "orangetext15titre11";
											var valeur = document.forms["form1"].elements["text_couleur33"].value;
											fondCouleurTabProfil.contentWindow.document.getElementById(id).style.backgroundColor = valeur;
											
											var id = "orangetext15titre22";
											var valeur = document.forms["form1"].elements["text_couleur33"].value;
											fondCouleurTabProfil.contentWindow.document.getElementById(id).style.backgroundColor = valeur;
											
											var id = "orangetext15titre33";
											var valeur = document.forms["form1"].elements["text_couleur33"].value;
											fondCouleurTabProfil.contentWindow.document.getElementById(id).style.backgroundColor = valeur;
											
											var id = "orangetext15titre44";
											var valeur = document.forms["form1"].elements["text_couleur33"].value;
											fondCouleurTabProfil.contentWindow.document.getElementById(id).style.backgroundColor = valeur;
											
											var id = "orangetext15titre55";
											var valeur = document.forms["form1"].elements["text_couleur33"].value;
											fondCouleurTabProfil.contentWindow.document.getElementById(id).style.backgroundColor = valeur;
										}
												else if(objet.name == "bouton13") // ligne4
													{

														var valeur = document.forms["form1"].elements["text_couleur4"].value;

														var id = "interestMusic_st";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
														
														var id = "interestMovies_st";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
														
														var id = "interestTelevision_st";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
														
														var id = "interestBooks_st";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
														
														var id = "odd11";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
														
														var id = "odd22";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
														
														var id = "odd33";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
														
														var id = "odd44";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
														
														var id = "odd55";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
														
														var id = "odd66";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
														
														var id = "even11";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
														
														var id = "even22";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
														
														var id = "even33";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
														
														var id = "even44";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
														
														var id = "even55";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
														
														var id = "even66";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
														
														var id = "propos";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
														
														var id = "qui";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
													}
															else if(objet.name == "bouton14") // ligne3
																{
																	var valeur = document.forms["form1"].elements["text_couleur44"].value;

																	var id = "interestMusic_st";
																	fondCouleurTabProfil.contentWindow.document.getElementById(id).style.backgroundColor = valeur;
																	
																	var id = "interestMovies_st";
																	fondCouleurTabProfil.contentWindow.document.getElementById(id).style.backgroundColor = valeur;
																	
																	var id = "interestTelevision_st";
																	fondCouleurTabProfil.contentWindow.document.getElementById(id).style.backgroundColor = valeur;
																	
																	var id = "interestBooks_st";
																	fondCouleurTabProfil.contentWindow.document.getElementById(id).style.backgroundColor = valeur;
																	
																	var id = "odd11";
																	fondCouleurTabProfil.contentWindow.document.getElementById(id).style.backgroundColor = valeur;
																	
																	var id = "odd22";
																	fondCouleurTabProfil.contentWindow.document.getElementById(id).style.backgroundColor = valeur;
																	
																	var id = "odd33";
																	fondCouleurTabProfil.contentWindow.document.getElementById(id).style.backgroundColor = valeur;
																	
																	var id = "odd44";
																	fondCouleurTabProfil.contentWindow.document.getElementById(id).style.backgroundColor = valeur;
																	
																	var id = "odd55";
																	fondCouleurTabProfil.contentWindow.document.getElementById(id).style.backgroundColor = valeur;
																	
																	var id = "odd66";
																	fondCouleurTabProfil.contentWindow.document.getElementById(id).style.backgroundColor = valeur;
																	
																	var id = "even11";
																	fondCouleurTabProfil.contentWindow.document.getElementById(id).style.backgroundColor = valeur;
																	
																	var id = "even22";
																	fondCouleurTabProfil.contentWindow.document.getElementById(id).style.backgroundColor = valeur;
																	
																	var id = "even33";
																	fondCouleurTabProfil.contentWindow.document.getElementById(id).style.backgroundColor = valeur;
																	
																	var id = "even44";
																	fondCouleurTabProfil.contentWindow.document.getElementById(id).style.backgroundColor = valeur;
																	
																	var id = "even55";
																	fondCouleurTabProfil.contentWindow.document.getElementById(id).style.backgroundColor = valeur;
																	
																	var id = "even66";
																	fondCouleurTabProfil.contentWindow.document.getElementById(id).style.backgroundColor = valeur;
																	
																	var id = "propos";
																	fondCouleurTabProfil.contentWindow.document.getElementById(id).style.backgroundColor = valeur;
																	
																	var id = "qui";
																	fondCouleurTabProfil.contentWindow.document.getElementById(id).style.backgroundColor = valeur;
																}
																		else if(objet.name == "bouton15") // ligne5
																			{
																				var valeur = document.forms["form1"].elements["text_couleur5"].value;
																				var corp = 26;
																				for (i=1; i<=corp; i++)
																					{
																						var id = 'corp'+i;
																						var fondCouleurTabProfil = accesdemos;
																						fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
																					}
																			}
																			else if(objet.name == "bouton16") // ligne6
																				{
																					var valeur = document.forms["form1"].elements["text_couleur6"].value;
																					
																					var id = "nbamis";
																					fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
																					
																					var id = "nbcom1";
																					fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
																					
																					var id = "nbcom2";
																					fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
																				}
																					else if(objet.name == "bouton17") // ligne6
																						{
																							var valeur = document.forms["form1"].elements["text_couleur66"].value;
																							
																							var id = "nbamis";
																							fondCouleurTabProfil.contentWindow.document.getElementById(id).style.backgroundColor = valeur;
																							
																							var id = "nbcom1";
																							fondCouleurTabProfil.contentWindow.document.getElementById(id).style.backgroundColor = valeur;
																							
																							var id = "nbcom2";
																							fondCouleurTabProfil.contentWindow.document.getElementById(id).style.backgroundColor = valeur;
																						}
																							else if(objet.name == "bouton18") // ligne7
																								{
																									var valeur = document.forms["form1"].elements["text_couleur7"].value;
																									for(i=44; i<=86; i++)
																									{fondCouleurTabProfil.contentWindow.document.links[i].style.color = valeur;}
																									fondCouleurTabProfil.contentWindow.document.getElementById("outcouleurtext").value = valeur;
																								}
																										else if(objet.name == "bouton19") // ligne7
																											{
																												var valeur = document.forms["form1"].elements["text_couleur77"].value;
																												for(i=44; i<=86; i++)
																												{fondCouleurTabProfil.contentWindow.document.links[i].style.backgroundColor = valeur;}
																												fondCouleurTabProfil.contentWindow.document.getElementById("outsurlignetext").value = valeur;
																											}
																												else if(objet.name == "bouton20") // ligne8
																											{
																												var valeur = document.forms["form1"].elements["text_couleur8"].value;
																												fondCouleurTabProfil.contentWindow.document.getElementById("overcouleurtext").value = valeur;
																											}
																												else if(objet.name == "bouton21") // ligne8
																												{
																													var valeur = document.forms["form1"].elements["text_couleur88"].value;
																													fondCouleurTabProfil.contentWindow.document.getElementById("oversurlignetext").value = valeur;
																												}
}


function espacement(objet)
{
	var accesdemos = document.getElementById("demo");
	var valeur = objet.value; 
	
	if(objet.name == "espacement1") // ligne1
		{
			var id = "nametext";
			var fondCouleurTabProfil = accesdemos;
			fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
		}
			else if(objet.name == "espacement2") // Ligne2
				{					
					var fondCouleurTabProfil = accesdemos;
				
					var id = "moduleHead_interest";
					fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
					
					var id = "moduleHead_details";
					fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
					
					var id = "moduleHead_presentation";
					fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
					
					var id = "moduleHead_amis";
					fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
					
					var id = "moduleHead_com";
					fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
				}
					else if(objet.name == "espacement3") // Ligne3
						{
							var id = "btext";
							var fondCouleurTabProfil = accesdemos;
							fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
							
							var id = "orangetext15titre1";
							var fondCouleurTabProfil = accesdemos;
							fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
							
							var id = "orangetext15titre2";
							var fondCouleurTabProfil = accesdemos;
							fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
							
							var id = "orangetext15titre3";
							var fondCouleurTabProfil = accesdemos;
							fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
							
							var id = "orangetext15titre4";
							var fondCouleurTabProfil = accesdemos;
							fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
							
							var id = "orangetext15titre5";
							var fondCouleurTabProfil = accesdemos;
							fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
						}
								else if(objet.name == "espacement4") // Ligne4
									{
										var id = "interestMusic_st";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
										
										var id = "interestMovies_st";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
										
										var id = "interestTelevision_st";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
										
										var id = "interestBooks_st";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
										
										var id = "odd11";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
										
										var id = "odd22";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
										
										var id = "odd33";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
										
										var id = "odd44";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
										
										var id = "odd55";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
										
										var id = "odd66";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
										
										var id = "even11";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
										
										var id = "even22";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
										
										var id = "even33";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
										
										var id = "even44";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
										
										var id = "even55";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
										
										var id = "even66";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
										
										var id = "propos";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
										
										var id = "qui";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
									}
											else if(objet.name == "espacement5") // ligne5
												{
													var corp = 26;
													for (i=1; i<=corp; i++)
														{
															var id = 'corp'+i;
															var fondCouleurTabProfil = accesdemos;
															fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
														}												
												}
														else if(objet.name == "espacement6") // ligne6
															{
																var id = "nbamis";
																var fondCouleurTabProfil = accesdemos;
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
																
																var id = "nbcom1";
																var fondCouleurTabProfil = accesdemos;
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
																
																var id = "nbcom2";
																var fondCouleurTabProfil = accesdemos;
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
															}
																	else if(objet.name == "espacement7") // ligne7
																		{
																			var fondCouleurTabProfil = accesdemos;
																			for(i=44; i<=86; i++)
																			{fondCouleurTabProfil.contentWindow.document.links[i].style.letterSpacing = valeur;}
																			fondCouleurTabProfil.contentWindow.document.getElementById("outespace").value = valeur;
																		}
																			else if(objet.name == "espacement8") // ligne7
																				{
																					var fondCouleurTabProfil = accesdemos;
																					fondCouleurTabProfil.contentWindow.document.getElementById("overespace").value = valeur;
																				}
}


function alignement(objet)
{
	var accesdemos = document.getElementById("demo");
	var valeur = objet.value; 
	
	if(objet.name == "alignement1")
		{
			var id = "nametext";
			var fondCouleurTabProfil = accesdemos;
			var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textAlign = valeur;
		}
			else if(objet.name == "alignement2")
				{
					var fondCouleurTabProfil = accesdemos;
				
					var id = "moduleHead_interest";
					fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textAlign = valeur;
					
					var id = "moduleHead_details";
					fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textAlign = valeur;
					
					var id = "moduleHead_presentation";
					fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textAlign = valeur;
					
					var id = "moduleHead_amis";
					fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textAlign = valeur;
					
					var id = "moduleHead_com";
					fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textAlign = valeur;
				}
					else if(objet.name == "alignement3") // Ligne3
						{
							var id = "btext1";
							var fondCouleurTabProfil = accesdemos;
							fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textAlign = valeur;
							
							var id = "orangetext15titre11";
							var fondCouleurTabProfil = accesdemos;
							fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textAlign = valeur;
							
							var id = "orangetext15titre22";
							var fondCouleurTabProfil = accesdemos;
							fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textAlign = valeur;
							
							var id = "orangetext15titre33";
							var fondCouleurTabProfil = accesdemos;
							fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textAlign = valeur;
							
							var id = "orangetext15titre44";
							var fondCouleurTabProfil = accesdemos;
							fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textAlign = valeur;
							
							var id = "orangetext15titre55";
							var fondCouleurTabProfil = accesdemos;
							fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textAlign = valeur;
						}
								else if(objet.name == "alignement4")
									{
										var id = "interestMusic_st";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textAlign = valeur;
										
										var id = "interestMovies_st";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textAlign = valeur;
										
										var id = "interestTelevision_st";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textAlign = valeur;
										
										var id = "interestBooks_st";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textAlign = valeur;
										
										var id = "odd11";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textAlign = valeur;
										
										var id = "odd22";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textAlign = valeur;
										
										var id = "odd33";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textAlign = valeur;
										
										var id = "odd44";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textAlign = valeur;
										
										var id = "odd55";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textAlign = valeur;
										
										var id = "odd66";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textAlign = valeur;
										
										var id = "even11";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textAlign = valeur;
										
										var id = "even22";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textAlign = valeur;
										
										var id = "even33";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textAlign = valeur;
										
										var id = "even44";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textAlign = valeur;
										
										var id = "even55";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textAlign = valeur;
										
										var id = "even66";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textAlign = valeur;
										
										var id = "propos";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textAlign = valeur;
										
										var id = "qui";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textAlign = valeur;
									}
}



function gras(objet)
{
	var accesdemos = document.getElementById("demo");
	
	if(objet.name == "gras1" && objet.checked)
		{
			var id = "nametext";
			valeur = "bold";
			var fondCouleurTabProfil = accesdemos;
			var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
		}
		else if(objet.name == "gras1" && objet.checked == false)
			{
				var id = "nametext";
				valeur = "normal";
				var fondCouleurTabProfil = accesdemos;
				var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
			}
				else if(objet.name == "gras2" && objet.checked)
					{
						var id = "moduleHead_interest";
						valeur = "bold";
						var fondCouleurTabProfil = accesdemos;
						var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
						
						var id = "moduleHead_details";
						valeur = "bold";
						var fondCouleurTabProfil = accesdemos;
						var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
						
						var id = "moduleHead_presentation";
						valeur = "bold";
						var fondCouleurTabProfil = accesdemos;
						var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
						
						var id = "moduleHead_amis";
						valeur = "bold";
						var fondCouleurTabProfil = accesdemos;
						var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
						
						var id = "moduleHead_com";
						valeur = "bold";
						var fondCouleurTabProfil = accesdemos;
						var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
					}
						else if(objet.name == "gras2" && objet.checked == false)
						{
							var id = "moduleHead_interest";
						valeur = "normal";
						var fondCouleurTabProfil = accesdemos;
						var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
						
						var id = "moduleHead_details";
						valeur = "normal";
						var fondCouleurTabProfil = accesdemos;
						var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
						
						var id = "moduleHead_presentation";
						valeur = "normal";
						var fondCouleurTabProfil = accesdemos;
						var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
						
						var id = "moduleHead_amis";
						valeur = "normal";
						var fondCouleurTabProfil = accesdemos;
						var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
						
						var id = "moduleHead_com";
						valeur = "normal";
						var fondCouleurTabProfil = accesdemos;
						var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
						}
							else if(objet.name == "gras3" && objet.checked)
								{
									var id = "btext";
									valeur = "bold";
									var fondCouleurTabProfil = accesdemos;
									var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
									
									var id = "orangetext15titre1";
									valeur = "bold";
									var fondCouleurTabProfil = accesdemos;
									var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
									
									var id = "orangetext15titre2";
									valeur = "bold";
									var fondCouleurTabProfil = accesdemos;
									var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
									
									var id = "orangetext15titre3";
									valeur = "bold";
									var fondCouleurTabProfil = accesdemos;
									var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
									
									var id = "orangetext15titre4";
									valeur = "bold";
									var fondCouleurTabProfil = accesdemos;
									var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
									
									var id = "orangetext15titre5";
									valeur = "bold";
									var fondCouleurTabProfil = accesdemos;
									var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
								}
									else if(objet.name == "gras3" && objet.checked == false)
										{
											var id = "btext";
											valeur = "normal";
											var fondCouleurTabProfil = accesdemos;
											var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
											
											var id = "orangetext15titre1";
											valeur = "normal";
											var fondCouleurTabProfil = accesdemos;
											var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
											
											var id = "orangetext15titre2";
											valeur = "normal";
											var fondCouleurTabProfil = accesdemos;
											var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
											
											var id = "orangetext15titre3";
											valeur = "normal";
											var fondCouleurTabProfil = accesdemos;
											var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
											
											var id = "orangetext15titre4";
											valeur = "normal";
											var fondCouleurTabProfil = accesdemos;
											var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
											
											var id = "orangetext15titre5";
											valeur = "normal";
											var fondCouleurTabProfil = accesdemos;
											var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
										}
												else if(objet.name == "gras4" && objet.checked)
													{
														var fondCouleurTabProfil = accesdemos;
														valeur = "bold";
														
														var id = "interestMusic_st";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
														
														var id = "interestMovies_st";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
														
														var id = "interestTelevision_st";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
														
														var id = "interestBooks_st";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
														
														var id = "odd11";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
														
														var id = "odd22";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
														
														var id = "odd33";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
														
														var id = "odd44";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
														
														var id = "odd55";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
														
														var id = "odd66";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
														
														var id = "even11";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
														
														var id = "even22";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
														
														var id = "even33";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
														
														var id = "even44";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
														
														var id = "even55";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
														
														var id = "even66";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
														
														var id = "propos";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
														
														var id = "qui";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
													}
														else if(objet.name == "gras4" && objet.checked == false)
															{
																var fondCouleurTabProfil = accesdemos;
																valeur = "normal";
																
																var id = "interestMusic_st";
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																
																var id = "interestMovies_st";
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																
																var id = "interestTelevision_st";
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																
																var id = "interestBooks_st";
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																
																var id = "odd11";
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																
																var id = "odd22";
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																
																var id = "odd33";
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																
																var id = "odd44";
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																
																var id = "odd55";
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																
																var id = "odd66";
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																
																var id = "even11";
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																
																var id = "even22";
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																
																var id = "even33";
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																
																var id = "even44";
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																
																var id = "even55";
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																
																var id = "even66";
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																
																var id = "propos";
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																
																var id = "qui";
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
															}
																	else if(objet.name == "gras5" && objet.checked) // ligne5
																		{
																			valeur = "bold";
																			var corp = 26;
																			for (i=1; i<=corp; i++)
																				{
																					var id = 'corp'+i;
																					var fondCouleurTabProfil = accesdemos;
																					fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																				}
																		}
																				else if(objet.name == "gras5" && objet.checked == false) // ligne5
																					{
																						valeur = "normal";
																						var corp = 26;
																						for (i=1; i<=corp; i++)
																							{
																								var id = 'corp'+i;
																								var fondCouleurTabProfil = accesdemos;
																								fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																							}
																					}
																							else if(objet.name == "gras6" && objet.checked) // ligne6
																								{
																									var fondCouleurTabProfil = accesdemos;
																									valeur = "bold";
																									
																									var id = "nbamis";
																									fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																									
																									var id = "nbcom1";
																									fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																									
																									var id = "nbcom2";
																									fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																								}
																									else if(objet.name == "gras6" && objet.checked == false) // ligne6
																										{
																											var fondCouleurTabProfil = accesdemos;
																											valeur = "normal";
																											
																											var id = "nbamis";
																											fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																											
																											var id = "nbcom1";
																											fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																											
																											var id = "nbcom2";
																											fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																										}
																												else if(objet.name == "gras7" && objet.checked) // ligne7
																													{
																														valeur = "bold";
																														var fondCouleurTabProfil = accesdemos;
																														for(i=44; i<=86; i++)
																														{fondCouleurTabProfil.contentWindow.document.links[i].style.fontWeight = valeur;}
																														fondCouleurTabProfil.contentWindow.document.getElementById("outgras").value = valeur;
																													}
																														else if(objet.name == "gras7" && objet.checked == false) // ligne7
																															{
																																valeur = "normal";
																																var fondCouleurTabProfil = accesdemos;
																																for(i=44; i<=86; i++)
																																{fondCouleurTabProfil.contentWindow.document.links[i].style.fontWeight = valeur;}
																																fondCouleurTabProfil.contentWindow.document.getElementById("outgras").value = valeur;
																															}
																																else if(objet.name == "gras8" && objet.checked) // ligne7
																																	{
																																		valeur = "bold";
																																		var fondCouleurTabProfil = accesdemos;
																																		fondCouleurTabProfil.contentWindow.document.getElementById("overgras").value = valeur;
																																	}
																																		else if(objet.name == "gras8" && objet.checked == false) // ligne7
																																			{
																																				valeur = "normal";
																																				var fondCouleurTabProfil = accesdemos;
																																				fondCouleurTabProfil.contentWindow.document.getElementById("overgras").value = valeur;
																																			}
}



function italique(objet)
{
	var accesdemos = document.getElementById("demo");
	
	if(objet.name == "italique1" && objet.checked)
		{
			var id = "nametext";
			valeur = "italic";
			var fondCouleurTabProfil = accesdemos;
			var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
		}
		else if(objet.name == "italique1" && objet.checked == false)
			{
				var id = "nametext";
				valeur = "normal";
				var fondCouleurTabProfil = accesdemos;
				var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
			}
				else if(objet.name == "italique2" && objet.checked)
					{
						var id = "moduleHead_interest";
						valeur = "italic";
						var fondCouleurTabProfil = accesdemos;
						var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
						
						var id = "moduleHead_details";
						valeur = "italic";
						var fondCouleurTabProfil = accesdemos;
						var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
						
						var id = "moduleHead_presentation";
						valeur = "italic";
						var fondCouleurTabProfil = accesdemos;
						var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
						
						var id = "moduleHead_amis";
						valeur = "italic";
						var fondCouleurTabProfil = accesdemos;
						var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
						
						var id = "moduleHead_com";
						valeur = "italic";
						var fondCouleurTabProfil = accesdemos;
						var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
					}
						else if(objet.name == "italique2" && objet.checked == false)
						{
							var id = "moduleHead_interest";
						valeur = "normal";
						var fondCouleurTabProfil = accesdemos;
						var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
						
						var id = "moduleHead_details";
						valeur = "normal";
						var fondCouleurTabProfil = accesdemos;
						var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
						
						var id = "moduleHead_presentation";
						valeur = "normal";
						var fondCouleurTabProfil = accesdemos;
						var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
						
						var id = "moduleHead_amis";
						valeur = "normal";
						var fondCouleurTabProfil = accesdemos;
						var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
						
						var id = "moduleHead_com";
						valeur = "normal";
						var fondCouleurTabProfil = accesdemos;
						var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
						}
							else if(objet.name == "italique3" && objet.checked)
								{
									var id = "btext";
									valeur = "italic";
									var fondCouleurTabProfil = accesdemos;
									var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
									
									var id = "orangetext15titre1";
									valeur = "italic";
									var fondCouleurTabProfil = accesdemos;
									var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
									
									var id = "orangetext15titre2";
									valeur = "italic";
									var fondCouleurTabProfil = accesdemos;
									var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
									
									var id = "orangetext15titre3";
									valeur = "italic";
									var fondCouleurTabProfil = accesdemos;
									var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
									
									var id = "orangetext15titre4";
									valeur = "italic";
									var fondCouleurTabProfil = accesdemos;
									var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
									
									var id = "orangetext15titre5";
									valeur = "italic";
									var fondCouleurTabProfil = accesdemos;
									var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
								}
									else if(objet.name == "italique3" && objet.checked == false)
										{
											var id = "btext";
											valeur = "normal";
											var fondCouleurTabProfil = accesdemos;
											var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
											
											var id = "orangetext15titre1";
											valeur = "normal";
											var fondCouleurTabProfil = accesdemos;
											var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
											
											var id = "orangetext15titre2";
											valeur = "normal";
											var fondCouleurTabProfil = accesdemos;
											var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
											
											var id = "orangetext15titre3";
											valeur = "normal";
											var fondCouleurTabProfil = accesdemos;
											var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
											
											var id = "orangetext15titre4";
											valeur = "normal";
											var fondCouleurTabProfil = accesdemos;
											var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
											
											var id = "orangetext15titre5";
											valeur = "normal";
											var fondCouleurTabProfil = accesdemos;
											var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
										}
												else if(objet.name == "italique4" && objet.checked)
													{
														var fondCouleurTabProfil = accesdemos;
														valeur = "italic";
														
														var id = "interestMusic_st";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
														
														var id = "interestMovies_st";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
														
														var id = "interestTelevision_st";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
														
														var id = "interestBooks_st";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
														
														var id = "odd11";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
														
														var id = "odd22";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
														
														var id = "odd33";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
														
														var id = "odd44";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
														
														var id = "odd55";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
														
														var id = "odd66";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
														
														var id = "even11";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
														
														var id = "even22";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
														
														var id = "even33";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
														
														var id = "even44";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
														
														var id = "even55";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
														
														var id = "even66";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
														
														var id = "propos";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
														
														var id = "qui";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
													}
														else if(objet.name == "italique4" && objet.checked == false)
															{
																var fondCouleurTabProfil = accesdemos;
																valeur = "normal";
																
																var id = "interestMusic_st";
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																
																var id = "interestMovies_st";
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																
																var id = "interestTelevision_st";
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																
																var id = "interestBooks_st";
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																
																var id = "odd11";
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																
																var id = "odd22";
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																
																var id = "odd33";
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																
																var id = "odd44";
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																
																var id = "odd55";
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																
																var id = "odd66";
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																
																var id = "even11";
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																
																var id = "even22";
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																
																var id = "even33";
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																
																var id = "even44";
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																
																var id = "even55";
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																
																var id = "even66";
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																
																var id = "propos";
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																
																var id = "qui";
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
															}
																	else if(objet.name == "italique5" && objet.checked) // ligne5
																		{
																			valeur = "italic";
																			var corp = 26;
																			for (i=1; i<=corp; i++)
																				{
																					var id = 'corp'+i;
																					var fondCouleurTabProfil = accesdemos;
																					fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																				}
																		}
																				else if(objet.name == "italique5" && objet.checked == false) // ligne5
																					{
																						valeur = "normal";
																						var corp = 26;
																						for (i=1; i<=corp; i++)
																							{
																								var id = 'corp'+i;
																								var fondCouleurTabProfil = accesdemos;
																								fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																							}
																					}
																							else if(objet.name == "italique6" && objet.checked) // ligne6
																								{
																									var fondCouleurTabProfil = accesdemos;
																									valeur = "italic";
																									
																									var id = "nbamis";
																									fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																									
																									var id = "nbcom1";
																									fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																									
																									var id = "nbcom2";
																									fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																								}
																									else if(objet.name == "italique6" && objet.checked == false) // ligne6
																										{
																											var fondCouleurTabProfil = accesdemos;
																											valeur = "normal";
																											
																											var id = "nbamis";
																											fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																											
																											var id = "nbcom1";
																											fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																											
																											var id = "nbcom2";
																											fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																										}
																												else if(objet.name == "italique7" && objet.checked) // ligne7
																													{
																														valeur = "italic";
																														var fondCouleurTabProfil = accesdemos;
																														for(i=44; i<=86; i++)
																														{fondCouleurTabProfil.contentWindow.document.links[i].style.fontStyle = valeur;}
																														fondCouleurTabProfil.contentWindow.document.getElementById("outitalique").value = valeur;
																													}
																														else if(objet.name == "italique7" && objet.checked == false) // ligne7
																															{
																																valeur = "normal";
																																var fondCouleurTabProfil = accesdemos;
																																for(i=44; i<=86; i++)
																																{fondCouleurTabProfil.contentWindow.document.links[i].style.fontStyle = valeur;}
																																fondCouleurTabProfil.contentWindow.document.getElementById("outitalique").value = valeur;
																															}
																																else if(objet.name == "italique8" && objet.checked) // ligne7
																																	{
																																		valeur = "italic";
																																		var fondCouleurTabProfil = accesdemos;
																																		fondCouleurTabProfil.contentWindow.document.getElementById("overitalique").value = valeur;
																																	}
																																		else if(objet.name == "italique8" && objet.checked == false) // ligne7
																																			{
																																				valeur = "normal";
																																				var fondCouleurTabProfil = accesdemos;
																																				fondCouleurTabProfil.contentWindow.document.getElementById("overitalique").value = valeur;
																																			}
}



function souligne(objet)
{
	var accesdemos = document.getElementById("demo");
	
	if(objet.name == "souligne1" && objet.checked)
		{
			var id = "nametext";
			valeur = "underline";
			var fondCouleurTabProfil = accesdemos;
			var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
		}
		else if(objet.name == "souligne1" && objet.checked == false)
			{
				var id = "nametext";
				valeur = "none";
				var fondCouleurTabProfil = accesdemos;
				var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
			}
				else if(objet.name == "souligne2" && objet.checked)
					{
						var id = "moduleHead_interest";
						valeur = "underline";
						var fondCouleurTabProfil = accesdemos;
						var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
						
						var id = "moduleHead_details";
						valeur = "underline";
						var fondCouleurTabProfil = accesdemos;
						var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
						
						var id = "moduleHead_presentation";
						valeur = "underline";
						var fondCouleurTabProfil = accesdemos;
						var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
						
						var id = "moduleHead_amis";
						valeur = "underline";
						var fondCouleurTabProfil = accesdemos;
						var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
						
						var id = "moduleHead_com";
						valeur = "underline";
						var fondCouleurTabProfil = accesdemos;
						var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
					}
						else if(objet.name == "souligne2" && objet.checked == false)
						{
							var id = "moduleHead_interest";
						valeur = "none";
						var fondCouleurTabProfil = accesdemos;
						var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
						
						var id = "moduleHead_details";
						valeur = "none";
						var fondCouleurTabProfil = accesdemos;
						var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
						
						var id = "moduleHead_presentation";
						valeur = "none";
						var fondCouleurTabProfil = accesdemos;
						var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
						
						var id = "moduleHead_amis";
						valeur = "none";
						var fondCouleurTabProfil = accesdemos;
						var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
						
						var id = "moduleHead_com";
						valeur = "none";
						var fondCouleurTabProfil = accesdemos;
						var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
						}
							else if(objet.name == "souligne3" && objet.checked)
								{
									var id = "btext";
									valeur = "underline";
									var fondCouleurTabProfil = accesdemos;
									var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
									
									var id = "orangetext15titre1";
									valeur = "underline";
									var fondCouleurTabProfil = accesdemos;
									var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
									
									var id = "orangetext15titre2";
									valeur = "underline";
									var fondCouleurTabProfil = accesdemos;
									var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
									
									var id = "orangetext15titre3";
									valeur = "underline";
									var fondCouleurTabProfil = accesdemos;
									var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
									
									var id = "orangetext15titre4";
									valeur = "underline";
									var fondCouleurTabProfil = accesdemos;
									var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
									
									var id = "orangetext15titre5";
									valeur = "underline";
									var fondCouleurTabProfil = accesdemos;
									var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
								}
									else if(objet.name == "souligne3" && objet.checked == false)
										{
											var id = "btext";
											valeur = "none";
											var fondCouleurTabProfil = accesdemos;
											var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
											
											var id = "orangetext15titre1";
											valeur = "none";
											var fondCouleurTabProfil = accesdemos;
											var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
											
											var id = "orangetext15titre2";
											valeur = "none";
											var fondCouleurTabProfil = accesdemos;
											var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
											
											var id = "orangetext15titre3";
											valeur = "none";
											var fondCouleurTabProfil = accesdemos;
											var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
											
											var id = "orangetext15titre4";
											valeur = "none";
											var fondCouleurTabProfil = accesdemos;
											var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
											
											var id = "orangetext15titre5";
											valeur = "none";
											var fondCouleurTabProfil = accesdemos;
											var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
										}
												else if(objet.name == "souligne4" && objet.checked)
													{
														var fondCouleurTabProfil = accesdemos;
														valeur = "underline";
														
														var id = "interestMusic_st";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
														
														var id = "interestMovies_st";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
														
														var id = "interestTelevision_st";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
														
														var id = "interestBooks_st";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
														
														var id = "odd11";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
														
														var id = "odd22";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
														
														var id = "odd33";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
														
														var id = "odd44";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
														
														var id = "odd55";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
														
														var id = "odd66";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
														
														var id = "even11";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
														
														var id = "even22";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
														
														var id = "even33";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
														
														var id = "even44";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
														
														var id = "even55";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
														
														var id = "even66";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
														
														var id = "propos";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
														
														var id = "qui";
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
													}
														else if(objet.name == "souligne4" && objet.checked == false)
															{
																var fondCouleurTabProfil = accesdemos;
																valeur = "none";
																
																var id = "interestMusic_st";
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																
																var id = "interestMovies_st";
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																
																var id = "interestTelevision_st";
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																
																var id = "interestBooks_st";
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																
																var id = "odd11";
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																
																var id = "odd22";
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																
																var id = "odd33";
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																
																var id = "odd44";
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																
																var id = "odd55";
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																
																var id = "odd66";
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																
																var id = "even11";
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																
																var id = "even22";
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																
																var id = "even33";
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																
																var id = "even44";
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																
																var id = "even55";
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																
																var id = "even66";
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																
																var id = "propos";
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																
																var id = "qui";
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
															}
																	else if(objet.name == "souligne5" && objet.checked) // ligne5
																		{
																			valeur = "underline";
																			var corp = 26;
																			for (i=1; i<=corp; i++)
																				{
																					var id = 'corp'+i;
																					var fondCouleurTabProfil = accesdemos;
																					fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																				}
																		}
																				else if(objet.name == "souligne5" && objet.checked == false) // ligne5
																					{
																						valeur = "none";
																						var corp = 26;
																						for (i=1; i<=corp; i++)
																							{
																								var id = 'corp'+i;
																								var fondCouleurTabProfil = accesdemos;
																								fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																							}
																					}
																							else if(objet.name == "souligne6" && objet.checked) // ligne6
																								{
																									var fondCouleurTabProfil = accesdemos;
																									valeur = "underline";
																									
																									var id = "nbamis";
																									fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																									
																									var id = "nbcom1";
																									fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																									
																									var id = "nbcom2";
																									fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																								}
																									else if(objet.name == "souligne6" && objet.checked == false) // ligne6
																										{
																											var fondCouleurTabProfil = accesdemos;
																											valeur = "none";
																											
																											var id = "nbamis";
																											fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																											
																											var id = "nbcom1";
																											fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																											
																											var id = "nbcom2";
																											fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																										}
																												else if(objet.name == "souligne7" && objet.checked) // ligne7
																													{
																														valeur = "underline";
																														var fondCouleurTabProfil = accesdemos;
																														for(i=44; i<=86; i++)
																														{fondCouleurTabProfil.contentWindow.document.links[i].style.textDecoration = valeur;}
																														fondCouleurTabProfil.contentWindow.document.getElementById("outsouligne").value = valeur;
																													}
																														else if(objet.name == "souligne7" && objet.checked == false) // ligne7
																															{
																																valeur = "none";
																																var fondCouleurTabProfil = accesdemos;
																																for(i=44; i<=86; i++)
																																{fondCouleurTabProfil.contentWindow.document.links[i].style.textDecoration = valeur;}
																																fondCouleurTabProfil.contentWindow.document.getElementById("outsouligne").value = valeur;
																															}
																																else if(objet.name == "souligne8" && objet.checked) // ligne7
																																	{
																																		valeur = "underline";
																																		var fondCouleurTabProfil = accesdemos;
																																		fondCouleurTabProfil.contentWindow.document.getElementById("oversouligne").value = valeur;
																																	}
																																		else if(objet.name == "souligne8" && objet.checked == false) // ligne7
																																			{
																																				valeur = "none";
																																				var fondCouleurTabProfil = accesdemos;
																																				fondCouleurTabProfil.contentWindow.document.getElementById("oversouligne").value = valeur;
																																			}
}


function entete (objet)
{
		if(blanc_globale == 0)
	{
		blanc();
	}
	
	var accesdemos = document.getElementById("demo");
	var fondCouleurTabProfil = accesdemos; // Acces IFRAME
	
	if(objet.name == "bouton22") // ligne1
		{
			var id = "header";
			var valeur = document.forms["form1"].elements["entete_couleur"].value; // couleur entete
			if(valeur == "")
				{
					valeur = "transparent"
					document.getElementById('entete_couleur').value = "";
					document.getElementById('entete_couleur').style.backgroundColor = '#ffffff';
					document.getElementById('entete_couleur').style.backgroundImage = "url(http://myspace-editeur-profil.com/couleur/css/inputColor.png)";
				}
			fondCouleurTabProfil.contentWindow.document.getElementById(id).style.backgroundColor = valeur; // val couleur entete
		}
			else if (objet.name == "bouton23")
				{
					var valeur = document.forms["form1"].elements["menu_couleur"].value; // couleur entete
					if(valeur == "")
						{
							valeur = "transparent"
							document.getElementById('menu_couleur').value = "";
							document.getElementById('menu_couleur').style.backgroundColor = '#ffffff';
							document.getElementById('menu_couleur').style.backgroundImage = "url(http://myspace-editeur-profil.com/couleur/css/inputColor.png)";
						}
					fondCouleurTabProfil.contentWindow.document.getElementById("topnav").style.backgroundColor = valeur; // val couleur entete
					fondCouleurTabProfil.contentWindow.document.getElementById("outheadsurlignetext").style.backgroundColor = valeur;
				}
					else if (objet.name == "bouton24")
						{
							var id = "menu_couleur_survol";
							var valeur = document.forms["form1"].elements["menu_couleur_survol"].value; // couleur entete
							if(valeur == "")
								{
									valeur = "transparent"
									document.getElementById('menu_couleur_survol').value = "";
									document.getElementById('menu_couleur_survol').style.backgroundColor = '#ffffff';
									document.getElementById('menu_couleur_survol').style.backgroundImage = "url(http://myspace-editeur-profil.com/couleur/css/inputColor.png)";
								}
							fondCouleurTabProfil.contentWindow.document.getElementById("overheadsurlignetext").value = valeur; // val couleur entete
						}
							else if (objet.name == "policehead")
								{
									var valeur = objet.value;
									fondCouleurTabProfil.contentWindow.document.getElementById("topnav").style.fontFamily = valeur; // val couleur entete
									fondCouleurTabProfil.contentWindow.document.getElementById("outheadpol").value = valeur; // val couleur entete
								}
									else if (objet.name == "taillehead")
										{
											var valeur = objet.value;
											for(i=1; i<=36; i++)
												{
													fondCouleurTabProfil.contentWindow.document.getElementById("lien"+i).style.fontSize = valeur; // val couleur entete
												}
												fondCouleurTabProfil.contentWindow.document.getElementById("deroul1").style.fontSize = valeur;
												fondCouleurTabProfil.contentWindow.document.getElementById("deroul2").style.fontSize = valeur;
												fondCouleurTabProfil.contentWindow.document.getElementById("outheadtaille").value = valeur; // val couleur entete taillehead
										}
											else if (objet.name == "bouton25")
												{
													var valeur = document.forms["form1"].elements["coul_pol_head"].value; // couleur entete
													for(i=1; i<=36; i++)
														{
															fondCouleurTabProfil.contentWindow.document.getElementById("lien"+i).style.color = valeur; // val couleur entete
														}
														fondCouleurTabProfil.contentWindow.document.getElementById("deroul1").style.color = valeur;
														fondCouleurTabProfil.contentWindow.document.getElementById("deroul2").style.color = valeur;
														fondCouleurTabProfil.contentWindow.document.getElementById("outheadcouleurtext").value = valeur; // val couleur entete taillehead
												}
														else if (objet.name == "espacement_head")
															{
																var valeur = objet.value;
																for(i=1; i<=36; i++)
																	{
																		fondCouleurTabProfil.contentWindow.document.getElementById("lien"+i).style.letterSpacing = valeur; // val couleur entete
																	}
																	fondCouleurTabProfil.contentWindow.document.getElementById("deroul1").style.letterSpacing = valeur;
																	fondCouleurTabProfil.contentWindow.document.getElementById("deroul2").style.letterSpacing = valeur;
																	fondCouleurTabProfil.contentWindow.document.getElementById("outheadespace").value = valeur; // val couleur entete taillehead
															}
																else if (objet.name == "gras_head" && objet.checked)
																	{
																		var valeur = "bold";
																		for(i=1; i<=36; i++)
																			{
																				fondCouleurTabProfil.contentWindow.document.getElementById("lien"+i).style.fontWeight = valeur; // val couleur entete
																			}
																			fondCouleurTabProfil.contentWindow.document.getElementById("deroul1").style.fontWeight = valeur;
																			fondCouleurTabProfil.contentWindow.document.getElementById("deroul2").style.fontWeight = valeur;
																			fondCouleurTabProfil.contentWindow.document.getElementById("outheadgras").value = valeur; // val couleur entete taillehead
																	}
																			else if (objet.name == "gras_head" && objet.checked == false)
																				{
																					var valeur = "normal";
																					for(i=1; i<=36; i++)
																						{
																							fondCouleurTabProfil.contentWindow.document.getElementById("lien"+i).style.fontWeight = valeur; // val couleur entete
																						}
																						fondCouleurTabProfil.contentWindow.document.getElementById("deroul1").style.fontWeight = valeur;
																						fondCouleurTabProfil.contentWindow.document.getElementById("deroul2").style.fontWeight = valeur;
																						fondCouleurTabProfil.contentWindow.document.getElementById("outheadgras").value = valeur; // val couleur entete taillehead
																				}
																				else if (objet.name == "italique_head" && objet.checked)
																						{
																							var valeur = "italic";
																							for(i=1; i<=36; i++)
																								{
																									fondCouleurTabProfil.contentWindow.document.getElementById("lien"+i).style.fontStyle = valeur; // val couleur entete
																								}
																								fondCouleurTabProfil.contentWindow.document.getElementById("deroul1").style.fontStyle = valeur;
																								fondCouleurTabProfil.contentWindow.document.getElementById("deroul2").style.fontStyle = valeur;
																								fondCouleurTabProfil.contentWindow.document.getElementById("outheaditalique").value = valeur; // val couleur entete taillehead
																						}
																								else if (objet.name == "italique_head" && objet.checked == false)
																									{
																										var valeur = "normal";
																										for(i=1; i<=36; i++)
																											{
																												fondCouleurTabProfil.contentWindow.document.getElementById("lien"+i).style.fontStyle = valeur; // val couleur entete
																											}
																											fondCouleurTabProfil.contentWindow.document.getElementById("deroul1").style.fontStyle = valeur;
																											fondCouleurTabProfil.contentWindow.document.getElementById("deroul2").style.fontStyle = valeur;
																											fondCouleurTabProfil.contentWindow.document.getElementById("outheaditalique").value = valeur; // val couleur entete 
																									}
																											else if (objet.name == "souligne_head" && objet.checked)
																													{
																														var valeur = "underline";
																														for(i=1; i<=36; i++)
																															{
																																fondCouleurTabProfil.contentWindow.document.getElementById("lien"+i).style.textDecoration = valeur; // val couleur 
																															}
																															fondCouleurTabProfil.contentWindow.document.getElementById("deroul1").style.textDecoration = valeur;
																															fondCouleurTabProfil.contentWindow.document.getElementById("deroul2").style.textDecoration = valeur;
																															fondCouleurTabProfil.contentWindow.document.getElementById("outheadsouligne").value = valeur; // val couleur entete 
																													}
																															else if (objet.name == "souligne_head" && objet.checked == false)
																																{
																																	var valeur = "none";
																																	for(i=1; i<=36; i++)
																																		{
																																			fondCouleurTabProfil.contentWindow.document.getElementById("lien"+i).style.textDecoration = valeur; // val couleur 
																																		}
																																		fondCouleurTabProfil.contentWindow.document.getElementById("deroul1").style.textDecoration = valeur;
																																		fondCouleurTabProfil.contentWindow.document.getElementById("deroul2").style.textDecoration = valeur;
																																		fondCouleurTabProfil.contentWindow.document.getElementById("outheadsouligne").value = valeur; // val couleur entete 
																																}
			}
			
			

function entetesurvol (objet)
{
		if(blanc_globale == 0)
	{
		blanc();
	}
	
	var accesdemos = document.getElementById("demo");
	var fondCouleurTabProfil = accesdemos; // Acces IFRAME
	
							if (objet.name == "policehead_vol")
								{
									var valeur = objet.value;
									fondCouleurTabProfil.contentWindow.document.getElementById("overheadpol").value = valeur; // val couleur entete
								}
									else if (objet.name == "taillehead_vol")
										{
											var valeur = objet.value;
											fondCouleurTabProfil.contentWindow.document.getElementById("overheadtaille").value = valeur; // val couleur entete taillehead
										}
											else if (objet.name == "bouton26")
												{
													var valeur = document.forms["form1"].elements["coul_pol_head_vol"].value; // couleur entete
													fondCouleurTabProfil.contentWindow.document.getElementById("overheadcouleurtext").value = valeur; // val couleur entete taillehead
												}
														else if (objet.name == "espacement_head_vol")
															{
																var valeur = objet.value;
																fondCouleurTabProfil.contentWindow.document.getElementById("overheadespace").value = valeur; // val couleur entete taillehead
															}
																else if (objet.name == "gras_head_vol" && objet.checked)
																	{
																		var valeur = "bold";
																		fondCouleurTabProfil.contentWindow.document.getElementById("overheadgras").value = valeur; // val couleur entete taillehead
																	}
																			else if (objet.name == "gras_head_vol" && objet.checked == false)
																				{
																					var valeur = "normal";
																					fondCouleurTabProfil.contentWindow.document.getElementById("overheadgras").value = valeur; // val couleur entete taillehead
																				}
																				else if (objet.name == "italique_head_vol" && objet.checked)
																						{
																							var valeur = "italic";
																							fondCouleurTabProfil.contentWindow.document.getElementById("overheaditalique").value = valeur; // val couleur entete taillehead
																						}
																								else if (objet.name == "italique_head_vol" && objet.checked == false)
																									{
																										var valeur = "normal";
																										fondCouleurTabProfil.contentWindow.document.getElementById("overheaditalique").value = valeur; // val couleur entete 
																									}
																											else if (objet.name == "souligne_head_vol" && objet.checked)
																													{
																														var valeur = "underline";
																														fondCouleurTabProfil.contentWindow.document.getElementById("overheadsouligne").value = valeur; // val couleur entete 
																													}
																															else if (objet.name == "souligne_head_vol" && objet.checked == false)
																																{
																																	var valeur = "none";
																																	fondCouleurTabProfil.contentWindow.document.getElementById("overheadsouligne").value = valeur; // val couleur entete 
																																}
			}
			
			
function bordureimg()
{
	if(blanc_globale == 0)
	{
		blanc();
	}
	
	bordurestyleimg();
	bordurecolorimg();
	
	var accesdemos = document.getElementById("demo");
	var valeurmysty = document.forms["form1"].elements["bordue_img"].value;
	
	if(valeurmysty == "") {valeurmysty = 0;} // pour eviter la navigateur ŕ choisir taille au hazard
	
	var LargeurBorduremyspace = accesdemos; // Acces IFRAME
	
	for(i=1; i<=10; i++)
		{
			LargeurBorduremyspace.contentWindow.document.getElementById("img"+i).style.borderWidth = valeurmysty; // TAILLE bordure
		}
}


function bordurestyleimg()
{
	
	var accesdemos = document.getElementById("demo");
	var bordstyle = accesdemos;
	
	var valeurbor = document.forms["form1"].elements["bordure_style_img"].options[document.forms["form1"].elements["bordure_style_img"].selectedIndex].value;
	
	for(i=1; i<=10; i++)
		{
			bordstyle.contentWindow.document.getElementById("img"+i).style.borderStyle = valeurbor; // STYLE bordure img	
		}
}


function bordurecolorimg()
{
	var accesdemos = document.getElementById("demo");
	var bordcolor = accesdemos;
	
	var valeurborcol = document.forms["form1"].elements["text_couleur9"].value;
	if(valeurborcol == ""){valeurborcol = "#988038";} // Si pas de couleur alors celle ci
	
	for(i=1; i<=10; i++)
		{
			bordcolor.contentWindow.document.getElementById("img"+i).style.borderColor = valeurborcol; // couleur fond
		}
}


function decbas(objet)
{
	var accesdemos = document.getElementById("demo");
	
	var valeur= document.getElementById("dec_bas").value;

			accesdemos.contentWindow.document.getElementById("dec").style.marginTop = valeur;
}


function curseur(objet)
{
	var style = objet.options[objet.selectedIndex].value;
	var accesdemos = document.getElementById("demo");
	accesdemos.contentWindow.document.getElementById("body").style.cursor = "../pointer/"+style+".cur";
	for(i=0; i<=86; i++)
		{accesdemos.contentWindow.document.links[i].style.cursor = "../pointer/"+style+".cur";}
}


function barre(objet)
{
	var accesdemos = document.getElementById("demo");
	
	if(objet.name == "bouton27") // barre defilement globale
		{
			var id = "html";
			var valeur = document.forms["form1"].elements["defil_couleur1"].value;
			accesdemos.contentWindow.document.getElementById(id).style.scrollbarBaseColor = valeur;
		}
			else if (objet.name == "bouton28") // barre defil fleche
			{
				var id = "html";
				var valeur = document.forms["form1"].elements["defil_couleur2"].value;
				accesdemos.contentWindow.document.getElementById(id).style.scrollbarArrowColor = valeur;
			}
				else if (objet.name == "bouton29") // barre defil fond
					{
						var id = "html";
						var valeur = document.forms["form1"].elements["defil_couleur3"].value;
						accesdemos.contentWindow.document.getElementById(id).style.scrollbarTrackColor = valeur;
					}
}