// ============================================================================
// OMPageCounter.js
// ----------------------------------------------------------------------------
// Nome     : Contador de acesso ao site
// Home     : http://ruben.zevallos.com/
// Criacao  : 12/16/2006 9:57PM
// Autor    : Ruben Zevallos Jr. <ruben@zevallos.com>
// Versao   : 1.0
// Local    : São Luís - MA
// Copyright: 97-2006 by Ruben Zevallos(r) Jr.
// License  : Licensed under the terms of the GNU Lesser General Public License
//            http://www.opensource.org/licenses/lgpl-license.php
// ----------------------------------------------------------------------------

//var regEx = new RegExp("(ApresentaSite\.asp\?o=100\&t=(\d+))|Pagina(\d+).htm)", "ig");
//var regEx = new RegExp("Pagina(\d+).htm", "ig");

intOMVezes = 0;
strOMS = "";

var regOMEx = /Pagina(\d+).htm/i;

var strOMURL = document.URL;

if (arrOMURL = regOMEx.exec(strOMURL) == null)
  var regOMEx = /ApresentaSite\.asp\?o=100&t=(\d+)/i;

var arrOMURL = regOMEx.exec(strOMURL);

// [0]=Pagina999.htm
// [1]=999

if (arrOMURL != null) {
  var datOMNow = new Date ();

  var strOMImg = "OMPageCounter.asp?t=" + arrOMURL[1] + "&x=" + datOMNow.getTime();

  document.write('<script src="/' + strOMImg + '" type="text/JavaScript"></script>');
}
