http://deebuu.com/be-id/ スーパーハッカーです。ポイントください><
function calc_be_id(prof_id) {
var id;
var found = false;
for (var y = 2; y <= 9 && !found; y++) {
for (var x = 2; x <= 9 && !found; x++) {
id = ((prof_id - x*10.0 - y)/100.0 + x - y - 5.0)/(3.0 * x * y);
var tmp = Math.floor(id);
if (id == tmp) found = true;
}
}
return (found ? id : 0);
}