
	function ecritureBlocInfoHaut(){


		var Destination = document.getElementById('ecritureBlocAvantage'); 

		var blocAvantage='<table border="0" cellspacing="0" cellpadding="0" background="http://www.reef-ocean.com/fichiers/fondCalqueInfos.gif" width="980" height="288" align="center"><tr>'
            +'<td valign="top"><img src="http://www.reef-ocean.com/fichiers/Avantage_img.jpg"></td>'
            +'<td valign="top" width="364" background="http://www.reef-ocean.com/fichiers/Avantage_1.gif">'
			+'<div class="txtCalqueInfos" style="margin-top: 60px; margin-left: 70px;">'
			+'Nous prenons &agrave; notre charge les frais<br>de port de votre commmande si celle-ci atteind 39&euro<br>et est livrée en France Métropolitaine !!'
			+'<div class="coul1" style="padding-top: 5px;"><a href="http://www.reef-ocean.com/reef-ocean.php"><font color="#1f91da">&gt; Plus d\'infos</font> </a></div>'
			+'</div>'			

			+'<div class="txtCalqueInfos" style="margin-top: 75px; margin-left: 70px;">'
			+'<br>Reef Ocean s\'engage sur un remboursement du montant <br>de votre commande (hors frais de port et sous conditions) <br>si vous n\'êtes pas 100% satisfait par votre achat. <br>Un engagement de 7 jours après votre achat !<br>'
			+'<div class="coul1" style="padding-top: 5px;"><a href="http://www.reef-ocean.com/reef-ocean.php"><font color="#1f91da"> &gt; Plus d\'infos</font></a></div>'
			+'</div>'

			+'</td>'
			+'<td valign="top" width="384" background="http://www.reef-ocean.com/fichiers/Avantage_2.gif">'
			
			+'<div class="txtCalqueInfos" style="margin-top: 60px; margin-left: 70px;">'
			+'Vous trouvez un produit identique avec les mêmes <br>options moins cher ailleurs ? <br>Contactez-nous et nous nous alignons au même prix !'
 
			+'<div class="coul1" style="padding-top: 5px;"><a href="http://www.reef-ocean.com/reef-ocean.php"><font color="#1f91da"> &gt; Plus d\'infos</font></a></div>'
			+'</div>'
			
			+'</td></tr></table>';

			Destination.innerHTML =	 blocAvantage;	
	




		// bloc Client et nous
		//-----------------------------------
		var Destination = document.getElementById('ecritureBlocClientEtNous'); 

		var BlocClientEtNous='<table border="0" cellspacing="0" cellpadding="0" background="http://www.reef-ocean.com/fichiers/fondCalqueInfos.gif" width="980" height="288" align="center"><tr>'
			+'<td valign="top"><img src="http://www.reef-ocean.com/fichiers/clients_img.jpg" width="232" height="288"></td>'
			+'<td valign="top">'
			
			+'<div><img src="http://www.reef-ocean.com/fichiers/clients_1.gif"></div>'
			
			+'<div class="txtCalqueInfos" style="margin-top: 5px; margin-left: 40px;">'
			+'Toujours soucieux d\'améliorer notre service, nous sommes à l\'écoute de nos clients au travers de plusieurs outils et forums<br> du net.  <br>En fonction de vos observations, nous tentons de nous corriger afin de tendre vers la perfection, car nos meilleurs représentants c\'est vous ! <br><br>'
 
			+'<div class="coul1" style="font-size:10px; margin-bottom:3px;"><b>Votre avis nous intéresse !</b></div>'
			+'Après chaque commande, nous vous demandons de  nous donner votre avis sur le déroulement de celle-ci afin de mieux répondre à vos attentes ... 	<br><br>'
			+'<div class="coul1" style="margin-top:10px; font-size:10px;"><a href="http://www.reef-ocean.com/avis-reef-ocean/index/"><font color="#1f91da">  &gt; Voir le livre d\'or de Reef Ocean</font></a></div>'			
			
			+'</div>'
			+'</td>'	
			+'<td valign="top"><img src="http://www.reef-ocean.com/fichiers/clients_sep.gif"></td>'
			
			+'<td valign="top">'
				
			
			+'</td></tr></table>';

			Destination.innerHTML =	 BlocClientEtNous;


		// bloc Paiement / Livraison
		//-----------------------------------
		var Destination = document.getElementById('ecritureBlocPaiementLivraison'); 

		var BlocPaiementLivraison='<table border="0" cellspacing="0" cellpadding="0" background="http://www.reef-ocean.com/fichiers/fondCalqueInfos.gif" width="980" height="288" align="center"><tr>'
			+'<td valign="top"><img src="http://www.reef-ocean.com/fichiers/paiementLiv_img.jpg" width="232" height="288"></td>'
			+'<td valign="top"><a href="http://www.reef-ocean.com/paiement.php"><img src="http://www.reef-ocean.com/fichiers/paiementLiv_1.gif" border="0"></a></td>'
			+'<td valign="top">'
			+'<div><img src="http://www.reef-ocean.com/fichiers/paiementLiv_2.gif"></div>'
			+'<div class="txtCalqueInfos" style="margin-top: 10px; margin-left: 25px;">'		
			
			+'<div class="coul1" style="font-size:10px; margin-top:6px; margin-bottom:1px;"><b>Délais :</b></div>'
			+'Notre objectif est de traiter votre commande au plus vite.<br><span style="text-decoration:underline;"><b>Si tous les articles qui la composent sont en stock, celle-ci sera expédiée sous 24 à 48h maximum !</b></span>'
			+'<div class="coul1" style="font-size:10px; margin-top:6px; margin-bottom:1px;"><b>Livraison Gratuite :</b></div>'
			+'Reef-Ocean.com vous offre les frais de livraison en France <br>Métropolitaine (Hors Corse) <b>à partir de 39 euros d\'achat.</b>' 

		
			+'<div class="coul1" style="font-size:10px; margin-top:6px; margin-bottom:1px;"><b>Livraison, le choix du transporteur :</b></div>'
			+'La livraison se fait par transporteur, colissimo (la poste) ou UPS jusqu\'à 30kg.<br>Reef Ocean se réserve le choix de choisir le transporteur le plus adapté à votre commande. '			

			+'<div style="margin-top:5px;"><img src="http://www.reef-ocean.com/fichiers/paiementLiv_logoPoste.gif"></div>'
			+'<div class="coul1" style="padding-top: 2px;"><a href="http://www.reef-ocean.com/livraison.php"><font color="#1f91da"> &gt; Plus d\'infos</font></a></div>'		
			+'</div>'

			+'</td></tr></table>';


			Destination.innerHTML =	 BlocPaiementLivraison;


	}


	function ecritureBlocServiceClient(){
		document.write('<div><a href="http://www.reef-ocean.com/customer/account/index/"><img src="http://www.reef-ocean.com/fichiers/serviceClient_2.gif"></a></div>'
			
);		
			
}


