<!--
//----------------------------------------------------------------------
//      ESCRIBIR LA CABECERA DE TRAMITES
//----------------------------------------------------------------------
 WriteCabecera( "info@iaf.es" )

 function itemindex( current, prior, next ) {
        this.current   = current
        this.prior     = prior
        this.next      = next
 }

 function crtindex() {
/*
 this[0] = new itemindex( "index2.htm", "", "guiain.htm" )
*/

 this[0] = new itemindex( "index2.htm" , "", "capi002.htm" )
 this[1] = new itemindex( "capi002.htm", "../index2.htm","capi003.htm")
 this[2] = new itemindex( "capi003.htm", "capi002.htm", "capi004.htm")
 this[3] = new itemindex( "capi004.htm", "capi003.htm", "capi005.htm")
 this[4] = new itemindex( "capi005.htm", "capi004.htm", "capi006.htm")
 this[5] = new itemindex( "capi006.htm", "capi005.htm", "capi007.htm")
 this[6] = new itemindex( "capi007.htm", "capi006.htm", "capi008.htm")
 this[7] = new itemindex( "capi008.htm", "capi007.htm", "capi0090.htm")
 this[8] = new itemindex( "capi0090.htm", "capi008.htm" , "capi0091.htm")
 this[9] = new itemindex( "capi0091.htm", "capi0090.htm", "capi0092.htm")
 this[10] = new itemindex( "capi0092.htm", "capi0091.htm", "capi0093.htm")
 this[11] = new itemindex( "capi0093.htm", "capi0092.htm", "capi0094.htm")
 this[12] = new itemindex( "capi0094.htm", "capi0093.htm", "capi010.htm")
 this[13]= new itemindex( "capi010.htm" , "capi0094.htm", "capi011.htm")
 this[14]= new itemindex( "capi011.htm", "capi010.htm", "cuadro.htm" )
 this[15]= new itemindex( "cuadro.htm" , "capi011.htm", "../general/visionge.htm" )

 this[16]= new itemindex( "visionge.htm", "../sociedad/cuadro.htm", "../previos/capi012.htm" )

 this[17]= new itemindex( "capi012.htm", "../general/visionge.htm", "../previos/capi013.htm" )
 this[18]= new itemindex( "capi013.htm", "capi012.htm", "../hacienda/capi015.htm" )


 this[19]= new itemindex( "capi015.htm", "../previos/capi013.htm", "iae.htm" )
 this[20]= new itemindex( "iae.htm", "capi015.htm", "capi014.htm" )
 this[21]= new itemindex( "capi014.htm", "iae.htm", "capi016a.htm" )
 this[22]= new itemindex( "capi016a.htm", "capi014.htm", "../ayunta/capi018.htm" )

 this[23]= new itemindex( "capi018.htm", "../hacienda/capi016a.htm", "capi019.htm" )
 this[24]= new itemindex( "capi019.htm", "capi018.htm", "capi017.htm" )
 this[25]= new itemindex( "capi017.htm", "capi019.htm", "capi020.htm" )
 this[26]= new itemindex( "capi020.htm", "capi017.htm", "../tesore/regiespe.htm" )


 this[27]= new itemindex( "regiespe.htm", "../ayunta/capi020.htm", "autonomo.htm" )
 this[28]= new itemindex( "autonomo.htm", "regiespe.htm", "regines.htm" )
 this[29]= new itemindex( "regines.htm", "autonomo.htm", "capi022.htm" )

 this[30]= new itemindex( "capi022.htm", "regines.htm", "capi023.htm" )
 this[31]= new itemindex( "capi023.htm", "capi022.htm", "capi024.htm" )
 this[32]= new itemindex( "capi024.htm", "capi023.htm", "../trabajo/capi025.htm" )

 this[33]= new itemindex( "capi025.htm", "../tesore/capi024.htm", "capi026.htm" )
 this[34]= new itemindex( "capi026.htm", "capi025.htm", "capi027.htm" )
 this[35]= new itemindex( "capi027.htm", "capi026.htm", "capi028.htm" )
 this[36]= new itemindex( "capi028.htm", "capi027.htm", "../inem/capi029.htm" )

 this[37]= new itemindex( "capi029.htm", "../trabajo/capi028.htm", "capi030.htm" )
 this[38]= new itemindex( "capi030.htm", "capi029.htm", "tiposcon.htm" )
 this[39]= new itemindex( "tiposcon.htm", "capi030.htm", "capi031.htm" )
 this[40]= new itemindex( "capi031.htm", "tiposcon.htm", "agencol.htm" )
 this[41]= new itemindex( "agencol.htm", "capi031.htm", "../registro/capi032.htm" )

 this[42]= new itemindex( "capi032.htm", "agencol.htm", "ofpatma.htm" )
 this[43]= new itemindex( "ofpatma.htm","capi032.htm",  "patentes.htm" )
 this[44]= new itemindex( "patentes.htm", "ofpatma.htm","modutil.htm")
 this[45]= new itemindex( "modutil.htm", "patentes.htm", "semicon.htm")
 this[46]= new itemindex( "semicon.htm", "modutil.htm", "modelos.htm" )
 this[47]= new itemindex( "modelos.htm","semicon.htm", "dibujo.htm" )
 this[48]= new itemindex( "dibujo.htm","modelos.htm","marcas.htm"  )
 this[49]= new itemindex( "marcas.htm","dibujo.htm","rotulos.htm"  )
 this[50]= new itemindex( "rotulos.htm","marcas.htm","nombres.htm"  )
 this[51]= new itemindex( "nombres.htm","rotulos.htm","capi034.htm" )

 this[52]= new itemindex( "capi034.htm","nombres.htm","regisact.htm" )
 this[53]= new itemindex( "regisact.htm","capi034.htm","iva2001.htm" )
 this[54]= new itemindex( "iva2001.htm","regisact.htm","../impues/renta2002.htm" )


 this[55]= new itemindex( "renta2002.htm", "../registro/iva2001.htm", "sociedades2002.htm" )
 this[56]= new itemindex( "sociedades2002.htm", "renta2002.htm", "../registro/capi040.htm" )


 this[57]= new itemindex( "capi040.htm", "../impues/sociedades2002.htm", "capi041.htm" )
 this[58]= new itemindex( "capi041.htm", "capi040.htm", "capi042.htm" )
 this[59]= new itemindex( "capi042.htm", "capi041.htm", "ceslicen.htm")


 this[60]= new itemindex( "ceslicen.htm","capi042.htm","franquic.htm" )
 this[61]= new itemindex( "franquic.htm","ceslicen.htm","compe.htm" )
 this[62]= new itemindex( "compe.htm","franquic.htm","../index2.htm"  )

 this[63]= new itemindex( "", "", "" )                                             

 this.length = 63
 }

 var index = new crtindex()

 function currentpage() {
       // var URL = location.pathname
        var URL = document.URL
        URL = URL.toLowerCase()
      //  alert( URL )
      //  alert( index.length )
        for (var i=0; i <= index.length; i++ ) {
        //    alert( i+": "+index[i].current )
        //    alert( URL.indexOf(index[i].current))
            if (URL.indexOf(index[i].current,0)> 0) {
               break
            }
        }
        return i
 }

 function istop() {
   var nPage = currentpage()
   return (nPage == 0)
 }

 function isbottom() {
   var nPage = currentpage()
   return (nPage == index.length) 
 }

 function nextpage() {
      var nPage = currentpage()
      if ( !isbottom() ) {
         document.location = index[nPage].next
      }
 }

 function priorpage() {
      var nPage = currentpage()
      if ( !istop() ) {
         document.location = index[nPage].prior
      }
 }
//-->