function docLoadEventHandler(func) {
	if (window.addEventListener)
		window.addEventListener("load", func, false)
	else if (window.attachEvent)
		window.attachEvent("onload", func)
	else if (document.getElementById)
		window.onload=func;
}
