// JavaScript Document

function varglobale()
{
	blanc_globale = 0;
	Down_img = 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; // couleur fond
	//document.forms["formfocus"].elements["champtexte"].name
	}


function blanc()
{
	blanc_globale = 1;
				
	var fondCouleur = document.getElementById("demo"); // Acces IFRAME
 // Acces TABLES
	var tables = fondCouleur.contentWindow.document.getElementsByTagName("table");
	var tables = tables.length;
	for(i=0; i<tables; i++)
		{
			fondCouleur.contentWindow.document.getElementsByTagName("table")[i].style.backgroundColor = "transparent";
			fondCouleur.contentWindow.document.getElementsByTagName("table")[i].style.border = "0px";
		}
		
	// Acces TR
	var lignes = fondCouleur.contentWindow.document.getElementsByTagName("tr");
	var lignes = lignes.length;
	for(i=0; i<lignes; i++)
		{
			fondCouleur.contentWindow.document.getElementsByTagName("tr")[i].style.backgroundColor = "transparent";
			fondCouleur.contentWindow.document.getElementsByTagName("tr")[i].style.border = "0px";
		}
		
	// Acces TD
	var col = fondCouleur.contentWindow.document.getElementsByTagName("td");
	var col = col.length;
	for(i=0; i<col; i++)
		{
			fondCouleur.contentWindow.document.getElementsByTagName("td")[i].style.backgroundColor = "transparent";
			fondCouleur.contentWindow.document.getElementsByTagName("td")[i].style.border = "0px";
		}	
}


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

	var Url = document.forms["form1"].elements["img1"].value;
	var Url = "url("+Url+")";
	var fondCouleur = document.getElementById("demo"); // Acces IFRAME
	fondCouleur.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("tableProfil").style.backgroundColor = valeur; // couleur fond	

	var fondCouleurTabContact = accesdemos; // Acces IFRAME
	fondCouleurTabContact.contentWindow.document.getElementById("tableContact").style.backgroundColor = valeur; // couleur fond	

	var fondCouleurTabUrl = accesdemos; // Acces IFRAME
	fondCouleurTabUrl.contentWindow.document.getElementById("tableUrl").style.backgroundColor = valeur; // couleur fond	

	var fondCouleurTabInterets = accesdemos; // Acces IFRAME
	fondCouleurTabInterets.contentWindow.document.getElementById("tableInterets").style.backgroundColor = valeur; // couleur fond	

	var fondCouleurTabDetail = accesdemos; // Acces IFRAME
	fondCouleurTabDetail.contentWindow.document.getElementById("tableDetail").style.backgroundColor = valeur; // couleur fond	

	var fondCouleurTabReseau = accesdemos; // Acces IFRAME
	fondCouleurTabReseau.contentWindow.document.getElementById("tableReseau").style.backgroundColor = valeur; // couleur fond	

	var fondCouleurTabBlog = accesdemos; // Acces IFRAME
	fondCouleurTabBlog.contentWindow.document.getElementById("tableBlog").style.backgroundColor = valeur; // couleur fond	

	var fondCouleurTabJesuis = accesdemos; // Acces IFRAME
	fondCouleurTabJesuis.contentWindow.document.getElementById("tableJesuis").style.backgroundColor = valeur; // couleur fond	

	var fondCouleurTabAmi = accesdemos; // Acces IFRAME
	fondCouleurTabAmi.contentWindow.document.getElementById("tableAmi").style.backgroundColor = valeur; // couleur fond	

	var fondCouleurTabCommentaire = accesdemos; // Acces IFRAME
	fondCouleurTabCommentaire.contentWindow.document.getElementById("tableCommentaire").style.backgroundColor = valeur; // couleur fond	
}



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("tableProfil").style.borderWidth = valeur; // couleur fond	

	var LargeurBordureTabContact = accesdemos; // Acces IFRAME
	LargeurBordureTabContact.contentWindow.document.getElementById("tableContact").style.borderWidth = valeur; // couleur fond	

	var LargeurBordureTabUrl = accesdemos; // Acces IFRAME
	LargeurBordureTabUrl.contentWindow.document.getElementById("tableUrl").style.borderWidth = valeur; // couleur fond	

	var LargeurBordureTabInterets = accesdemos; // Acces IFRAME
	LargeurBordureTabInterets.contentWindow.document.getElementById("tableInterets").style.borderWidth = valeur; // couleur fond	

	var LargeurBordureTabDetail = accesdemos; // Acces IFRAME
	LargeurBordureTabDetail.contentWindow.document.getElementById("tableDetail").style.borderWidth = valeur; // couleur fond	

	var LargeurBordureTabReseau = accesdemos; // Acces IFRAME
	LargeurBordureTabReseau.contentWindow.document.getElementById("tableReseau").style.borderWidth = valeur; // couleur fond	

	var LargeurBordureTabBlog = accesdemos; // Acces IFRAME
	LargeurBordureTabBlog.contentWindow.document.getElementById("tableBlog").style.borderWidth = valeur; // couleur fond	

	var LargeurBordureTabJesuis = accesdemos; // Acces IFRAME
	LargeurBordureTabJesuis.contentWindow.document.getElementById("tableJesuis").style.borderWidth = valeur; // couleur fond	

	var LargeurBordureTabAmi = accesdemos; // Acces IFRAME
	LargeurBordureTabAmi.contentWindow.document.getElementById("tableAmi").style.borderWidth = valeur; // couleur fond	

	var LargeurBordureTabCommentaire = accesdemos; // Acces IFRAME
	LargeurBordureTabCommentaire.contentWindow.document.getElementById("tableCommentaire").style.borderWidth = valeur; // couleur fond	
}



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("tableProfil").style.borderStyle = valeur; // couleur fond	
	
	var StyleBordureTabContact = accesdemos; // Acces IFRAME
	StyleBordureTabContact.contentWindow.document.getElementById("tableContact").style.borderStyle = valeur; // couleur fond	

	var StyleBordureTabUrl = accesdemos; // Acces IFRAME
	StyleBordureTabUrl.contentWindow.document.getElementById("tableUrl").style.borderStyle = valeur; // couleur fond	

	var StyleBordureTabInterets = accesdemos; // Acces IFRAME
	StyleBordureTabInterets.contentWindow.document.getElementById("tableInterets").style.borderStyle = valeur; // couleur fond	

	var StyleBordureTabDetail = accesdemos; // Acces IFRAME
	StyleBordureTabDetail.contentWindow.document.getElementById("tableDetail").style.borderStyle = valeur; // couleur fond	

	var StyleBordureTabReseau = accesdemos; // Acces IFRAME
	StyleBordureTabReseau.contentWindow.document.getElementById("tableReseau").style.borderStyle = valeur; // couleur fond	

	var StyleBordureTabBlog = accesdemos; // Acces IFRAME
	StyleBordureTabBlog.contentWindow.document.getElementById("tableBlog").style.borderStyle = valeur; // couleur fond	

	var StyleBordureTabJesuis = accesdemos; // Acces IFRAME
	StyleBordureTabJesuis.contentWindow.document.getElementById("tableJesuis").style.borderStyle = valeur; // couleur fond	

	var StyleBordureTabAmi = accesdemos; // Acces IFRAME
	StyleBordureTabAmi.contentWindow.document.getElementById("tableAmi").style.borderStyle = valeur; // couleur fond	

	var StyleBordureTabCommentaire = accesdemos; // Acces IFRAME
	StyleBordureTabCommentaire.contentWindow.document.getElementById("tableCommentaire").style.borderStyle = valeur; // couleur fond	
}



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("tableProfil").style.borderColor = valeur; // couleur fond	
	
	var ColorBordureTabContact = accesdemos; // Acces IFRAME
	ColorBordureTabContact.contentWindow.document.getElementById("tableContact").style.borderColor = valeur; // couleur fond	

	var ColorBordureTabUrl = accesdemos; // Acces IFRAME
	ColorBordureTabUrl.contentWindow.document.getElementById("tableUrl").style.borderColor = valeur; // couleur fond	

	var ColorBordureTabInterets = accesdemos; // Acces IFRAME
	ColorBordureTabInterets.contentWindow.document.getElementById("tableInterets").style.borderColor = valeur; // couleur fond	

	var ColorBordureTabDetail = accesdemos; // Acces IFRAME
	ColorBordureTabDetail.contentWindow.document.getElementById("tableDetail").style.borderColor = valeur; // couleur fond	

	var ColorBordureTabReseau = accesdemos; // Acces IFRAME
	ColorBordureTabReseau.contentWindow.document.getElementById("tableReseau").style.borderColor = valeur; // couleur fond	

	var ColorBordureTabBlog = accesdemos; // Acces IFRAME
	ColorBordureTabBlog.contentWindow.document.getElementById("tableBlog").style.borderColor = valeur; // couleur fond	

	var ColorBordureTabJesuis = accesdemos; // Acces IFRAME
	ColorBordureTabJesuis.contentWindow.document.getElementById("tableJesuis").style.borderColor = valeur; // couleur fond	

	var ColorBordureTabAmi = accesdemos; // Acces IFRAME
	ColorBordureTabAmi.contentWindow.document.getElementById("tableAmi").style.borderColor = valeur; // couleur fond	

	var ColorBordureTabCommentaire = accesdemos; // Acces IFRAME
	ColorBordureTabCommentaire.contentWindow.document.getElementById("tableCommentaire").style.borderColor = valeur;
}


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("tableProfil").style.backgroundImage = Url; // Img fond
	
	var fondCouleur = accesdemos; // Acces IFRAME
	fondCouleur.contentWindow.document.getElementById("tableContact").style.backgroundImage = Url; // Img fond
	
	var fondCouleur = accesdemos; // Acces IFRAME
	fondCouleur.contentWindow.document.getElementById("tableUrl").style.backgroundImage = Url; // Img fond
	
	var fondCouleur = accesdemos; // Acces IFRAME
	fondCouleur.contentWindow.document.getElementById("tableInterets").style.backgroundImage = Url; // Img fond
	
	var fondCouleur = accesdemos; // Acces IFRAME
	fondCouleur.contentWindow.document.getElementById("tableDetail").style.backgroundImage = Url; // Img fond
	
	var fondCouleur = accesdemos; // Acces IFRAME
	fondCouleur.contentWindow.document.getElementById("tableReseau").style.backgroundImage = Url; // Img fond
	
	var fondCouleur = accesdemos; // Acces IFRAME
	fondCouleur.contentWindow.document.getElementById("tableBlog").style.backgroundImage = Url; // Img fond
	
	var fondCouleur = accesdemos; // Acces IFRAME
	fondCouleur.contentWindow.document.getElementById("tableJesuis").style.backgroundImage = Url; // Img fond
	
	var fondCouleur = accesdemos; // Acces IFRAME
	fondCouleur.contentWindow.document.getElementById("tableAmi").style.backgroundImage = Url; // Img fond
	
	var fondCouleur = accesdemos; // Acces IFRAME
	fondCouleur.contentWindow.document.getElementById("tableCommentaire").style.backgroundImage = Url; // Img fond
}



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("tableProfil").style.backgroundImage = Url; // Img fond
	
	var fondCouleur = accesdemos; // Acces IFRAME
	fondCouleur.contentWindow.document.getElementById("tableContact").style.backgroundImage = Url; // Img fond
	
	var fondCouleur = accesdemos; // Acces IFRAME
	fondCouleur.contentWindow.document.getElementById("tableUrl").style.backgroundImage = Url; // Img fond
	
	var fondCouleur = accesdemos; // Acces IFRAME
	fondCouleur.contentWindow.document.getElementById("tableInterets").style.backgroundImage = Url; // Img fond
	
	var fondCouleur = accesdemos; // Acces IFRAME
	fondCouleur.contentWindow.document.getElementById("tableDetail").style.backgroundImage = Url; // Img fond
	
	var fondCouleur = accesdemos; // Acces IFRAME
	fondCouleur.contentWindow.document.getElementById("tableReseau").style.backgroundImage = Url; // Img fond
	
	var fondCouleur = accesdemos; // Acces IFRAME
	fondCouleur.contentWindow.document.getElementById("tableBlog").style.backgroundImage = Url; // Img fond
	
	var fondCouleur = accesdemos; // Acces IFRAME
	fondCouleur.contentWindow.document.getElementById("tableJesuis").style.backgroundImage = Url; // Img fond
	
	var fondCouleur = accesdemos; // Acces IFRAME
	fondCouleur.contentWindow.document.getElementById("tableAmi").style.backgroundImage = Url; // Img fond
	
	var fondCouleur = accesdemos; // Acces IFRAME
	fondCouleur.contentWindow.document.getElementById("tableCommentaire").style.backgroundImage = Url; // Img fond
}



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("tableProfil").style.backgroundColor = valeur; // couleur fond	

	var fondCouleurTabContact = accesdemos; // Acces IFRAME
	fondCouleurTabContact.contentWindow.document.getElementById("tableContact").style.backgroundColor = valeur; // couleur fond	

	var fondCouleurTabUrl = accesdemos; // Acces IFRAME
	fondCouleurTabUrl.contentWindow.document.getElementById("tableUrl").style.backgroundColor = valeur; // couleur fond	

	var fondCouleurTabInterets = accesdemos; // Acces IFRAME
	fondCouleurTabInterets.contentWindow.document.getElementById("tableInterets").style.backgroundColor = valeur; // couleur fond	

	var fondCouleurTabDetail = accesdemos; // Acces IFRAME
	fondCouleurTabDetail.contentWindow.document.getElementById("tableDetail").style.backgroundColor = valeur; // couleur fond	

	var fondCouleurTabReseau = accesdemos; // Acces IFRAME
	fondCouleurTabReseau.contentWindow.document.getElementById("tableReseau").style.backgroundColor = valeur; // couleur fond	

	var fondCouleurTabBlog = accesdemos; // Acces IFRAME
	fondCouleurTabBlog.contentWindow.document.getElementById("tableBlog").style.backgroundColor = valeur; // couleur fond	

	var fondCouleurTabJesuis = accesdemos; // Acces IFRAME
	fondCouleurTabJesuis.contentWindow.document.getElementById("tableJesuis").style.backgroundColor = valeur; // couleur fond	

	var fondCouleurTabAmi = accesdemos; // Acces IFRAME
	fondCouleurTabAmi.contentWindow.document.getElementById("tableAmi").style.backgroundColor = valeur; // couleur fond	

	var fondCouleurTabCommentaire = accesdemos; // Acces IFRAME
	fondCouleurTabCommentaire.contentWindow.document.getElementById("tableCommentaire").style.backgroundColor = valeur; // couleur fond	
}



