
function checkforframe() 
{
  if (top == self || (parent.frames[0].name != 'contents'))
    top.location.href = 'index.html?'+location.href;
}