function recordview (rec_id, reset) { obj = document.getElementsByClassName('div'+rec_id); for(i = 0; i < obj.length; i++) { obj[i].className = reset; } } function Element_show(div_id, hint_div){ Position.prepare(); coords = Position.cumulativeOffset($(div_id)); $(hint_div).style.left=coords[0]+20+'px'; $(hint_div).style.top=coords[1]+10+'px'; Element.show(hint_div); } function Element_hide(hint_div){ Element.hide(hint_div); } function proccess_order() { Element.hide('buttons'); Element.show('process_order'); document.ris_form.submit(); }