



// ********************************************************* envoyer a un ami
function mailpage()
{
mail_str = "mailto:?subject=Regarde ce site, " + document.title;
mail_str += "&body=Sur le site 'BIOLINA - Produits naturels' ( http://www.biolina.fr/ ), \n ça peut t'intéresser : " + document.title;
mail_str += "            \n Disponible à l'adresse: " + document.location.href; 
location.href = mail_str;
}
// ********************************************************* affiche ou chache une DIV
   function affCache(truc)
{
	var ongletListe= document.getElementById(truc);
 
	if (ongletListe.style.display == "block") {
		ongletListe.style.display = "none";
	} else {
		ongletListe.style.display = "block";
	}
}
   function Cache(truc)
{   
	var machin= document.getElementById(truc);
		machin.style.display = "none";
}
   function Affiche(truc)
{   
	var machin= document.getElementById(truc);
		machin.style.display = "block";
}


// ------------------------------------------------------------ Ouvre une POPUP 
function popup(nUrl,nNom,w,h,nScroll){
  var winl = (screen.width) ? (screen.width-w)/2 : 0;
  var wint = (screen.height) ? (screen.height-h)/2 : 0;
  var options = 'width='+w+',height='+h+',top='+wint+',left='+winl+',scrollbars='+nScroll+',resizable=no';
  neo=window.open(nUrl,nNom,options);}
  
  
// ------------------------------------------------------------ anti clic-droit
//For full source code, visit http://www.dynamicdrive.com
var message="Copyright © 2010 BIOLINA.fr - Tous droits réservés.";

function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false")



// anti copie du texte --> desactive Ctrl Alt - disable Ctrl Alt
// Si pour Firefox aussi, Alors 
// voir : http://www.geekpedia.com/tutorial138_Get-key-press-event-using-JavaScript.html
// ou voir : http://www.commentcamarche.net/faq/18760-javascript-manipulation-des-controles-clavier
//function alert_keycode(){ if (event.keyCode == 17 || event.keyCode == 18) { alert(message) } } document.onkeydown=alert_keycode;
// ou :
//document.onkeydown = function(e) {e=e||window.event; if (e.keyCode == 78 && e.ctrlKey) {return false;}}




