

/*
 * En funcion del codigo recibido, produce una accion u otra
 * code -> Codigo a implementar de tipo salto
 * url  -> Link a mostrar
 */

function enlaceRelacionado(code, url) {
	if (code == 3)	{
		window.open(url,'','status=no;location=no;menubar=no;personalbar=no;toolbar=no');
	}
	else if (code == 4)	{
		window.open(url)	
	}
	else{
		document.location.href = url;
		//top.location = url;
	}		
}

function abrirDatos(url){
    NuevaVentana(url,'Condiciones de privacidad','492','382','status=yes, scrollbars=yes');
}

/*
 * Abre una ventana
 */
function NuevaVentana(mypage, myname, w, h, prop) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = "height="+h+",width="+w+",top="+wint+",left="+winl+","+prop;
	window.open(mypage, myname, winprops);
}




