// JavaScript Document
// created by http://www.WebsiteBiz.com/
function replace( s, rep ) {
// http://4umi.com/web/javascript/hilite.php
  if( !s ) { return 0; }
  var d = window.document;
  o = [ d.documentElement || d.body ];
  var r = new RegExp( s, 'gi' ),
    h = d.createElement( 'span' ), i = 0, j, k, l, m, n=0, t;
  //h.style.backgroundColor = '#0f0';
  h.id= "phone";
  do {
    m = o[i];
    if( m.nodeType===3 ) {
      r.lastIndex = 0;
      l = r.exec(m.nodeValue);
      if( l !== null ) {
        k = l[0].length;
        if( r.lastIndex > k ) {
          m.splitText( r.lastIndex - k );
          m = m.nextSibling;
        }
        if( m.nodeValue.length > k ) {
          m.splitText(k);
          o[i++] = m.nextSibling;
        }
        t = h.cloneNode( true );
        t.appendChild( d.createTextNode( l[0] ) );n++;
		t.innerHTML= rep;
        m.parentNode.replaceChild( t, m );
      }
    } else {
      j = m.childNodes.length;
      while ( j ) { o[i++] = m.childNodes.item( --j ); }
    }
  } while( i-- );
  return n;
}
