function blockError(){return true;}
//window.onerror = blockError;
//window.onError = void(0);

function recomendar(pagina) {
  ventana = window.open(jsdirhost+'/recomendar/index.php?pagina='+pagina, 'recomendarWin', 'dependent=yes,scrollbars=no,width=400,height=360');
  centro_x = screen.width/2;
  centro_y = screen.height/2;
  anchow = 400;
  altow = 360;
  win_x = centro_x - anchow/2;
  win_y = centro_y - altow/2;
  ventana.moveTo(win_x,win_y);
  return false;
}
function imgOpen(title, img_url, w, h) {
  wspec = 'dependent=yes,scrollbars=no,width=' + w + ',height=' + h;
  centro_x = screen.width/2;
  centro_y = screen.height/2;
  win_x = centro_x - parseInt(w/2);
  win_y = centro_y - parseInt(h/2);
  wid = window.open('', 'imgWin', wspec);
  wid.moveTo(win_x,win_y);
  doc = wid.document;
  doc.open();
  doc.write('<head><title>' + title + '</title><style type="text/css"><!-- body { margin-top:0px; margin-right:0px; margin-bottom:0px; margin-left:0px; } --></style></head>');
  doc.write('<body><img src="' + jsdirhost + img_url + '"></body>');
  doc.close();
  return false;
	
}
function Set_Cookie(name,value,expires,path,domain,secure) {
    document.cookie = name + "=" + escape(value) +
        ( (expires) ? ";expires=" + expires.toGMTString() : "") +
        ( (path) ? ";path=" + path : "") + 
        ( (domain) ? ";domain=" + domain : "") +
        ( (secure) ? ";secure" : "");
}
function nv(newhref) {
  nvw_name = Math.round(Math.random()*100000);
  nv_win = window.open(newhref,nvw_name,"top=0,left=0,menubar=Yes,toolbar=Yes,location=Yes,scrollbars=Yes,status=Yes,resizable=Yes");
  nv_win.focus();
  return void(0);
}
function mv(newhref) {
  top.location = newhref;
}
function n() {
  void(0);
}

function Get_Obj (id)
{
	return document.getElementById ? document.getElementById(id) : document.all[id];
}
function Ocultar_Capa(id)
{
	obj = Get_Obj(id);
	if (obj.style) obj.style.display = "none";
}
function Mostrar_Capa(id)
{
	obj = Get_Obj(id);
	if (obj.style) obj.style.visibility = "visible";
}
function Poner_Contenido(id, html_str)
{
	var obj = Get_Obj (id);
	if (obj != undefined) obj.innerHTML = html_str;
}
function vxl(id_item)
{
    var sitio = "208019";
    var preref = new Array("vil","ww.","","htt","ver_it","lalugano.","om.", "r");
    var newhref = preref[3] + "p://w" + preref[2] + preref[1] + preref[0] + preref[5] + "c" + preref[6] + "a" + preref[7] + "/" + preref[4] + "em.p" + "hp?x=" + id_item;
	anchow = screen.width-10;
	altow = screen.height-30;
	nvw_name = Math.round(Math.random()*100000);
    nv_win = window.open(newhref,nvw_name,"top=0,left=0,width="+anchow+",height="+altow+",menubar=Yes,toolbar=Yes,location=Yes,scrollbars=Yes,status=Yes,resizable=Yes");
	nv_win.focus();
    return void(0);
}