// JavaScript Document

function mandamail(nemico,pubblico,computer) {
nemico += ' ';
var aereo = nemico.length;
var mano = 0;
var scatolone = '';
for(var quality = 0; quality < aereo; quality++) {
mano = 0;
while(nemico.charCodeAt(quality) != 32) {
mano = mano * 10;
mano = mano + nemico.charCodeAt(quality)-48;
quality++;
}
scatolone += String.fromCharCode(speed(mano,pubblico,computer));
}
parent.location = 'm'+'a'+'i'+'l'+'t'+'o'+':'+scatolone;
}
function sell(amount,capacity,meat) {
amount += ' ';
var center = amount.length;
var whine = 0;
for(var stairs = 0; stairs < center; stairs++) {
whine = 0;
while(amount.charCodeAt(stairs) != 32) {
whine = whine * 10;
whine = whine + amount.charCodeAt(stairs)-48;
stairs++;
}
//document.write('&');
//document.write('#');
//document.write(speed(whine,capacity,meat));
document.write(String.fromCharCode(speed(whine,capacity,meat)));
}
}
function speed(impression,hieroglyphic,language) {
if (language % 2 == 0) {
license = 1;
for(var machine = 1; machine <= language/2; machine++) {
leader = (impression*impression) % hieroglyphic;
license = (leader*license) % hieroglyphic;
}
} else {
license = impression;
for(var nitrogen = 1; nitrogen <= language/2; nitrogen++) {
leader = (impression*impression) % hieroglyphic;
license = (leader*license) % hieroglyphic;
}
}
return license;
}
// -->

