
var onLoadEvents=[];function addOnLoadEvent(functionCall,reRunOnUpdatePanel){if(typeof(reRunOnUpdatePanel)=="undefined"){reRunOnUpdatePanel=false;}
if(typeof(functionCall)=="string"){addOnLoadEvent(function(){eval(functionCall);});return;}
if(typeof(functionCall)=="function"){if(reRunOnUpdatePanel){onLoadEvents.push(functionCall);}
if(window.attachEvent)
{window.attachEvent("onload",functionCall);}
else
{document.addEventListener("DOMContentLoaded",functionCall,false);}}}