function Emc(){
var Energy;
c = 299792458;
m = (eval(document.emc.mass.value)/1000000);

if(m > 0)
	E = m * ( Math.pow(c,2) );
	kwh = E / 3600000;
	cost = kwh * 0.11;
	app = kwh * 2;
	
	appy = Math.floor(app / 24 / 30 / 12); if(appy > 0) year = ' ' + appy + ' an '; else year = '';
	appm = Math.floor((app - (appy * 12 * 30 * 24)) / 30 / 24); if(appm > 0) month = ' ' + appm + ' mois'; else month = '';
	appd = Math.floor((app - ((appy * 12 * 30 * 24) + (appm * 30 * 24))) / 24); if(appd > 0) day = ' ' + appd + ' jours'; else day = '';
	apph = Math.floor(app - ((appy * 12 * 30 * 24) + (appm * 30 * 24) + (appd * 24))); if(apph > 0) hour = ' ' + apph + ' heures'; else hour = '';
	
	sdf = Math.round(E / 1000000 / 735000); if(sdf > 0.9) sdf = 'Permet d\'augmenter de ' + sdf + '°C la température d\'un volume d\'air aussi grand que le stade de France'; else sdf = '';
	
	state = FormatNumber(kwh / 100000000); if(state > 0.009) stateprod = state + ' fois la production électrique maximum de la France pendant 1 heure.'; else stateprod = '';
	
	
	document.getElementById("J").innerHTML = "E=" + E + " J (Joules)";
	document.getElementById("kWh").innerHTML = "Dans la vie de tous les jours cela représente approximativement :<br />Une production de " + FormatNumber(kwh) + " kW (Kilowatt)";
	document.getElementById("Euro").innerHTML = "Une facture d'électricité de " + FormatNumber(cost) + " &#128;";
	document.getElementById("App01").innerHTML = 'Un aspirateur de 2000W qui fonctionne pendant' + year + month + day + hour + '.';
	document.getElementById("Volum").innerHTML = sdf;
	document.getElementById("France").innerHTML = stateprod;
}
	