function police(objet)
{
	var accesdemos = document.getElementById("demo");
	var valeur = objet.value;
	
	if(valeur != "Style")
	{
		
	if(objet.name == "police1") // ligne1
		{
			var id = "nametext";
			var fondCouleurTabProfil = accesdemos;
			fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
		}
		else if(objet.name == "police2") // ligne2
			{
				var id = "whitetext12titre1";
				var fondCouleurTabProfil = accesdemos;
				fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
				
				var id = "whitetext12titre2";
				var fondCouleurTabProfil = accesdemos;
				fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
				
				var id = "whitetext12titre3";
				var fondCouleurTabProfil = accesdemos;
				fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
			}
			else if(objet.name == "police3") // ligne3
				{
					var id = "btext";
					var fondCouleurTabProfil = accesdemos;
					fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
					
					var id = "orangetext15titre1";
					var fondCouleurTabProfil = accesdemos;
					fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
					
					var id = "orangetext15titre2";
					var fondCouleurTabProfil = accesdemos;
					fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
					
					var id = "orangetext15titre3";
					var fondCouleurTabProfil = accesdemos;
					fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
					
					var id = "orangetext15titre4";
					var fondCouleurTabProfil = accesdemos;
					fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
					
					var id = "orangetext15titre5";
					var fondCouleurTabProfil = accesdemos;
					fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
				}
						else if(objet.name == "police4") // ligne4
							{
								var id = "lightbluetext8stitre1";
								var fondCouleurTabProfil = accesdemos;
								fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
								
								var id = "lightbluetext8stitre2";
								var fondCouleurTabProfil = accesdemos;
								fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
								
								var id = "lightbluetext8stitre3";
								var fondCouleurTabProfil = accesdemos;
								fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
								
								var id = "lightbluetext8stitre4";
								var fondCouleurTabProfil = accesdemos;
								fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
								
								var id = "lightbluetext8stitre5";
								var fondCouleurTabProfil = accesdemos;
								fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
								
								var id = "lightbluetext8stitre6";
								var fondCouleurTabProfil = accesdemos;
								fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
							}
								else if(objet.name == "police5") // ligne5
									{
										var id = "text1";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
										
										var id = "text2";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
										
										var id = "text3";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
										
										var id = "text4";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
										
										var id = "text5";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
										
										var id = "text6";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
										
										var id = "text7";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
										
										var id = "text8";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
										
										var id = "text9";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
										
										var id = "text10";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
										
										var id = "text11";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
										
										var id = "text12";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
										
										var id = "text13";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
										
										var id = "text14";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
										
										var id = "text15";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
										
										var id = "text16";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
									}
										else if(objet.name == "police6") // ligne4
											{
												var id = "redtext";
												var fondCouleurTabProfil = accesdemos;
												fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
												
												var id = "redtext1";
												var fondCouleurTabProfil = accesdemos;
												fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
												
												var id = "redbtext";
												var fondCouleurTabProfil = accesdemos;
												fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontFamily = valeur;
											}
												else if(objet.name == "police7") // ligne7
													{
														var fondCouleurTabProfil = accesdemos;
														for(i=0; i<=58; 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 = "whitetext12titre1";
			var fondCouleurTabProfil = accesdemos;
			fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
			
			var id = "whitetext12titre2";
			var fondCouleurTabProfil = accesdemos;
			fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
			
			var id = "whitetext12titre3";
			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 = "lightbluetext8stitre1";
								var fondCouleurTabProfil = accesdemos;
								fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
								
								var id = "lightbluetext8stitre2";
								var fondCouleurTabProfil = accesdemos;
								fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
								
								var id = "lightbluetext8stitre3";
								var fondCouleurTabProfil = accesdemos;
								fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
								
								var id = "lightbluetext8stitre4";
								var fondCouleurTabProfil = accesdemos;
								fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
								
								var id = "lightbluetext8stitre5";
								var fondCouleurTabProfil = accesdemos;
								fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
								
								var id = "lightbluetext8stitre6";
								var fondCouleurTabProfil = accesdemos;
								fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
							}
									else if(objet.name == "taille5") // ligne5
									{
										var id = "text1";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
										
										var id = "text2";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
										
										var id = "text3";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
										
										var id = "text4";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
										
										var id = "text5";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
										
										var id = "text6";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
										
										var id = "text7";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
										
										var id = "text8";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
										
										var id = "text9";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
										
										var id = "text10";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
										
										var id = "text11";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
										
										var id = "text12";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
										
										var id = "text13";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
										
										var id = "text14";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
										
										var id = "text15";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
										
										var id = "text16";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
									}
										else if(objet.name == "taille6") // ligne6
											{
												var id = "redtext";
												var fondCouleurTabProfil = accesdemos;
												fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
												
												var id = "redtext1";
												var fondCouleurTabProfil = accesdemos;
												fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
												
												var id = "redbtext";
												var fondCouleurTabProfil = accesdemos;
												fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontSize = valeur;
											}
												else if(objet.name == "taille7") // ligne7
													{
														var fondCouleurTabProfil = accesdemos;
														for(i=0; i<=58; 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 = "nametext1";
			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 id = "whitetext12titre1";
					var valeur = document.forms["form1"].elements["text_couleur2"].value;
					fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
					
					var id = "whitetext12titre2";
					var valeur = document.forms["form1"].elements["text_couleur2"].value;
					fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
					
					var id = "whitetext12titre3";
					var valeur = document.forms["form1"].elements["text_couleur2"].value;
					fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
				}
					else if(objet.name == "bouton10") // ligne2
						{
							var id = "whitetext12titre11";
							var valeur = document.forms["form1"].elements["text_couleur22"].value;
							fondCouleurTabProfil.contentWindow.document.getElementById(id).style.backgroundColor = valeur;
							
							var id = "whitetext12titre22";
							var valeur = document.forms["form1"].elements["text_couleur22"].value;
							fondCouleurTabProfil.contentWindow.document.getElementById(id).style.backgroundColor = valeur;
							
							var id = "whitetext12titre33";
							var valeur = document.forms["form1"].elements["text_couleur22"].value;
							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 id = "lightbluetext8stitre1";
														var valeur = document.forms["form1"].elements["text_couleur4"].value;
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
														
														var id = "lightbluetext8stitre2";
														var valeur = document.forms["form1"].elements["text_couleur4"].value;
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
														
														var id = "lightbluetext8stitre3";
														var valeur = document.forms["form1"].elements["text_couleur4"].value;
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
														
														var id = "lightbluetext8stitre4";
														var valeur = document.forms["form1"].elements["text_couleur4"].value;
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
														
														var id = "lightbluetext8stitre5";
														var valeur = document.forms["form1"].elements["text_couleur4"].value;
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
														
														var id = "lightbluetext8stitre6";
														var valeur = document.forms["form1"].elements["text_couleur4"].value;
														fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
													}
															else if(objet.name == "bouton14") // ligne3
																{
																	var id = "lightbluetext8stitre11";
																	var valeur = document.forms["form1"].elements["text_couleur44"].value;
																	fondCouleurTabProfil.contentWindow.document.getElementById(id).style.backgroundColor = valeur;
																	
																	var id = "lightbluetext8stitre22";
																	var valeur = document.forms["form1"].elements["text_couleur44"].value;
																	fondCouleurTabProfil.contentWindow.document.getElementById(id).style.backgroundColor = valeur;
																	
																	var id = "lightbluetext8stitre33";
																	var valeur = document.forms["form1"].elements["text_couleur44"].value;
																	fondCouleurTabProfil.contentWindow.document.getElementById(id).style.backgroundColor = valeur;
																	
																	var id = "lightbluetext8stitre44";
																	var valeur = document.forms["form1"].elements["text_couleur44"].value;
																	fondCouleurTabProfil.contentWindow.document.getElementById(id).style.backgroundColor = valeur;
																	
																	var id = "lightbluetext8stitre55";
																	var valeur = document.forms["form1"].elements["text_couleur44"].value;
																	fondCouleurTabProfil.contentWindow.document.getElementById(id).style.backgroundColor = valeur;
																	
																	var id = "lightbluetext8stitre66";
																	var valeur = document.forms["form1"].elements["text_couleur44"].value;
																	fondCouleurTabProfil.contentWindow.document.getElementById(id).style.backgroundColor = valeur;
																}
																		else if(objet.name == "bouton15") // ligne5
																			{
																				var id = "text1";
																				var valeur = document.forms["form1"].elements["text_couleur5"].value;
																				fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
																				
																				var id = "text2";
																				var valeur = document.forms["form1"].elements["text_couleur5"].value;
																				fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
																				
																				var id = "text3";
																				var valeur = document.forms["form1"].elements["text_couleur5"].value;
																				fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
																				
																				var id = "text4";
																				var valeur = document.forms["form1"].elements["text_couleur5"].value;
																				fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
																				
																				var id = "text5";
																				var valeur = document.forms["form1"].elements["text_couleur5"].value;
																				fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
																				
																				var id = "text6";
																				var valeur = document.forms["form1"].elements["text_couleur5"].value;
																				fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
																				
																				var id = "text7";
																				var valeur = document.forms["form1"].elements["text_couleur5"].value;
																				fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
																				
																				var id = "text8";
																				var valeur = document.forms["form1"].elements["text_couleur5"].value;
																				fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
																				
																				var id = "text9";
																				var valeur = document.forms["form1"].elements["text_couleur5"].value;
																				fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
																				
																				var id = "text10";
																				var valeur = document.forms["form1"].elements["text_couleur5"].value;
																				fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
																				
																				var id = "text11";
																				var valeur = document.forms["form1"].elements["text_couleur5"].value;
																				fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
																				
																				var id = "text12";
																				var valeur = document.forms["form1"].elements["text_couleur5"].value;
																				fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
																				
																				var id = "text13";
																				var valeur = document.forms["form1"].elements["text_couleur5"].value;
																				fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
																				
																				var id = "text14";
																				var valeur = document.forms["form1"].elements["text_couleur5"].value;
																				fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
																				
																				var id = "text15";
																				var valeur = document.forms["form1"].elements["text_couleur5"].value;
																				fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
																				
																				var id = "text16";
																				var valeur = document.forms["form1"].elements["text_couleur5"].value;
																				fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
																			}
																			else if(objet.name == "bouton16") // ligne6
																				{
																					var id = "redtext";
																					var valeur = document.forms["form1"].elements["text_couleur6"].value;
																					fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
																					
																					var id = "redtext1";
																					var valeur = document.forms["form1"].elements["text_couleur6"].value;
																					fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
																					
																					var id = "redbtext";
																					var valeur = document.forms["form1"].elements["text_couleur6"].value;
																					fondCouleurTabProfil.contentWindow.document.getElementById(id).style.color = valeur;
																				}
																					else if(objet.name == "bouton17") // ligne6
																						{
																							var id = "redtext";
																							var valeur = document.forms["form1"].elements["text_couleur66"].value;
																							fondCouleurTabProfil.contentWindow.document.getElementById(id).style.backgroundColor = valeur;
																							
																							var id = "redtext1";
																							var valeur = document.forms["form1"].elements["text_couleur66"].value;
																							fondCouleurTabProfil.contentWindow.document.getElementById(id).style.backgroundColor = valeur;
																							
																							var id = "redbtext";
																							var valeur = document.forms["form1"].elements["text_couleur66"].value;
																							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=0; i<=62; 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=0; i<=62; 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 id = "whitetext12titre1";
					var fondCouleurTabProfil = accesdemos;
					fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
					
					var id = "whitetext12titre2";
					var fondCouleurTabProfil = accesdemos;
					fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
					
					var id = "whitetext12titre3";
					var fondCouleurTabProfil = accesdemos;
					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 = "lightbluetext8stitre1";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
										
										var id = "lightbluetext8stitre2";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
										
										var id = "lightbluetext8stitre3";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
										
										var id = "lightbluetext8stitre4";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
										
										var id = "lightbluetext8stitre5";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
										
										var id = "lightbluetext8stitre6";
										var fondCouleurTabProfil = accesdemos;
										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
									}
											else if(objet.name == "espacement5") // ligne5
												{
													var id = "text1";
													var fondCouleurTabProfil = accesdemos;
													fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
													
													var id = "text2";
													var fondCouleurTabProfil = accesdemos;
													fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
													
													var id = "text3";
													var fondCouleurTabProfil = accesdemos;
													fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
													
													var id = "text4";
													var fondCouleurTabProfil = accesdemos;
													fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
													
													var id = "text5";
													var fondCouleurTabProfil = accesdemos;
													fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
													
													var id = "text6";
													var fondCouleurTabProfil = accesdemos;
													fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
													
													var id = "text7";
													var fondCouleurTabProfil = accesdemos;
													fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
													
													var id = "text8";
													var fondCouleurTabProfil = accesdemos;
													fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
													
													var id = "text9";
													var fondCouleurTabProfil = accesdemos;
													fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
													
													var id = "text10";
													var fondCouleurTabProfil = accesdemos;
													fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
													
													var id = "text11";
													var fondCouleurTabProfil = accesdemos;
													fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
													
													var id = "text12";
													var fondCouleurTabProfil = accesdemos;
													fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
													
													var id = "text13";
													var fondCouleurTabProfil = accesdemos;
													fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
													
													var id = "text14";
													var fondCouleurTabProfil = accesdemos;
													fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
													
													var id = "text15";
													var fondCouleurTabProfil = accesdemos;
													fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
													
													var id = "text16";
													var fondCouleurTabProfil = accesdemos;
													fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
												}
														else if(objet.name == "espacement6") // ligne6
															{
																var id = "redtext";
																var fondCouleurTabProfil = accesdemos;
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
																
																var id = "redtext1";
																var fondCouleurTabProfil = accesdemos;
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
																
																var id = "redbtext";
																var fondCouleurTabProfil = accesdemos;
																fondCouleurTabProfil.contentWindow.document.getElementById(id).style.letterSpacing = valeur;
															}
																	else if(objet.name == "espacement7") // ligne7
																		{
																			var fondCouleurTabProfil = accesdemos;
																			for(i=0; i<=58; 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 = "nametext1";
			var fondCouleurTabProfil = accesdemos;
			var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textAlign = valeur;
		}
			else if(objet.name == "alignement2")
				{
					var id = "whitetext12titre11";
					var fondCouleurTabProfil = accesdemos;
					var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textAlign = valeur;
					
					var id = "whitetext12titre22";
					var fondCouleurTabProfil = accesdemos;
					var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textAlign = valeur;
					
					var id = "whitetext12titre33";
					var fondCouleurTabProfil = accesdemos;
					var valeur = 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 = "lightbluetext8stitre11";
										var fondCouleurTabProfil = accesdemos;
										var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textAlign = valeur;
										
										var id = "lightbluetext8stitre22";
										var fondCouleurTabProfil = accesdemos;
										var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textAlign = valeur;
										
										var id = "lightbluetext8stitre33";
										var fondCouleurTabProfil = accesdemos;
										var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textAlign = valeur;
										
										var id = "lightbluetext8stitre44";
										var fondCouleurTabProfil = accesdemos;
										var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textAlign = valeur;
										
										var id = "lightbluetext8stitre55";
										var fondCouleurTabProfil = accesdemos;
										var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textAlign = valeur;
										
										var id = "lightbluetext8stitre66";
										var fondCouleurTabProfil = accesdemos;
										var valeur = 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 = "whitetext12titre1";
						valeur = "bold";
						var fondCouleurTabProfil = accesdemos;
						var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
						
						var id = "whitetext12titre2";
						valeur = "bold";
						var fondCouleurTabProfil = accesdemos;
						var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
						
						var id = "whitetext12titre3";
						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 = "whitetext12titre1";
							valeur = "normal";
							var fondCouleurTabProfil = accesdemos;
							var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
							
							var id = "whitetext12titre2";
							valeur = "normal";
							var fondCouleurTabProfil = accesdemos;
							var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
							
							var id = "whitetext12titre3";
							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 id = "lightbluetext8stitre1";
														valeur = "bold";
														var fondCouleurTabProfil = accesdemos;
														var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
														
														var id = "lightbluetext8stitre2";
														valeur = "bold";
														var fondCouleurTabProfil = accesdemos;
														var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
														
														var id = "lightbluetext8stitre3";
														valeur = "bold";
														var fondCouleurTabProfil = accesdemos;
														var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
														
														var id = "lightbluetext8stitre4";
														valeur = "bold";
														var fondCouleurTabProfil = accesdemos;
														var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
														
														var id = "lightbluetext8stitre5";
														valeur = "bold";
														var fondCouleurTabProfil = accesdemos;
														var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
														
														var id = "lightbluetext8stitre6";
														valeur = "bold";
														var fondCouleurTabProfil = accesdemos;
														var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
													}
														else if(objet.name == "gras4" && objet.checked == false)
															{
																var id = "lightbluetext8stitre1";
																valeur = "normal";
																var fondCouleurTabProfil = accesdemos;
																var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																
																var id = "lightbluetext8stitre2";
																valeur = "normal";
																var fondCouleurTabProfil = accesdemos;
																var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																
																var id = "lightbluetext8stitre3";
																valeur = "normal";
																var fondCouleurTabProfil = accesdemos;
																var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																
																var id = "lightbluetext8stitre4";
																valeur = "normal";
																var fondCouleurTabProfil = accesdemos;
																var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																
																var id = "lightbluetext8stitre5";
																valeur = "normal";
																var fondCouleurTabProfil = accesdemos;
																var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																
																var id = "lightbluetext8stitre6";
																valeur = "normal";
																var fondCouleurTabProfil = accesdemos;
																var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
															}
																	else if(objet.name == "gras5" && objet.checked) // ligne5
																		{
																			var id = "text1";
																			valeur = "bold";
																			var fondCouleurTabProfil = accesdemos;
																			fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																			
																			var id = "text2";
																			valeur = "bold";
																			var fondCouleurTabProfil = accesdemos;
																			fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																			
																			var id = "text3";
																			valeur = "bold";
																			var fondCouleurTabProfil = accesdemos;
																			fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																			
																			var id = "text4";
																			valeur = "bold";
																			var fondCouleurTabProfil = accesdemos;
																			fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																			
																			var id = "text5";
																			valeur = "bold";
																			var fondCouleurTabProfil = accesdemos;
																			fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																			
																			var id = "text6";
																			valeur = "bold";
																			var fondCouleurTabProfil = accesdemos;
																			fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																			
																			var id = "text7";
																			valeur = "bold";
																			var fondCouleurTabProfil = accesdemos;
																			fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																			
																			var id = "text8";
																			valeur = "bold";
																			var fondCouleurTabProfil = accesdemos;
																			fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																			
																			var id = "text9";
																			valeur = "bold";
																			var fondCouleurTabProfil = accesdemos;
																			fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																			
																			var id = "text10";
																			valeur = "bold";
																			var fondCouleurTabProfil = accesdemos;
																			fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																			
																			var id = "text11";
																			valeur = "bold";
																			var fondCouleurTabProfil = accesdemos;
																			fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																			
																			var id = "text12";
																			valeur = "bold";
																			var fondCouleurTabProfil = accesdemos;
																			fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																			
																			var id = "text13";
																			valeur = "bold";
																			var fondCouleurTabProfil = accesdemos;
																			fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																			
																			var id = "text14";
																			valeur = "bold";
																			var fondCouleurTabProfil = accesdemos;
																			fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																			
																			var id = "text15";
																			valeur = "bold";
																			var fondCouleurTabProfil = accesdemos;
																			fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																			
																			var id = "text16";
																			valeur = "bold";
																			var fondCouleurTabProfil = accesdemos;
																			fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																		}
																				else if(objet.name == "gras5" && objet.checked == false) // ligne5
																					{
																						var id = "text1";
																						valeur = "normal";
																						var fondCouleurTabProfil = accesdemos;
																						fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																						
																						var id = "text2";
																						valeur = "normal";
																						var fondCouleurTabProfil = accesdemos;
																						fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																						
																						var id = "text3";
																						valeur = "normal";
																						var fondCouleurTabProfil = accesdemos;
																						fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																						
																						var id = "text4";
																						valeur = "normal";
																						var fondCouleurTabProfil = accesdemos;
																						fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																						
																						var id = "text5";
																						valeur = "normal";
																						var fondCouleurTabProfil = accesdemos;
																						fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																						
																						var id = "text6";
																						valeur = "normal";
																						var fondCouleurTabProfil = accesdemos;
																						fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																						
																						var id = "text7";
																						valeur = "normal";
																						var fondCouleurTabProfil = accesdemos;
																						fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																						
																						var id = "text8";
																						valeur = "normal";
																						var fondCouleurTabProfil = accesdemos;
																						fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																						
																						var id = "text9";
																						valeur = "normal";
																						var fondCouleurTabProfil = accesdemos;
																						fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																						
																						var id = "text10";
																						valeur = "normal";
																						var fondCouleurTabProfil = accesdemos;
																						fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																						
																						var id = "text11";
																						valeur = "normal";
																						var fondCouleurTabProfil = accesdemos;
																						fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																						
																						var id = "text12";
																						valeur = "normal";
																						var fondCouleurTabProfil = accesdemos;
																						fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																						
																						var id = "text13";
																						valeur = "normal";
																						var fondCouleurTabProfil = accesdemos;
																						fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																						
																						var id = "text14";
																						valeur = "normal";
																						var fondCouleurTabProfil = accesdemos;
																						fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																						
																						var id = "text15";
																						valeur = "normal";
																						var fondCouleurTabProfil = accesdemos;
																						fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																						
																						var id = "text16";
																						valeur = "normal";
																						var fondCouleurTabProfil = accesdemos;
																						fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																					}
																							else if(objet.name == "gras6" && objet.checked) // ligne6
																								{
																									var id = "redtext";
																									valeur = "bold";
																									var fondCouleurTabProfil = accesdemos;
																									fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																									
																									var id = "redtext1";
																									valeur = "bold";
																									var fondCouleurTabProfil = accesdemos;
																									fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																									
																									var id = "redbtext";
																									valeur = "bold";
																									var fondCouleurTabProfil = accesdemos;
																									fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																								}
																									else if(objet.name == "gras6" && objet.checked == false) // ligne6
																										{
																											var id = "redtext";
																											valeur = "normal";
																											var fondCouleurTabProfil = accesdemos;
																											fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																											
																											var id = "redtext1";
																											valeur = "normal";
																											var fondCouleurTabProfil = accesdemos;
																											fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																											
																											var id = "redbtext";
																											valeur = "normal";
																											var fondCouleurTabProfil = accesdemos;
																											fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontWeight = valeur;
																										}
																												else if(objet.name == "gras7" && objet.checked) // ligne7
																													{
																														valeur = "bold";
																														var fondCouleurTabProfil = accesdemos;
																														for(i=0; i<=58; 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=0; i<=58; 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) // ligne2
						{
							var id = "whitetext12titre1";
							valeur = "italic";
							var fondCouleurTabProfil = accesdemos;
							var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
							
							var id = "whitetext12titre2";
							valeur = "italic";
							var fondCouleurTabProfil = accesdemos;
							var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
							
							var id = "whitetext12titre3";
							valeur = "italic";
							var fondCouleurTabProfil = accesdemos;
							var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
						}
							else if(objet.name == "italique2" && objet.checked == false) // ligne2
								{
									var id = "whitetext12titre1";
									valeur = "normal";
									var fondCouleurTabProfil = accesdemos;
									var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
									
									var id = "whitetext12titre2";
									valeur = "normal";
									var fondCouleurTabProfil = accesdemos;
									var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
									
									var id = "whitetext12titre3";
									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) // ligne4
																{
																	var id = "lightbluetext8stitre1";
																	valeur = "italic";
																	var fondCouleurTabProfil = accesdemos;
																	var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																	
																	var id = "lightbluetext8stitre2";
																	valeur = "italic";
																	var fondCouleurTabProfil = accesdemos;
																	var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																	
																	var id = "lightbluetext8stitre3";
																	valeur = "italic";
																	var fondCouleurTabProfil = accesdemos;
																	var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																	
																	var id = "lightbluetext8stitre4";
																	valeur = "italic";
																	var fondCouleurTabProfil = accesdemos;
																	var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																	
																	var id = "lightbluetext8stitre5";
																	valeur = "italic";
																	var fondCouleurTabProfil = accesdemos;
																	var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																	
																	var id = "lightbluetext8stitre6";
																	valeur = "italic";
																	var fondCouleurTabProfil = accesdemos;
																	var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																}
																	else if(objet.name == "italique4" && objet.checked == false) // ligne4
																		{
																			var id = "lightbluetext8stitre1";
																			valeur = "normal";
																			var fondCouleurTabProfil = accesdemos;
																			var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																			
																			var id = "lightbluetext8stitre2";
																			valeur = "normal";
																			var fondCouleurTabProfil = accesdemos;
																			var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																			
																			var id = "lightbluetext8stitre3";
																			valeur = "normal";
																			var fondCouleurTabProfil = accesdemos;
																			var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																			
																			var id = "lightbluetext8stitre4";
																			valeur = "normal";
																			var fondCouleurTabProfil = accesdemos;
																			var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																			
																			var id = "lightbluetext8stitre5";
																			valeur = "normal";
																			var fondCouleurTabProfil = accesdemos;
																			var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																			
																			var id = "lightbluetext8stitre6";
																			valeur = "normal";
																			var fondCouleurTabProfil = accesdemos;
																			var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																		}
																				else if(objet.name == "italique5" && objet.checked) // ligne5
																					{
																						var id = "text1";
																						valeur = "italic";
																						var fondCouleurTabProfil = accesdemos;
																						fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																						
																						var id = "text2";
																						valeur = "italic";
																						var fondCouleurTabProfil = accesdemos;
																						fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																						
																						var id = "text3";
																						valeur = "italic";
																						var fondCouleurTabProfil = accesdemos;
																						fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																						
																						var id = "text4";
																						valeur = "italic";
																						var fondCouleurTabProfil = accesdemos;
																						fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																						
																						var id = "text5";
																						valeur = "italic";
																						var fondCouleurTabProfil = accesdemos;
																						fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																						
																						var id = "text6";
																						valeur = "italic";
																						var fondCouleurTabProfil = accesdemos;
																						fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																						
																						var id = "text7";
																						valeur = "italic";
																						var fondCouleurTabProfil = accesdemos;
																						fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																						
																						var id = "text8";
																						valeur = "italic";
																						var fondCouleurTabProfil = accesdemos;
																						fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																						
																						var id = "text9";
																						valeur = "italic";
																						var fondCouleurTabProfil = accesdemos;
																						fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																						
																						var id = "text10";
																						valeur = "italic";
																						var fondCouleurTabProfil = accesdemos;
																						fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																						
																						var id = "text11";
																						valeur = "italic";
																						var fondCouleurTabProfil = accesdemos;
																						fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																						
																						var id = "text12";
																						valeur = "italic";
																						var fondCouleurTabProfil = accesdemos;
																						fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																						
																						var id = "text13";
																						valeur = "italic";
																						var fondCouleurTabProfil = accesdemos;
																						fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																						
																						var id = "text14";
																						valeur = "italic";
																						var fondCouleurTabProfil = accesdemos;
																						fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																						
																						var id = "text15";
																						valeur = "italic";
																						var fondCouleurTabProfil = accesdemos;
																						fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																						
																						var id = "text16";
																						valeur = "italic";
																						var fondCouleurTabProfil = accesdemos;
																						fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																					}
																							else if(objet.name == "italique5" && objet.checked == false) // ligne5
																								{
																									var id = "text1";
																									valeur = "normal";
																									var fondCouleurTabProfil = accesdemos;
																									fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																									
																									var id = "text2";
																									valeur = "normal";
																									var fondCouleurTabProfil = accesdemos;
																									fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																									
																									var id = "text3";
																									valeur = "normal";
																									var fondCouleurTabProfil = accesdemos;
																									fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																									
																									var id = "text4";
																									valeur = "normal";
																									var fondCouleurTabProfil = accesdemos;
																									fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																									
																									var id = "text5";
																									valeur = "normal";
																									var fondCouleurTabProfil = accesdemos;
																									fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																									
																									var id = "text6";
																									valeur = "normal";
																									var fondCouleurTabProfil = accesdemos;
																									fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																									
																									var id = "text7";
																									valeur = "normal";
																									var fondCouleurTabProfil = accesdemos;
																									fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																									
																									var id = "text8";
																									valeur = "normal";
																									var fondCouleurTabProfil = accesdemos;
																									fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																									
																									var id = "text9";
																									valeur = "normal";
																									var fondCouleurTabProfil = accesdemos;
																									fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																									
																									var id = "text10";
																									valeur = "normal";
																									var fondCouleurTabProfil = accesdemos;
																									fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																									
																									var id = "text11";
																									valeur = "normal";
																									var fondCouleurTabProfil = accesdemos;
																									fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																									
																									var id = "text12";
																									valeur = "normal";
																									var fondCouleurTabProfil = accesdemos;
																									fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																									
																									var id = "text13";
																									valeur = "normal";
																									var fondCouleurTabProfil = accesdemos;
																									fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																									
																									var id = "text14";
																									valeur = "normal";
																									var fondCouleurTabProfil = accesdemos;
																									fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																									
																									var id = "text15";
																									valeur = "normal";
																									var fondCouleurTabProfil = accesdemos;
																									fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																									
																									var id = "text16";
																									valeur = "normal";
																									var fondCouleurTabProfil = accesdemos;
																									fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																								}
																										else if(objet.name == "italique6" && objet.checked) // ligne6
																										{
																											var id = "redtext";
																											valeur = "italic";
																											var fondCouleurTabProfil = accesdemos;
																											fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																											
																											var id = "redtext1";
																											valeur = "italic";
																											var fondCouleurTabProfil = accesdemos;
																											fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																											
																											var id = "redbtext";
																											valeur = "italic";
																											var fondCouleurTabProfil = accesdemos;
																											fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																										}
																											else if(objet.name == "italique6" && objet.checked == false) // ligne6
																												{
																													var id = "redtext";
																													valeur = "normal";
																													var fondCouleurTabProfil = accesdemos;
																													fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																													
																													var id = "redtext1";
																													valeur = "normal";
																													var fondCouleurTabProfil = accesdemos;
																													fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																													
																													var id = "redbtext";
																													valeur = "normal";
																													var fondCouleurTabProfil = accesdemos;
																													fondCouleurTabProfil.contentWindow.document.getElementById(id).style.fontStyle = valeur;
																												}
																													else if(objet.name == "italique7" && objet.checked) // ligne7
																													{
																														valeur = "italic";
																														var fondCouleurTabProfil = accesdemos;
																														for(i=0; i<=58; 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=0; i<=58; i++)
																																{fondCouleurTabProfil.contentWindow.document.links[i].style.fontStyle = valeur;}
																																fondCouleurTabProfil.contentWindow.document.getElementById("outitalique").value = valeur;
																															}
																																else if(objet.name == "italique8" && objet.checked) // ligne8
																																{
																																	valeur = "italic";
																																	var fondCouleurTabProfil = accesdemos;
																																	fondCouleurTabProfil.contentWindow.document.getElementById("overitalique").value = valeur;
																																}
																																	else if(objet.name == "italique8" && objet.checked == false) // ligne8
																																	{
																																		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 = "whitetext12titre1";
					valeur = "underline";
					var fondCouleurTabProfil = accesdemos;
					var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
					
					var id = "whitetext12titre2";
					valeur = "underline";
					var fondCouleurTabProfil = accesdemos;
					var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
					
					var id = "whitetext12titre3";
					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 = "whitetext12titre1";
							valeur = "none";
							var fondCouleurTabProfil = accesdemos;
							var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
							
							var id = "whitetext12titre2";
							valeur = "none";
							var fondCouleurTabProfil = accesdemos;
							var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
							
							var id = "whitetext12titre3";
							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 id = "lightbluetext8stitre1";
																		valeur = "underline";
																		var fondCouleurTabProfil = accesdemos;
																		var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																		
																		var id = "lightbluetext8stitre2";
																		valeur = "underline";
																		var fondCouleurTabProfil = accesdemos;
																		var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																		
																		var id = "lightbluetext8stitre3";
																		valeur = "underline";
																		var fondCouleurTabProfil = accesdemos;
																		var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																		
																		var id = "lightbluetext8stitre4";
																		valeur = "underline";
																		var fondCouleurTabProfil = accesdemos;
																		var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																		
																		var id = "lightbluetext8stitre5";
																		valeur = "underline";
																		var fondCouleurTabProfil = accesdemos;
																		var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																		
																		var id = "lightbluetext8stitre6";
																		valeur = "underline";
																		var fondCouleurTabProfil = accesdemos;
																		var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																	}
																		else if(objet.name == "souligne4" && objet.checked == false)
																			{
																				var id = "lightbluetext8stitre1";
																				valeur = "none";
																				var fondCouleurTabProfil = accesdemos;
																				var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																				
																				var id = "lightbluetext8stitre2";
																				valeur = "none";
																				var fondCouleurTabProfil = accesdemos;
																				var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																				
																				var id = "lightbluetext8stitre3";
																				valeur = "none";
																				var fondCouleurTabProfil = accesdemos;
																				var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																				
																				var id = "lightbluetext8stitre4";
																				valeur = "none";
																				var fondCouleurTabProfil = accesdemos;
																				var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																				
																				var id = "lightbluetext8stitre5";
																				valeur = "none";
																				var fondCouleurTabProfil = accesdemos;
																				var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																				
																				var id = "lightbluetext8stitre6";
																				valeur = "none";
																				var fondCouleurTabProfil = accesdemos;
																				var valeur = fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																			}
																					else if(objet.name == "souligne5" && objet.checked) // ligne5
																						{
																							var id = "text1";
																							valeur = "underline";
																							var fondCouleurTabProfil = accesdemos;
																							fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																							
																							var id = "text2";
																							valeur = "underline";
																							var fondCouleurTabProfil = accesdemos;
																							fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																							
																							var id = "text3";
																							valeur = "underline";
																							var fondCouleurTabProfil = accesdemos;
																							fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																							
																							var id = "text4";
																							valeur = "underline";
																							var fondCouleurTabProfil = accesdemos;
																							fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																							
																							var id = "text5";
																							valeur = "underline";
																							var fondCouleurTabProfil = accesdemos;
																							fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																							
																							var id = "text6";
																							valeur = "underline";
																							var fondCouleurTabProfil = accesdemos;
																							fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																							
																							var id = "text7";
																							valeur = "underline";
																							var fondCouleurTabProfil = accesdemos;
																							fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																							
																							var id = "text8";
																							valeur = "underline";
																							var fondCouleurTabProfil = accesdemos;
																							fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																							
																							var id = "text9";
																							valeur = "underline";
																							var fondCouleurTabProfil = accesdemos;
																							fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																							
																							var id = "text10";
																							valeur = "underline";
																							var fondCouleurTabProfil = accesdemos;
																							fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																							
																							var id = "text11";
																							valeur = "underline";
																							var fondCouleurTabProfil = accesdemos;
																							fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																							
																							var id = "text12";
																							valeur = "underline";
																							var fondCouleurTabProfil = accesdemos;
																							fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																							
																							var id = "text13";
																							valeur = "underline";
																							var fondCouleurTabProfil = accesdemos;
																							fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																							
																							var id = "text14";
																							valeur = "underline";
																							var fondCouleurTabProfil = accesdemos;
																							fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																							
																							var id = "text15";
																							valeur = "underline";
																							var fondCouleurTabProfil = accesdemos;
																							fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																							
																							var id = "text16";
																							valeur = "underline";
																							var fondCouleurTabProfil = accesdemos;
																							fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																						}
																								else if(objet.name == "souligne5" && objet.checked == false) // ligne5
																									{
																										var id = "text1";
																										valeur = "none";
																										var fondCouleurTabProfil = accesdemos;
																										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																										
																										var id = "text2";
																										valeur = "none";
																										var fondCouleurTabProfil = accesdemos;
																										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																										
																										var id = "text3";
																										valeur = "none";
																										var fondCouleurTabProfil = accesdemos;
																										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																										
																										var id = "text4";
																										valeur = "none";
																										var fondCouleurTabProfil = accesdemos;
																										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																										
																										var id = "text5";
																										valeur = "none";
																										var fondCouleurTabProfil = accesdemos;
																										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																										
																										var id = "text6";
																										valeur = "none";
																										var fondCouleurTabProfil = accesdemos;
																										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																										
																										var id = "text7";
																										valeur = "none";
																										var fondCouleurTabProfil = accesdemos;
																										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																										
																										var id = "text8";
																										valeur = "none";
																										var fondCouleurTabProfil = accesdemos;
																										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																										
																										var id = "text9";
																										valeur = "none";
																										var fondCouleurTabProfil = accesdemos;
																										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																										
																										var id = "text10";
																										valeur = "none";
																										var fondCouleurTabProfil = accesdemos;
																										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																										
																										var id = "text11";
																										valeur = "none";
																										var fondCouleurTabProfil = accesdemos;
																										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																										
																										var id = "text12";
																										valeur = "none";
																										var fondCouleurTabProfil = accesdemos;
																										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																										
																										var id = "text13";
																										valeur = "none";
																										var fondCouleurTabProfil = accesdemos;
																										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																										
																										var id = "text14";
																										valeur = "none";
																										var fondCouleurTabProfil = accesdemos;
																										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																										
																										var id = "text15";
																										valeur = "none";
																										var fondCouleurTabProfil = accesdemos;
																										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																										
																										var id = "text16";
																										valeur = "none";
																										var fondCouleurTabProfil = accesdemos;
																										fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																									}
																											else if(objet.name == "souligne6" && objet.checked) // ligne6
																												{
																													var id = "redtext";
																													valeur = "underline";
																													var fondCouleurTabProfil = accesdemos;
																													fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																													
																													var id = "redtext1";
																													valeur = "underline";
																													var fondCouleurTabProfil = accesdemos;
																													fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																													
																													var id = "redbtext";
																													valeur = "underline";
																													var fondCouleurTabProfil = accesdemos;
																													fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																												}
																													else if(objet.name == "souligne6" && objet.checked == false) // ligne6
																														{
																															var id = "redtext";
																															valeur = "none";
																															var fondCouleurTabProfil = accesdemos;
																															fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																															
																															var id = "redtext1";
																															valeur = "none";
																															var fondCouleurTabProfil = accesdemos;
																															fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																															
																															var id = "redbtext";
																															valeur = "none";
																															var fondCouleurTabProfil = accesdemos;
																															fondCouleurTabProfil.contentWindow.document.getElementById(id).style.textDecoration = valeur;
																														}
																																else if(objet.name == "souligne7" && objet.checked) // ligne7
																																	{
																																		valeur = "underline";
																																		var fondCouleurTabProfil = accesdemos;
																																		for(i=0; i<=58; 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=0; i<=58; i++)
																																				{fondCouleurTabProfil.contentWindow.document.links[i].style.textDecoration = valeur;}
																																				fondCouleurTabProfil.contentWindow.document.getElementById("outsouligne").value = valeur;
																																			}
																																				else if(objet.name == "souligne8" && objet.checked) // ligne8
																																				{
																																					val = "underline";
																																					var fondCouleurTabProfil = accesdemos;
																																					fondCouleurTabProfil.contentWindow.document.getElementById("oversouligne").value = val;
																																				}
																																					else if(objet.name == "souligne8" && objet.checked == false) // ligne8
																																						{
																																							val = "none";
																																							var fondCouleurTabProfil = accesdemos;
																																							fondCouleurTabProfil.contentWindow.document.getElementById("oversouligne").value = val;
																																						}
}



function fondimgtabc()
{
	if(blanc_globale == 0)
	{
		blanc();
	}
	
	var accesdemos = document.getElementById("demo");
	
	var Urlval = document.forms["form1"].elements["fond_img_tabc"].options[document.forms["form1"].elements["fond_img_tabc"].selectedIndex].value;
	var Url = "url(http://myspace-editeur-profil.com/ImgFondTabContact/"+Urlval+".jpg)";
	
	if(Urlval != "none")
	{
	var fondCouleur = accesdemos; // Acces IFRAME
	fondCouleur.contentWindow.document.getElementById("tableContact").style.backgroundImage = Url; // Img fond
	
	fondCouleur.contentWindow.document.getElementById("contactmail1").style.visibility = "hidden";
	fondCouleur.contentWindow.document.getElementById("contactsignaler1").style.visibility = "hidden";
	fondCouleur.contentWindow.document.getElementById("contactadd1").style.visibility = "hidden";
	fondCouleur.contentWindow.document.getElementById("contactfavoris1").style.visibility = "hidden";
	fondCouleur.contentWindow.document.getElementById("contactmessage1").style.visibility = "hidden";
	fondCouleur.contentWindow.document.getElementById("contactblock1").style.visibility = "hidden";
	fondCouleur.contentWindow.document.getElementById("contactgroup1").style.visibility = "hidden";
	fondCouleur.contentWindow.document.getElementById("contactrank1").style.visibility = "hidden";
	fondCouleur.contentWindow.document.getElementById("whitetext12titre1").style.visibility = "hidden";
	fondCouleur.contentWindow.document.getElementById("whitetext12titre11").style.visibility = "hidden";
	}
		else
			{
				var fondCouleur = accesdemos; // Acces IFRAME
				fondCouleur.contentWindow.document.getElementById("tableContact").style.backgroundImage = "none"; // Img fond
				
				fondCouleur.contentWindow.document.getElementById("contactmail1").style.visibility = "visible";
				fondCouleur.contentWindow.document.getElementById("contactsignaler1").style.visibility = "visible";
				fondCouleur.contentWindow.document.getElementById("contactadd1").style.visibility = "visible";
				fondCouleur.contentWindow.document.getElementById("contactfavoris1").style.visibility = "visible";
				fondCouleur.contentWindow.document.getElementById("contactmessage1").style.visibility = "visible";
				fondCouleur.contentWindow.document.getElementById("contactblock1").style.visibility = "visible";
				fondCouleur.contentWindow.document.getElementById("contactgroup1").style.visibility = "visible";
				fondCouleur.contentWindow.document.getElementById("contactrank1").style.visibility = "visible";
				fondCouleur.contentWindow.document.getElementById("whitetext12titre1").style.visibility = "visible";
				fondCouleur.contentWindow.document.getElementById("whitetext12titre11").style.visibility = "visible";
			}
}



function fondimgcontact(objet)
{
	if(blanc_globale == 0)
	{
		blanc();
	}
	
	if(document.forms["form1"].elements["fond_img_contact"].value != "")
	{
	var accesdemos = document.getElementById("demo");
	
	var Url = document.forms["form1"].elements["fond_img_contact"].value;
	var Url = "url("+Url+")";
	
	var fondCouleur = accesdemos; // Acces IFRAME
	fondCouleur.contentWindow.document.getElementById("tableContact").style.backgroundImage = Url; // Img fond
	fondCouleur.contentWindow.document.getElementById("tableContact").style.backgroundPosition = "bottom left";
	
	fondCouleur.contentWindow.document.getElementById("contactmail1").style.visibility = "hidden";
	fondCouleur.contentWindow.document.getElementById("contactsignaler1").style.visibility = "hidden";
	fondCouleur.contentWindow.document.getElementById("contactadd1").style.visibility = "hidden";
	fondCouleur.contentWindow.document.getElementById("contactfavoris1").style.visibility = "hidden";
	fondCouleur.contentWindow.document.getElementById("contactmessage1").style.visibility = "hidden";
	fondCouleur.contentWindow.document.getElementById("contactblock1").style.visibility = "hidden";
	fondCouleur.contentWindow.document.getElementById("contactgroup1").style.visibility = "hidden";
	fondCouleur.contentWindow.document.getElementById("contactrank1").style.visibility = "hidden";
	fondCouleur.contentWindow.document.getElementById("whitetext12titre1").style.visibility = "hidden";
	fondCouleur.contentWindow.document.getElementById("whitetext12titre11").style.visibility = "hidden";
	}
		else
			{
				var accesdemos = document.getElementById("demo");
				var fondCouleur = accesdemos; // Acces IFRAME
				fondCouleur.contentWindow.document.getElementById("tableContact").style.backgroundImage = "none"; // Img fond
				
				fondCouleur.contentWindow.document.getElementById("contactmail1").style.visibility = "visible";
				fondCouleur.contentWindow.document.getElementById("contactsignaler1").style.visibility = "visible";
				fondCouleur.contentWindow.document.getElementById("contactadd1").style.visibility = "visible";
				fondCouleur.contentWindow.document.getElementById("contactfavoris1").style.visibility = "visible";
				fondCouleur.contentWindow.document.getElementById("contactmessage1").style.visibility = "visible";
				fondCouleur.contentWindow.document.getElementById("contactblock1").style.visibility = "visible";
				fondCouleur.contentWindow.document.getElementById("contactgroup1").style.visibility = "visible";
				fondCouleur.contentWindow.document.getElementById("contactrank1").style.visibility = "visible";
				fondCouleur.contentWindow.document.getElementById("whitetext12titre1").style.visibility = "visible";
				fondCouleur.contentWindow.document.getElementById("whitetext12titre11").style.visibility = "visible";
			}
}



function bordureimg(objet)
{
	var taille = objet.value
	if(taille == "0" || taille == "")
	{var taille = "0"}
	var accesdemos = document.getElementById("demo");
	var fondCouleur = accesdemos; // Acces IFRAME
	fondCouleur.contentWindow.document.getElementById("ami1").style.borderWidth = taille;
	fondCouleur.contentWindow.document.getElementById("ami2").style.borderWidth = taille;
	fondCouleur.contentWindow.document.getElementById("ami3").style.borderWidth = taille;
	fondCouleur.contentWindow.document.getElementById("ami4").style.borderWidth = taille;
	fondCouleur.contentWindow.document.getElementById("ami5").style.borderWidth = taille;
	fondCouleur.contentWindow.document.getElementById("ami6").style.borderWidth = taille;
	fondCouleur.contentWindow.document.getElementById("ami7").style.borderWidth = taille;
	fondCouleur.contentWindow.document.getElementById("com1").style.borderWidth = taille;
}


function borduresimg(objet)
{
	var style = objet.options[objet.selectedIndex].value;
	var accesdemos = document.getElementById("demo");
	var fondCouleur = accesdemos; // Acces IFRAME
	fondCouleur.contentWindow.document.getElementById("ami1").style.borderStyle = style;
	fondCouleur.contentWindow.document.getElementById("ami2").style.borderStyle = style;
	fondCouleur.contentWindow.document.getElementById("ami3").style.borderStyle = style;
	fondCouleur.contentWindow.document.getElementById("ami4").style.borderStyle = style;
	fondCouleur.contentWindow.document.getElementById("ami5").style.borderStyle = style;
	fondCouleur.contentWindow.document.getElementById("ami6").style.borderStyle = style;
	fondCouleur.contentWindow.document.getElementById("ami7").style.borderStyle = style;
	fondCouleur.contentWindow.document.getElementById("com1").style.borderStyle = style;
}



function bordureimgcouleur()
{
	var accesdemos = document.getElementById("demo");
	var fondCouleur = accesdemos; // Acces IFRAME
	var valeur = document.forms["form1"].elements["text_couleur9"].value;
	fondCouleur.contentWindow.document.getElementById("ami1").style.borderColor = valeur;
	fondCouleur.contentWindow.document.getElementById("ami2").style.borderColor = valeur;
	fondCouleur.contentWindow.document.getElementById("ami3").style.borderColor = valeur;
	fondCouleur.contentWindow.document.getElementById("ami4").style.borderColor = valeur;
	fondCouleur.contentWindow.document.getElementById("ami5").style.borderColor = valeur;
	fondCouleur.contentWindow.document.getElementById("ami6").style.borderColor = valeur;
	fondCouleur.contentWindow.document.getElementById("ami7").style.borderColor = valeur;
	fondCouleur.contentWindow.document.getElementById("com1").style.borderColor = valeur;
}



function cachereseauf(objet)
{
	if(objet.checked)
	{
	var accesdemos = document.getElementById("demo");
	var extented = accesdemos; // Acces IFRAME
	extented.contentWindow.document.getElementById("tableReseau").style.visibility = "hidden";
	extented.contentWindow.document.getElementById("tableReseau").style.display = "none";
	}
		else if(objet.checked == false)
		{
			var accesdemos = document.getElementById("demo");
			var extented = accesdemos; // Acces IFRAME
			extented.contentWindow.document.getElementById("tableReseau").style.visibility = "visible";
			extented.contentWindow.document.getElementById("tableReseau").style.display = "block";
		}
}


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<=58; i++)
		{accesdemos.contentWindow.document.links[i].style.cursor = 'pointer/'+style+'.cur';}
}


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


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

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


function taillebordmyspace()
{
	if(blanc_globale == 0)
	{
		blanc();
	}
	
	bordurestylemyspace();
	bordurecolormyspace();
	
	var accesdemos = document.getElementById("demo");
	var valeurmysty = document.forms["form1"].elements["taille_bordure_myspace"].value;
	
	if(valeurmysty == "") {valeurmysty = 0;} // pour eviter la navigateur à choisir taille au hazard
	
	var LargeurBorduremyspace = accesdemos; // Acces IFRAME
	LargeurBorduremyspace.contentWindow.document.getElementById("body").style.borderWidth = valeurmysty; // TAILLE bordure
}


function bordurestylemyspace()
{
	
	var accesdemos = document.getElementById("demo");
	var bordstyle = accesdemos;
	
	var valeurbor = document.forms["form1"].elements["bordure_style_myspace"].options[document.forms["form1"].elements["bordure_style_myspace"].selectedIndex].value;
	
	bordstyle.contentWindow.document.getElementById("body").style.borderStyle = valeurbor; // STYLE bordure myspace	
}


function bordurecolormyspace()
{
	var accesdemos = document.getElementById("demo");
	var bordcolor = accesdemos;
	
	var valeurborcol = document.forms["form1"].elements["bordure_coul_myspace"].value;
	if(valeurborcol == ""){valeurborcol = "#988038";} // Si pas de couleur alors celle ci
	bordcolor.contentWindow.document.getElementById("body").style.borderColor = valeurborcol; // couleur fond
}


function enteteimg()
{
	var Url = document.getElementById("entete_img").value;
	
	var image = new Image();

	image.onload = function()
		{
				Down_img = 1;
				
				var height_img = image.height;
				var width_img = image.width;
				marge_G = (width_img/2) * -1;
				
			   var acces = document.getElementById("demo"); // Acces IFRAME
			   acces.contentWindow.document.getElementById("aff_img").src = image.src; // Img fond
			   acces.contentWindow.document.getElementById("aff_img").height = height_img;
			   acces.contentWindow.document.getElementById("aff_img").width = width_img;
			   acces.contentWindow.document.getElementById("entete").style.visibility = "visible";
			   acces.contentWindow.document.getElementById("entete").style.height = height_img;
			   acces.contentWindow.document.getElementById("entete").style.width = width_img;
			   acces.contentWindow.document.getElementById("entete").style.left = "50%";
			   acces.contentWindow.document.getElementById("entete").style.marginLeft = marge_G;
			   acces.contentWindow.document.getElementById("body").style.marginTop = height_img;
		}
	image.onerror = function()
		{
				Down_img = 0;
				
			   var acces = document.getElementById("demo"); // Acces IFRAME
			   acces.contentWindow.document.getElementById("aff_img").src = ""; // Img fond
			   acces.contentWindow.document.getElementById("entete").style.visibility = "hidden";
			   acces.contentWindow.document.getElementById("body").style.marginTop = "0px";
		}
		
	image.src = Url;
}