
function inicia_cookie(nombre, valor, expiracion, camino, dominio, seguro) {
       var curCookie = nombre + "=" + escape(valor) +
           ((expiracion) ? "; expires=" + expiracion : "") +
           ((camino) ? "; path=" + camino : "") +
           ((dominio) ? "; domain=" + dominio : "") +
           ((seguro) ? "; secure" : "");
       document.cookie = curCookie;
     }

function coge_cookie(nombre) {
       var dc = document.cookie;
       var prefix = nombre + "=";
       var begin = dc.indexOf("; " + prefix);
       if (begin == -1) {
         begin = dc.indexOf(prefix);
         if (begin != 0) return null;
       } else
         begin += 2;
       var end = document.cookie.indexOf(";", begin);
       if (end == -1)
         end = dc.length;
       return unescape(dc.substring(begin + prefix.length, end));
     }

function deleteCookie(nombre, camino, dominio) {
       if (coge_cookie(nombre)) {
         document.cookie = nombre + "=" + 
         ((camino) ? "; path=" + camino : "") +
         ((dominio) ? "; domain=" + dominio : "") +
         "; expires=Thu, 01-Jan-70 00:00:01 GMT";
       }
     }


if(navigator.appName=="Netscape") {
        available_width=innerWidth;
        available_height=innerHeight;
    } else {
		available_width="1024"
        available_height="1024"
    }

	

function onload_bm(){

}

function onunload_bm(){

}



     if(!window.saveInnerWidth) {
       window.onresize = resizeIt;
       window.saveInnerWidth = window.innerWidth;
       window.saveInnerHeight = window.innerHeight;
     }

     function resizeIt() {
         if (saveInnerWidth < window.innerWidth || 
             saveInnerWidth > window.innerWidth || 
             saveInnerHeight > window.innerHeight || 
             saveInnerHeight < window.innerHeight ) 
         {
		              window.history.go(0);
         }
     }



