function getId(o){
 if(document.getElementById) return document.getElementById(o); else return null;
}

function getForm(o){
 return document.forms[o];
}

var PAGE_CFG={
 onLoadList:[],
 botOn:function(){this.className=this.className.replace(/\bbutton\b/,'button_over')},
 botOff:function(){this.className=this.className.replace(/\bbutton_over\b/,'button')},
 initBotones:function(){
  if(!document.getElementsByTagName) return;
  var ob=document.getElementsByTagName('INPUT'),i,j;
  for(i=ob.length-1;i>-1;i--){
   j=ob[i];
   if('button submit reset'.indexOf(j.type)!=-1 && j.className.indexOf('button')!=-1){
    j.onmouseover=PAGE_CFG.botOn;
    j.onmouseout=PAGE_CFG.botOff;
   }
  }
 },
 addLoader:function(f){this.onLoadList[this.onLoadList.length]=f},
 loadPage:function(){
  for(var i=0;i<this.onLoadList.length;i++) this.onLoadList[i]()
 }
};
PAGE_CFG.addLoader(PAGE_CFG.initBotones);
