function getbyid(id) { itm = null; if (document.getElementById) { itm = document.getElementById(id); } else if (document.all) { itm = document.all[id]; } else if (document.layers) { itm = document.layers[id]; } return itm; } function hide_div(itm) { if ( ! itm ) return; itm.style.display = "none"; } function show_div(itm) { if ( ! itm ) return; itm.style.display = ""; } function resizeTextarea(itm,direction) { var txtarea = document.getElementById(itm); if (direction == 'down') { txtarea.rows = txtarea.rows + 3; } else { txtarea.rows = txtarea.rows - 3; } } function openCentered(theURL,winName,winWidth,winHeight,features) { var w = (screen.width - winWidth)/2; var h = (screen.height - winHeight)/2 - 30; features = features+',width='+winWidth+',height='+winHeight+',top='+h+',left='+w; window.open(theURL,winName,features); }