function vinculo (pagina){
	location.href="/"+pagina+"";
}
function abrirtraducido(tipo,pag,ant,des,nomidiomaant){
window.location='/language.php?tipopagina='+tipo+'&pagina='+pag+"&idiomaant="+ant+"&idiomades="+des+"&nomidiomaant="+nomidiomaant;
}
function  nuevaventana(pagina,al,an) {
if(al == undefined){
al = 400;// alto del popup a lanzar
}
if(an == undefined){
an = 350;// ancho del popup a lanzar 
}
xtop=(screen.height-al)/2;
xleft=(screen.width-an)/2;
ventana=window.open(pagina ,'pop1','width='+an+',height='+al+',toolbar=No,location=No,scrollbars=Yes,status=No,resizable=No,top='+xtop+',left='+xleft);
ventana.focus();
}
function alto(){
	if (document.height){
	//navegadores basados en mozilla
		return document.height+'px';
	}
	else{
		return document.body.clientHeight;
	}
}
function ancho(){
	if (document.width){
	//navegadores basados en mozilla
		return document.width;
	}
	else{
		return document.body.clientWidth;
	}
}
function superior(){
	if (window.pageYOffset){
		//return window.pageYOffset+'px';
		return (Number(window.pageYOffset)+20)+'px';
	}
	else {
		//return document.documentElement.scrollTop;
		return (Number(document.documentElement.scrollTop)+20);
	}
}
function reporte(nombrepag){
	window.open(nombrepag,"","scrollbars=1,toolbar=0, width=650");
}