var CheckName   = "left";                   // Name attribute of frame for check
var FullBaseURL = "http://www.tssc.de/index.htm";
                                            // Full path to frameset source
var doLoad      = 0;                        // Need to load frames?


if (self.parent.frames.length == 0)         // If frames collection is empty
{ 
    doLoad++;
}
else
{
    if (self.parent.frames[0].name != CheckName)
    {                                       // If left frame name is not 'left'
        doLoad++;
    }
}

if (doLoad > 0)                             // If need to load frames
{
//    self.parent.location = FullBaseURL+"#"+self.location.protocol+"//"+self.location.host+self.location.pathname;
    self.parent.location = "../../index.htm"+"#"+self.location.protocol+"//"+self.location.host+self.location.pathname;
}
