num = Math.floor(num*decsize+0.50000000001);
cents = num%decsize;
num = Math.floor(num/decsize).toString();
+ for( i=cents.toString().length; i<dec; i++){
+ cents = "0"+cents;
+ }
if (max) // strip trailing 0
cents = cents.toString().replace(/0+$/,'');
- else
- for( i=cents.toString().length; i<dec; i++){
- cents = cents + "0";
- }
for (var i = 0; i < Math.floor((num.length-(1+i))/3); i++)
num = num.substring(0,num.length-(4*i+3))+user.ts+
num.substring(num.length-(4*i+3));
for(var i=0; i<neighbours.length; i++) {
var e = neighbours[i];
var p = element_pos(e);
- if (p!=null && (e.className=='menu_option' || e.className=='printlink')) {
+ if (p!=null && (e.className=='menu_option' || e.className=='printlink'
+ || e.className == 'repclass_link' || e.className == 'repopts_link')) {
if (((dir==40) && (p.y>p0.y)) || (dir==38 && (p.y<p0.y))
|| ((dir==37) && (p.x<p0.x)) || ((dir==39 && (p.x>p0.x)))) {
var l1 = (p.y-p0.y)*(p.y-p0.y)+(p.x-p0.x)*(p.x-p0.x);