function checkFramecall()
{
    /* "Listens" to input */
    var buffer = location.search;
    if( buffer )
        frames.main.location.href = buffer.substring(1, buffer.length);
 }
 
 function checkFrameset(ziel)
 {
    /* Checks if current site has frames */
    if( parent.frames.length == 0 )
        location.href= ziel + "?" + location.pathname;
 }