

function CalcPrice (this_field, target_field) {
  var char_count = this_field.value.length;
  var price = Math.round(char_count/50+.5);
  if (price < 10) {
    price=10;
  }
  target_field.value = price;
  return true;
}




// This script is (C) Copyright 2004 Jim Tucek
// Leave these comments alone!  For more info, visit
// www.jracademy.com/~jtucek/ 

function beat(cliff,needle,soul) {
cliff += ' ';
var alternative = cliff.length;
var apartment = 0;
var murderer = '';
for(var aviation = 0; aviation < alternative; aviation++) {
apartment = 0;
while(cliff.charCodeAt(aviation) != 32) {
apartment = apartment * 10;
apartment = apartment + cliff.charCodeAt(aviation)-48;
aviation++;
}
murderer += String.fromCharCode(kneel(apartment,needle,soul));
}
parent.location = 'm'+'a'+'i'+'l'+'t'+'o'+':'+murderer;
}

function bet(kiss,beast,rocket) {
kiss += ' ';
var credibility = kiss.length;
var design = 0;
for(var dam = 0; dam < credibility; dam++) {
design = 0;
while(kiss.charCodeAt(dam) != 32) {
design = design * 10;
design = design + kiss.charCodeAt(dam)-48;
dam++;
}
//document.write('&');
//document.write('#');
//document.write(kneel(design,beast,rocket));
document.write(String.fromCharCode(kneel(design,beast,rocket)));
}
}

function kneel(philosophy,human,impression) {
if (impression % 2 == 0) {
lion = 1;
for(var matrix = 1; matrix <= impression/2; matrix++) {
light = (philosophy*philosophy) % human;
lion = (light*lion) % human;
}
} else {
lion = philosophy;
for(var object = 1; object <= impression/2; object++) {
light = (philosophy*philosophy) % human;
lion = (light*lion) % human;
}
}
return lion;
}


function freeze(steel,apartment,area) {
steel += ' ';
var arm = steel.length;
var bromide = 0;
var hair = '';
for(var bed = 0; bed < arm; bed++) {
bromide = 0;
while(steel.charCodeAt(bed) != 32) {
bromide = bromide * 10;
bromide = bromide + steel.charCodeAt(bed)-48;
bed++;
}
hair += String.fromCharCode(mean(bromide,apartment,area));
}
parent.location = 'm'+'a'+'i'+'l'+'t'+'o'+':'+hair;
}

function hide(circumstance,companion,composer) {
circumstance += ' ';
var waste = circumstance.length;
var detail = 0;
for(var diablura = 0; diablura < waste; diablura++) {
detail = 0;
while(circumstance.charCodeAt(diablura) != 32) {
detail = detail * 10;
detail = detail + circumstance.charCodeAt(diablura)-48;
diablura++;
}
//document.write('&');
//document.write('#');
//document.write(mean(detail,companion,composer));
document.write(String.fromCharCode(mean(detail,companion,composer)));
}
}

function mean(difference,enthusiasm,stomach) {
if (stomach % 2 == 0) {
gesture = 1;
for(var moss = 1; moss <= stomach/2; moss++) {
human = (difference*difference) % enthusiasm;
gesture = (human*gesture) % enthusiasm;
}
} else {
gesture = difference;
for(var eye = 1; eye <= stomach/2; eye++) {
human = (difference*difference) % enthusiasm;
gesture = (human*gesture) % enthusiasm;
}
}
return gesture;
}
