/* common functions used in all templates */ function miniPane(url,name,w,h,opt) { w = (w == null) ? 600 : w; h = (h == null) ? 450 : h; opt = (opt == null) ? ',toolbar=no,scrollbars=yes,resizable=yes,menubar=yes,location=no':opt; if (document.all || document.layers) { width = screen.availWidth; height = screen.availHeight; } else { width = screen.width; height = screen.height; } var leftPos = (width-w)/2, topPos = (height-h)/2; var win = window.open(url,name,'width='+w+',height='+h+opt); if (!win) { alert('The popup window was blocked, try holding down ctrl key and click again'); } else { win.moveTo(leftPos,topPos); } } function showHide(shID) { if (document.getElementById(shID)) { if (document.getElementById(shID+'-show').style.display != 'none') { document.getElementById(shID+'-show').style.display = 'none'; document.getElementById(shID).style.display = 'block'; } else { document.getElementById(shID+'-show').style.display = 'inline'; document.getElementById(shID).style.display = 'none'; } } }