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); } function toggleview(id) { if ( ! id ) return; if ( itm = getbyid('options_' + id + '_open') ) { if (itm.style.display == "none") { show_div(itm); itmtext = getbyid('options_' + id); itmtext.innerHTML = 'hide options'; } else { hide_div(itm); itmtext = getbyid('options_' + id); itmtext.innerHTML = 'show options'; } } } function trim(value) { startpos=0; while((value.charAt(startpos)==" ")&&(startpos 200) { document.getElementById('theSmileys').style.height = 200 + 'px'; document.getElementById('theSmileys').style.overflow = 'auto'; } } else if (document.all) { boxPos = findPos(document.all['gb_comment']); document.all['LazSmileys'].style.top = (boxPos[1] - 20) + 'px'; document.all['LazSmileys'].style.left = (boxPos[0] - 30) + 'px'; document.all['LazSmileys'].style.display = doWhat; if(document.all['theSmileys'].offsetHeight > 200) { document.all['theSmileys'].style.height = 200 + 'px'; document.all['theSmileys'].style.overflow = 'auto'; } } else if (document.layers) { boxPos = findPos(document.layers['gb_comment']); document.layers['LazSmileys'].style.top = (boxPos[1] - 20) + 'px'; document.layers['LazSmileys'].style.left = (boxPos[0] - 30) + 'px'; document.layers['LazSmileys'].style.display = doWhat; if(document.layers['theSmileys'].offsetHeight > 200) { document.layers['theSmileys'].style.height = 200 + 'px'; document.layers['theSmileys'].style.overflow = 'auto'; } } }