// DETECTION FLASH
function getFlash(){var e,f=0,v=0,x,i,y;if(navigator.plugins&&navigator.plugins.length){x=navigator.plugins['Shockwave Flash'];if(x){f=1;if(x.description){y=x.description;v=y.charAt(y.indexOf('.')-1)}}else f=2;if(navigator.plugins['Shockwave Flash 2.0']){f=1;v=2}}else if(navigator.mimeTypes&&navigator.mimeTypes.length){x=navigator.mimeTypes['application/x-shockwave-flash'];if(x&&x.enabledPlugin)f=1;else f=2;}else{for(i=2;i<7;i++){try{o=new ActiveXObject('ShockwaveFlash.ShockwaveFlash.'+i);f=1;v=i;}catch(e){f=2}}if(f==0)f=2;}return f==1?'1.'+v:f}

// BLOC DU CLIC DROIT
var message="";
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if (document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")

// FAIRE CONNAITRE CE SITE
function verif( form ) {
if ( form.email.value=="" && form.tel.value=="" ) { alert("Entrez un Email ou numéro de téléphone");
return false;
}
if ( form.email.value!="") {
if ( form.email.value.indexOf("@", 0) < 0  || form.email.value.indexOf(".", 0) < 0) { alert("Email incorrect !"); return false;}
}
if ( form.message.value=="" ) { alert("Entrez un message !");
return false;
}
else return true;
}

function mailpage()
{
mail_str = "mailto:?subject=Regarde ce site ";
mail_str += "&body=Cette société peut t'intéresser ? " + document.title;
mail_str += " à l'adresse : " + location.href; 
location.href = mail_str;
}

// Fonction mail
function champsok()
{
if (document.form.nom.value.length == 0)
{alert("Vous n'avez pas saisie votre nom.");return false;}

if (document.form.email.value.length == 0)
{alert("Vous n'avez pas saisie votre Email.");return false;}

if (document.form.demande.value.length == 0)
{alert("Vous n'avez pas saisie votre demande.");return false;}
return true;
}
