var _onLoadEventsList=[];
function addonLoadEvent(func){
 	_onLoadEventsList[_onLoadEventsList.length]=func;
}
function runLoadEvents() {
  var oldonload = window.onload;
  if (typeof window.onload =='function') {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
    }
  }
  for(var i=0;i<_onLoadEventsList.length;i++){
      	if (typeof _onLoadEventsList[i] == 'function'){
      		_onLoadEventsList[i]();
      	}
  }
  return true;
}
function $(id){
	return document.getElementById(id);
}

function show_props(obj, obj_name) {
   var result = "";
   for (var i in obj)
      result += obj_name + "." + i + " = " + obj[i] + "<br>";
   return result;
}
function redirect(url){
 document.location.href=url;
}
function wopen(url)
{
  window.open(url,null);
}

