function stopError()
{
  return true;
}

function CheckTemplateMain(reformat_url)
{
  if ((top.frames[0]!= null)&&(top.frames[1]!= null)&&(top.frames[2]!= null)) {
    if ((top.frames[0].name == "banner")&&(top.frames[1].name == "toc")&&(top.frames[2].name == "main")) {
      return true;
    }
  }
  top.location.href = reformat_url;
  return false;
}

function CheckTemplateProduct(reformat_url)
{
  if ((parent.frames[0]!= null)&&(parent.frames[1]!= null)&&(parent!= null)&&CheckTemplateMain()) {
    if ((parent.frames[0].name == "pmainpic")&&(parent.frames[1].name == "pmaintxt")&&(parent.name == "main")) {
    return true;
  }
}
  top.location.href = reformat_url;
  return false;
}

function CheckTemplateDevlist(reformat_url)
{
  if ((parent.frames[0]!= null)&&(parent.frames[1]!= null)&&(parent!= null)&&CheckTemplateMain()) {
    if ((parent.frames[0].name == "header")&&(parent.frames[1].name == "devicelist")&&(parent.name == "main")) {
      return true;
    }
  }
  top.location.href = reformat_url;
  return false;
}

window.onerror = stopError;
