if (parent == self)
{
  var url = escape(location.href);
  for (var i = 0, str = ''; i < url.length; i++)
  {
    if (url.charAt(i) == '/') str += '/';
    else str += url.charAt(i);
  }
  location.href = 'index_reszta1.html?' + str;
}
