

function verif_recommandation()
{
 if(document.formrecommandation.votrenom.value == "") {
   alert("Veuillez indiquer votre nom !");
   document.formrecommandation.votrenom.focus();
   return false;
  }
 if(document.formrecommandation.votreemail.value == "") {
   alert("Veuillez indiquer votre email !");
   document.formrecommandation.votreemail.focus();
   return false;
  }
 if(document.formrecommandation.votreemail.value.indexOf('@') == -1) {
   alert("Ce n'est pas une adresse email valide !");
   document.formrecommandation.votreemail.focus();
   return false;
  }
 if(document.formrecommandation.sonnom.value == "") {
   alert("Veuillez indiquer le nom de votre ami !");
   document.formrecommandation.sonnom.focus();
   return false;
  }
 if(document.formrecommandation.sonemail.value == "") {
   alert("Veuillez entrer l'adresse email de votre ami !");
   document.formrecommandation.sonemail.focus();
   return false;
  }
 if(document.formrecommandation.sonemail.value.indexOf('@') == -1) {
   alert("Ce n'est pas une adresse email valide !");
   document.formrecommandation.sonemail.focus();
   return false;
  }
}



function verif_commentaire()
{
 if(document.formcommentaire.votrenom.value == "") {
   alert("Veuillez indiquer votre nom !");
   document.formcommentaire.votrenom.focus();
   return false;
  }
 if(document.formcommentaire.votreemail.value == "") {
   alert("Veuillez indiquer votre email !");
   document.formcommentaire.votreemail.focus();
   return false;
  }
 if(document.formcommentaire.votreemail.value.indexOf('@') == -1) {
   alert("Ce n'est pas une adresse email valide !");
   document.formcommentaire.votreemail.focus();
   return false;
  }
 if(document.formcommentaire.message.value == "") {
   alert("Veuillez rédiger votre message !");
   document.formcommentaire.message.focus();
   return false;
  }
}


function goprint()
{
	var a = window.open('','','width=600,height=480');
	a.document.open("text/html");
	a.document.write('<div style="font-size : 0.7em;font-family : arial;text-align : justify;">');
	a.document.write(document.getElementById('pano_print').innerHTML);
	a.document.write('</div>');
	a.document.write('<div style="border-top : 1px dotted #ddd;text-align : right;"><b>Source</b> : <a href="http://www.rhetork.com">Rhetork.com</a></div>');
	a.document.close();
	a.print();
}


function pleinecran(peURL) {
window.open(peURL,'Rhetork','top=0, left=0, width='+screen.width+', height='+screen.height+',resizable=yes ,scrollbars=yes, status=no, location=no, copyhistory=no, directories=no, menubar=no, toolbar=no');
}






var truc = false;

function ouvre_y(what){
if(truc) clearTimeout(truc);
var quoi = document.getElementById(what);
quoi.className = 'activ';
quoi.style.height = 'auto';
var origine = quoi.offsetHeight;
var sens = quoi.style.visibility=='hidden'? 10 : -14;
quoi.style.visibility = 'visible';
var larg = sens>0? 0 : origine;
glisser_y(what, larg, origine, sens);
return false;


}


function glisser_y(what, larg, origine, sens) {
var quoi = document.getElementById(what);
larg += sens;
if(larg>0 && larg<origine) {
	quoi.style.height = larg+'px';
	truc = setTimeout('glisser_y("'+what+'",'+larg+','+origine+','+sens+')',10);
}else if(larg<=0){
	quoi.style.visibility = 'hidden';
}
}