function ShowLayer(NomCapa) { // Funcio que s'encarrega de mirar quines capes es mostren segons la capa que volem veure. top.mainFrame.scrollTo(0,0); top.mainFrame.document.getElementById('cpBlanc').style.visibility='hidden'; if (NomCapa != 'cpEntrarlinia') {top.mainFrame.document.getElementById('cpEntrarlinia').style.visibility='hidden'; top.mainFrame.document.getElementById('cpEntrarlinia').style.zIndex='2';} else {top.mainFrame.document.getElementById('cpEntrarlinia').style.visibility='visible'; top.mainFrame.document.getElementById('cpEntrarlinia').style.zIndex='9';} if (NomCapa != 'cpEntrarCompra') {top.mainFrame.document.getElementById('cpEntrarCompra').style.visibility='hidden'; top.mainFrame.document.getElementById('cpEntrarCompra').style.zIndex='2';} else {top.mainFrame.document.getElementById('cpEntrarCompra').style.visibility='visible'; top.mainFrame.document.getElementById('cpEntrarCompra').style.zIndex='9';} if (NomCapa != 'cpFiltres') {top.mainFrame.document.getElementById('cpFiltres').style.visibility='hidden'; top.mainFrame.document.getElementById('cpFiltres').style.zIndex='2';} else {top.mainFrame.document.getElementById('cpFiltres').style.visibility='visible'; top.mainFrame.document.getElementById('cpFiltres').style.zIndex='9';} if (NomCapa != 'cpLlistatFases') { top.mainFrame.document.getElementById('cpLlistatFases').style.visibility='hidden'; top.mainFrame.document.getElementById('cpLlistatFases').style.zIndex='2'; } else { top.mainFrame.document.getElementById('cpLlistatFases').style.visibility='visible'; top.mainFrame.document.getElementById('cpLlistatFases').style.zIndex='9'; } if (NomCapa != 'cpLlistatTasques') { top.mainFrame.document.getElementById('cpLlistatTasques').style.visibility='hidden'; top.mainFrame.document.getElementById('cpLlistatTasques').style.zIndex='2'; } else { top.mainFrame.document.getElementById('cpLlistatTasques').style.visibility='visible'; top.mainFrame.document.getElementById('cpLlistatTasques').style.zIndex='9'; } if (NomCapa != 'cpLlistatDietes') { top.mainFrame.document.getElementById('cpLlistatDietes').style.visibility='hidden'; top.mainFrame.document.getElementById('cpLlistatDietes').style.zIndex='2'; } else { top.mainFrame.document.getElementById('cpLlistatDietes').style.visibility='visible'; top.mainFrame.document.getElementById('cpLlistatDietes').style.zIndex='9'; } if (NomCapa != 'cpLlistatComentaris') { top.mainFrame.document.getElementById('cpLlistatComentaris').style.visibility='hidden'; top.mainFrame.document.getElementById('cpLlistatComentaris').style.zIndex='2'; } else { top.mainFrame.document.getElementById('cpLlistatComentaris').style.visibility='visible'; top.mainFrame.document.getElementById('cpLlistatComentaris').style.zIndex='9'; } if (NomCapa != 'cpLlistatCompres') { top.mainFrame.document.getElementById('cpLlistatCompres').style.visibility='hidden'; top.mainFrame.document.getElementById('cpLlistatCompres').style.zIndex='2'; } else { top.mainFrame.document.getElementById('cpLlistatCompres').style.visibility='visible'; top.mainFrame.document.getElementById('cpLlistatCompres').style.zIndex='9'; } if (NomCapa != 'cpLlistatCostos') { top.mainFrame.document.getElementById('cpLlistatCostos').style.visibility='hidden'; top.mainFrame.document.getElementById('cpLlistatCostos').style.zIndex='2'; } else { top.mainFrame.document.getElementById('cpLlistatCostos').style.visibility='visible'; top.mainFrame.document.getElementById('cpLlistatCostos').style.zIndex='9'; } if (NomCapa != 'cpLlistatHoresUsuari') { top.mainFrame.document.getElementById('cpLlistatHoresUsuari').style.visibility='hidden'; top.mainFrame.document.getElementById('cpLlistatHoresUsuari').style.zIndex='2'; } else { top.mainFrame.document.getElementById('cpLlistatHoresUsuari').style.visibility='visible'; top.mainFrame.document.getElementById('cpLlistatHoresUsuari').style.zIndex='9'; } if (NomCapa != 'cpLlistatmoviments') { top.mainFrame.document.getElementById('cpLlistatmoviments').style.visibility='hidden'; top.mainFrame.document.getElementById('cpLlistatmoviments').style.zIndex='2'; } else { top.mainFrame.document.getElementById('cpLlistatmoviments').style.visibility='visible'; top.mainFrame.document.getElementById('cpLlistatmoviments').style.zIndex='9'; } if (NomCapa != 'cpLlistatIncidencies') { top.mainFrame.document.getElementById('cpLlistatIncidencies').style.visibility='hidden'; top.mainFrame.document.getElementById('cpLlistatIncidencies').style.zIndex='2'; } else { top.mainFrame.document.getElementById('cpLlistatIncidencies').style.visibility='visible'; top.mainFrame.document.getElementById('cpLlistatIncidencies').style.zIndex='9'; } if (NomCapa != 'cpEntradaIncidencies') { top.mainFrame.document.getElementById('cpEntradaIncidencies').style.visibility='hidden'; top.mainFrame.document.getElementById('cpEntradaIncidencies').style.zIndex='2'; } else { top.mainFrame.document.getElementById('cpEntradaIncidencies').style.visibility='visible'; top.mainFrame.document.getElementById('cpEntradaIncidencies').style.zIndex='9'; } if (NomCapa != 'cpEntradaComentaris') { top.mainFrame.document.getElementById('cpEntradaComentaris').style.visibility='hidden'; top.mainFrame.document.getElementById('cpEntradaComentaris').style.zIndex='2'; } else { top.mainFrame.document.getElementById('cpEntradaComentaris').style.visibility='visible'; top.mainFrame.document.getElementById('cpEntradaComentaris').style.zIndex='9'; } if (NomCapa != 'cpEdicioLiniesComentaris') { top.mainFrame.document.getElementById('cpEdicioLiniesComentaris').style.visibility='hidden'; top.mainFrame.document.getElementById('cpEdicioLiniesComentaris').style.zIndex='2'; } else { top.mainFrame.document.getElementById('cpEdicioLiniesComentaris').style.visibility='visible'; top.mainFrame.document.getElementById('cpEdicioLiniesComentaris').style.zIndex='9'; } if (NomCapa != 'cpEntradaDadesAddicionals') { top.mainFrame.document.getElementById('cpEntradaDadesAddicionals').style.visibility='hidden'; top.mainFrame.document.getElementById('cpEntradaDadesAddicionals').style.zIndex='2'; } else { top.mainFrame.document.getElementById('cpEntradaDadesAddicionals').style.visibility='visible'; top.mainFrame.document.getElementById('cpEntradaDadesAddicionals').style.zIndex='9'; } if (NomCapa != 'cpTancarIncidencies') { top.mainFrame.document.getElementById('cpTancarIncidencies').style.visibility='hidden'; top.mainFrame.document.getElementById('cpTancarIncidencies').style.zIndex='2'; } else { top.mainFrame.document.getElementById('cpTancarIncidencies').style.visibility='visible'; top.mainFrame.document.getElementById('cpTancarIncidencies').style.zIndex='9'; } if (NomCapa != 'cpFiltresPressupost') {top.mainFrame.document.getElementById('cpFiltresPressupost').style.visibility='hidden'; top.mainFrame.document.getElementById('cpFiltresPressupost').style.zIndex='2';} else {top.mainFrame.document.getElementById('cpFiltresPressupost').style.visibility='visible'; top.mainFrame.document.getElementById('cpFiltresPressupost').style.zIndex='9';} if (NomCapa != 'cpLlistaExpedients') {top.mainFrame.document.getElementById('cpLlistaExpedients').style.visibility='hidden'; top.mainFrame.document.getElementById('cpLlistaExpedients').style.zIndex='2';} else {top.mainFrame.document.getElementById('cpLlistaExpedients').style.visibility='visible'; top.mainFrame.document.getElementById('cpLlistaExpedients').style.zIndex='9';} if (NomCapa != 'cpExpedients') { top.mainFrame.document.getElementById('cpExpedients').style.visibility='hidden'; top.mainFrame.document.getElementById('cpExpedients').style.zIndex='2'; } else { top.mainFrame.document.getElementById('cpExpedients').style.visibility='visible'; top.mainFrame.document.getElementById('cpExpedients').style.zIndex='9'; } if (NomCapa != 'cpVeureCalendariProg') { top.mainFrame.document.getElementById('cpVeureCalendariProg').style.visibility='hidden'; top.mainFrame.document.getElementById('cpVeureCalendariProg').style.zIndex='2'; } else { top.mainFrame.document.getElementById('cpVeureCalendariProg').style.visibility='visible'; top.mainFrame.document.getElementById('cpVeureCalendariProg').style.zIndex='9'; } if (NomCapa != 'cpDadesClients') { top.mainFrame.document.getElementById('cpDadesClients').style.visibility='hidden'; top.mainFrame.document.getElementById('cpDadesClients').style.zIndex='2'; } else { top.mainFrame.document.getElementById('cpDadesClients').style.visibility='visible'; top.mainFrame.document.getElementById('cpDadesClients').style.zIndex='9'; } if (NomCapa != 'cpLlistaDadesClients') { top.mainFrame.document.getElementById('cpLlistaDadesClients').style.visibility='hidden'; top.mainFrame.document.getElementById('cpLlistaDadesClients').style.zIndex='2'; } else { top.mainFrame.document.getElementById('cpLlistaDadesClients').style.visibility='visible'; top.mainFrame.document.getElementById('cpLlistaDadesClients').style.zIndex='9'; } if (NomCapa != 'cpDominis') { top.mainFrame.document.getElementById('cpDominis').style.visibility='hidden'; top.mainFrame.document.getElementById('cpDominis').style.zIndex='2'; } else { top.mainFrame.document.getElementById('cpDominis').style.visibility='visible'; top.mainFrame.document.getElementById('cpDominis').style.zIndex='9'; } if (NomCapa != 'cpLlistaDominis') { top.mainFrame.document.getElementById('cpLlistaDominis').style.visibility='hidden'; top.mainFrame.document.getElementById('cpLlistaDominis').style.zIndex='2'; } else { top.mainFrame.document.getElementById('cpLlistaDominis').style.visibility='visible'; top.mainFrame.document.getElementById('cpLlistaDominis').style.zIndex='9'; } if (NomCapa != 'cpLlistatDimensionsUsuari') { top.mainFrame.document.getElementById('cpLlistatDimensionsUsuari').style.visibility='hidden'; top.mainFrame.document.getElementById('cpLlistatDimensionsUsuari').style.zIndex='2'; } else { top.mainFrame.document.getElementById('cpLlistatDimensionsUsuari').style.visibility='visible'; top.mainFrame.document.getElementById('cpLlistatDimensionsUsuari').style.zIndex='9'; } if (NomCapa != 'cpLlistatEstadisticaClients') { top.mainFrame.document.getElementById('cpLlistatEstadisticaClients').style.visibility='hidden'; top.mainFrame.document.getElementById('cpLlistatEstadisticaClients').style.zIndex='2'; } else { top.mainFrame.document.getElementById('cpLlistatEstadisticaClients').style.visibility='visible'; top.mainFrame.document.getElementById('cpLlistatEstadisticaClients').style.zIndex='9'; } if (NomCapa != 'cpLlistatCaducats') { top.mainFrame.document.getElementById('cpLlistatCaducats').style.visibility='hidden'; top.mainFrame.document.getElementById('cpLlistatCaducats').style.zIndex='2'; } else { top.mainFrame.document.getElementById('cpLlistatCaducats').style.visibility='visible'; top.mainFrame.document.getElementById('cpLlistatCaducats').style.zIndex='9'; } if (NomCapa != 'cpMoureAlbarans') { top.mainFrame.document.getElementById('cpMoureAlbarans').style.visibility='hidden'; top.mainFrame.document.getElementById('cpMoureAlbarans').style.zIndex='2'; } else { top.mainFrame.document.getElementById('cpMoureAlbarans').style.visibility='visible'; top.mainFrame.document.getElementById('cpMoureAlbarans').style.zIndex='9'; } if (NomCapa != 'cpLlistatComparativaPres') { top.mainFrame.document.getElementById('cpLlistatComparativaPres').style.visibility='hidden'; top.mainFrame.document.getElementById('cpLlistatComparativaPres').style.zIndex='2'; } else { top.mainFrame.document.getElementById('cpLlistatComparativaPres').style.visibility='visible'; top.mainFrame.document.getElementById('cpLlistatComparativaPres').style.zIndex='9'; } if (NomCapa != 'cpReportsPersonalitzats') { top.mainFrame.document.getElementById('cpReportsPersonalitzats').style.visibility='hidden'; top.mainFrame.document.getElementById('cpReportsPersonalitzats').style.zIndex='2'; } else { top.mainFrame.document.getElementById('cpReportsPersonalitzats').style.visibility='visible'; top.mainFrame.document.getElementById('cpReportsPersonalitzats').style.zIndex='9'; } if (NomCapa != 'cpLlistatPercentatgesDimensions') { top.mainFrame.document.getElementById('cpLlistatPercentatgesDimensions').style.visibility='hidden'; top.mainFrame.document.getElementById('cpLlistatPercentatgesDimensions').style.zIndex='2'; } else { top.mainFrame.document.getElementById('cpLlistatPercentatgesDimensions').style.visibility='visible'; top.mainFrame.document.getElementById('cpLlistatPercentatgesDimensions').style.zIndex='9'; } }