// gestion du form
//--------------------------------------------------------------------------------
function verifFormABK(){
	var erreur = 0;
	var txtErreur1="", txtErreur2="", txtErreur3="";
	var reponse1="", reponse2="";
	
	if(document.formulaireDemandeContact.nom.value == ""){
		txtErreur1 = " - Votre nom\n"
		erreur= 1;
	}
	
	if (document.formulaireDemandeContact.choixContact.value == "0" ){
		txtErreur2 = " - La raison de votre demande de contact\n"
		erreur= 1;	
	}


	if(document.formulaireDemandeContact.reponse[1].checked==true || document.formulaireDemandeContact.reponse[2].checked==true){

			
	}
	else{
		txtErreur3 = " - Réponse souhaitée par téléphone ou par E-mail\n"
		erreur= 1;	
	}



	if(erreur==1){
		alert("Merci de préciser :\n"+txtErreur1+txtErreur2+txtErreur3);	
	}
	else{
		if(erreur==0){
			// verif email
			var adresse = document.formulaireDemandeContact.email.value;
			var place = adresse.indexOf("@",1);
			var point = adresse.indexOf(".",place+1);
			if ((place > -1)&&(adresse.length >2)&&(point > 1)&&(adresse.length > point+2)){
			}
			else{
				document.formulaireDemandeContact.email.focus();
				alert("Merci de saisir une adresse E-mail valide");
				erreur=1;		
			}
		}

		// verif si reponse Email
		if(document.formulaireDemandeContact.reponse[1].checked==true){
			reponse1 = "par_E-mail"			
									
		}	
		// verif si reponse Telephone			
		if(document.formulaireDemandeContact.reponse[2].checked==true){
			reponse2 = "par_téléphone"
			if (document.formulaireDemandeContact.telephone.value==""){
				alert("Vous avez demandé une réponse par Téléphone, merci de noter votre numéro");
				erreur=1;
			}			
		}		
	}



	if(erreur==0){
		document.formulaireDemandeContact.reponse.value = reponse1 +" "+ reponse2;
		document.formulaireDemandeContact.submit();
		//alert("ok");
	}	


}


