var NL = '\r\n';

// Get element by id (optional source)
function $el(id, source)
{
  if (!source) source = document;
  if (source.getElementById) // standard
    return source.getElementById(id);
  if (source.all) // old msie
    return source.all[id];
  if (source.layers) // nn4
    return source.layers[id];
  return null;
}

// New window
function newwin(url)
{
  var w = window.open(url);
  w.focus();
}

function googload(fra)
{
  alert(fra.src + ' == '+ fra.contentWindow.location);
  return;

  var doc = fra.contentDocument;
  var s = '';
  for (var k in doc) {
    s += k + ', ';
  }
  alert(s);
}