+ if(box) {
+ if(img) box.src = user.theme+'images/'+ img;
+ box.style.visibility = img ? 'visible' : 'hidden';
+ }
+}
+
+function disp_msg(msg, cl) {
+ var box = document.getElementById('msgbox');
+ box.innerHTML= "<div class='"+(cl || 'err_msg')+"'>"+ msg+'</div>';
+// box.style.display = msg=='' ? 'none':'block';
+ if (msg!='') window.scrollTo(0,element_pos(box).y-10);