function detenerError(){
return true
}
window.onerror=detenerError


function search(query){	
	if (query.length > 0){
		window.location = "" + query + "-1.html";
	}
	return false;
}

function search2(query){	
	if (query.length > 0){
		window.location = "../" + query + "-1.html";
	}
	return false;
}
function wopen(url, name,w, h)
{

  w += 32;
  h += 136;
  wleft = (screen.width - w) / 2;
  wtop = (screen.height - h) / 2;
  if (wleft < 0) {
	w = screen.width;
	wleft = 0;
  }
  if (wtop < 0) {
	h = screen.height;
	wtop = 0;
  }
  win = window.open(url,
	name,
	'width=' + w + ', height=' + h + ', ' +
	'left=' + wleft + ', top=' + wtop + ', ' +
	'location=no, menubar=no, ' +
	'status=no, toolbar=no, scrollbars=no, resizable=yes,directories=no');
  win.resizeTo(w, h);
  win.moveTo(wleft, wtop);
  win.focus();
}

function player(id, w, h)
{
  var urlCGI = 'play.php?id='+id;
  wopen(urlCGI,"player_window",w,h);

}


function share(id,id2,titulo,w, h)
{
  var urlCGI = 'compartir.php?id='+id+'&cancion='+titulo;
  wopen(urlCGI,"share_window",w,h);

}
