var placeBid = function(id) { /* LoadData2('console', '/modules/licit/include/place_bid.php?aid=' + id); Modalbox.show($('console'), {title: 'Licit', width: 300}); */ $('place_bid_button').style.display = 'none'; Effect.SlideDown('place_bid', { duration: 0.6 }); return false; } var buyItemNow = function(id, _title) { LoadData2('console', '/modules/licit/include/buynow.php?aid=' + id); Modalbox.show($('console'), {title: _title, width: 500}); return false; } var placeBidNow = function(id, _title) { LoadData2('console', '/modules/licit/include/place_bid.php?aid=' + id); Modalbox.show($('console'), {title: _title, width: 500, height: 110}); return false; } var formatBidPrice = function (obj, bid_steps, start_price) { x = $(obj).value; min = Math.round((start_price / bid_steps)); /* xx=""; for(i=0; i=0 ; i--) { if (((i)==3) || ((i)==6) || ((i)==9)) xx=xx+" "; xx=xx+x.charAt(x.length-i); } x=xx; */ $(obj).value = x; if (x.length == 5) { cur = Math.round((x / bid_steps)); alert(min); alert(cur); c = (bid_steps / 1000); //alert(c); //alert((cur%c)); alert(Math.round((cur%1)==0)); r = (Math.round((cur%1)==0)); //alert(r) if (cur <= min) $(obj).value = start_price; else if (!r) $(obj).value = (Math.round(cur) * bid_steps); } return true; }