// Code written by Natalie V. Zubar (kopilka@infocom.kharkov.ua)
// Author claims no responsibility for esoteric method of past-life calculations and its results.
// If you decided to use it under your own name - you were a thief in your past life and you will cheat forever!
function mod(x, x_div){
for (var i=x; i>=x_div; i -= x_div);
return i;
}
function checkNum(str, min, max) {
if (str == "") {
ale……