addLoadEvent(function(){var el=document.getElementById("advanceddisplay");if(el){el.className=el.className.replace("hide","show");}
var el=document.getElementById("for_js_tablerow");if(el){el.className=el.className.replace("hide","show");}});addLoadEvent(hideall);function addLoadEvent(func){var oldonload=window.onload;if(typeof window.onload!='function'){window.onload=func;}else{window.onload=function(){if(oldonload){oldonload();}
func();}}}
function toggle_this(elid,eltsid)
{var el=document.getElementById(elid);var togglestatus=document.getElementById(eltsid);if(togglestatus){if(togglestatus.value=="off")
{el.className=el.className.replace("hide","show");togglestatus.value="on";}else{el.className=el.className.replace("show","hide");togglestatus.value="off";}}else{el.className=el.className.replace("show","hide");}}
function hideall()
{var allEls,thisEl;allEls=document.getElementsByTagName("*");for(var i=0;i<allEls.length;i++)
{thisEl=allEls[i];if(thisEl.tagName!="input"&&thisEl.id.toString().indexOf('tog')>-1&&!(thisEl.className!="thecontent"&&thisEl.parentNode.className!="blogintrolink"))
{thisEl.className=thisEl.className+" hide";thisEl.className=thisEl.className.replace("show","");}
if(thisEl.className=="togglelink")
{thisEl.className="";}}}