function open_win(loc,id,width,height,resize,scroll) { var top = (screen.height - height) / 2; var left = (screen.width - width) / 2; window.open(loc,id,"width="+width+",height="+height+",left="+left+",top="+top+",scrollbars="+scroll+",resizable="+resize); } function do_action(id) { open_win("about:blank",id,"400","300","no","no"); } function do_action_get(id,params,width,height,resize,scroll) { if (!width) { width = 400; height = 300; resize = "no"; scroll = "no"; } open_win("/actions.php?act="+id+"&"+params,id,width,height,resize,scroll); } function show_hide(id) { obj = document.getElementById(id); pic = document.getElementById(id+'_pic'); if(obj.style.display == '') { pic.src = '/img/add.gif'; obj.style.display = 'none'; } else { pic.src = '/img/minus.gif'; obj.style.display = ''; } } function hide_show(id) { obj = document.getElementById(id); if(obj.style.display == '') { obj.style.display = 'none'; } else { obj.style.display = ''; } }