

//Function de calcul de poids et IMC
function Affich() {
Taillef=new Array('52.40','55.60','58.30','61.00','63.00','64.80','66.40','67.80','69.10','70.30','71.50','72.00','79.00','84.30','88.80','92.70');
Tailleg=new Array('53.20','56.70','59.90','62.50','64.70','66.40','68.00','69.50','70.80','72.00','73.20','74.30','80.50','85.60','90.20','94.20');
Poidsf=new Array('3.75','4.60','5.35','6.00','6.60','7.11','7.60','8.05','8.39','8.72','9.00','9.24','10.56','11.59','12.64','13.60');
Poidsg=new Array('3.96','4.90','5.75','6.48','7.10','7.58','8.08','8.50','8.88','9.20','9.52','9.81','11.14','12.18','13.22','14.14');
ageselect=document.calculpoidstaille.age.selectedIndex;
if (document.calculpoidstaille.genre.options[1].selected==true) {
//garçon
document.calculpoidstaille.taille.value=Tailleg[ageselect];
document.calculpoidstaille.poids.value=Poidsg[ageselect];
}else {
//fille
document.calculpoidstaille.taille.value=Taillef[document.calculpoidstaille.age.selectedIndex];
document.calculpoidstaille.poids.value=Poidsf[document.calculpoidstaille.age.selectedIndex];
}
taillecarre=document.calculpoidstaille.taille.value/100 ;
taillecarre=taillecarre*taillecarre ;
intermed=document.calculpoidstaille.poids.value/taillecarre ;
document.calculpoidstaille.IMC.value=Math.round(intermed*100)/100 ;
}

function cal_my_imc() {
str_size=document.my_imc.my_size.value ;
str_weight=document.my_imc.my_weight.value ;
re = /[^0-9]/
if (re.test(str_size)) {alert('Veuillez entrer votre taille en cm : nombre entier uniquement');
document.my_imc.my_size.value="";
document.my_imc.my_size.focus();
}
if (re.test(str_weight)) {alert('Veuillez entrer votre poids en kg : nombre entier uniquement');
document.my_imc.my_weight.value="";
document.my_imc.my_weight.focus();
}
mysizecar=document.my_imc.my_size.value/100 ;
mysizecar=mysizecar*mysizecar ;
myintermed=document.my_imc.my_weight.value/mysizecar ;
document.my_imc.my_result.value=Math.round(myintermed*100)/100 ;
}


//Fin calcul de poids et IMC

if (document.layers){
	document.captureEvents( Event.MOUSEDOWN );
	document.onmousedown = function (evt){
      		if ( evt.which == 3 ) return false;
    };
}

document.oncontextmenu = function() {
    return false;
}




<!--Two steps to installing this script-->
<!--1) Copy everything below, and paste in BODY section of page-->
<!--2) Configure variables below to customize popup-->
/*
This script compliments of
http://www.designerindex.com
*/
var expDays = 7; // number of days the cookie should last (0 will cause it to always pop up)
var page =  "http://ad.publicidees.com/showadfactory.php?partid=3500&adfactory_type=adShop&progid=164&context=nourrisson+bébé+enceinte";
var windowprops = "width=550,height=630,location=no,toolbar=no,menubar=no,scrollbars=auto,resizable=yes";

function GetCookie (name) { 
var arg = name + "="; 
var alen = arg.length; 
var clen = document.cookie.length; 
var i = 0; 
while (i < clen) { 
var j = i + alen; 
if (document.cookie.substring(i, j) == arg) 
return getCookieVal (j); 
i = document.cookie.indexOf(" ", i) + 1; 
if (i == 0) break; 
} 
return null;
}

function SetCookie (name, value) { 
var argv = SetCookie.arguments; 
var argc = SetCookie.arguments.length; 
var expires = (argc > 2) ? argv[2] : null; 
var path = (argc > 3) ? argv[3] : null; 
var domain = (argc > 4) ? argv[4] : null; 
var secure = (argc > 5) ? argv[5] : false; 
document.cookie = name + "=" + escape (value) + 
((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + 
((path == null) ? "" : ("; path=" + path)) + 
((domain == null) ? "" : ("; domain=" + domain)) + 
((secure == true) ? "; secure" : "");
}

function DeleteCookie (name) { 
var exp = new Date(); 
exp.setTime (exp.getTime() - 1); 
var cval = GetCookie (name); 
document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
}

function amt(){
var count = GetCookie('count')
if(count == null) {
SetCookie('count','1')
return 1
}
else {
var newcount = parseInt(count) + 1;
DeleteCookie('count')
SetCookie('count',newcount,exp)
return count
}
}

function getCookieVal(offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}

function checkCount() {
var count = GetCookie('count');
if (count == null) {
count=1;
SetCookie('count', count, exp);
window.open(page, "", windowprops);
}
else {
count++;
SetCookie('count', count, exp);
}
}
window.onload=checkCount
//-->


function open_it(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}
//-->
  

<!--

/*var avert="Désolé. cette fonction est désactivée\nCette page appartient à bebe-conseil.com\n[Droits réservés] Copyright Bebe-conseil.com 2000-2005"; 

			function click(e) {
			if (document.all) {
			if (event.button == 2) {
			alert(avert);
			return false;
			}
			}
			if (document.layers) {
			if (e.which == 3) {
			alert(avert);
			return false;
			}
			}
			}
			if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;*/
//-->
// Flash Image Extension for Dreamwever ,by Yichun Yuan(dezone@sina.com)
nereidFadeObjects = new Object();
nereidFadeTimers = new Object();
function nereidFade(object, destOp, rate, delta){
if (!document.all)
return
    if (object != "[object]"){  //do this so I can take a string too
        setTimeout("nereidFade("+object+","+destOp+","+rate+","+delta+")",0);
        return;
    }
    clearTimeout(nereidFadeTimers[object.sourceIndex]);
    diff = destOp-object.filters.alpha.opacity;
    direction = 1;
    if (object.filters.alpha.opacity > destOp){
        direction = -1;
    }
    delta=Math.min(direction*diff,delta);
    object.filters.alpha.opacity+=direction*delta;
    if (object.filters.alpha.opacity != destOp){
        nereidFadeObjects[object.sourceIndex]=object;
        nereidFadeTimers[object.sourceIndex]=setTimeout("nereidFade(nereidFadeObjects["+object.sourceIndex+"],"+destOp+","+rate+","+delta+")",rate);
    }
}



