function clearCookie( name ) { document.cookie = name.toLowerCase()+ "=; expires=Thu, 01-Jan-70 00:00:01 GMT"; } function setCookie( name, text ) { // clearCookie( name ); document.cookie = name.toLowerCase() + "=" + escape( text ) + "; path=/"; } function getCookie( name, def ) { var b, e, r, result; r = name.toLowerCase() + "="; b = document.cookie.indexOf( r ); result = def while( b != -1 ) { b = b + r.length; e = document.cookie.indexOf( ";", b ); if( e == -1 ) e = document.cookie.length; if( b == e ) result = ""; else result = unescape( document.cookie.substring( b, e ) ); b = document.cookie.indexOf( r, e ); } return result; } function frameLoaded() { var load = getCookie( "place", "Home" ); setCookie( "place", "Nop" ); switch( load.toLowerCase() ) { case "home": { window.top.Right.document.location.target = "Right"; window.top.Right.document.location.href = "/txt/reception.shtml"; break; } case "nop": { break; } default: { window.top.Right.document.location.target = "Right"; window.top.Right.document.location.href = load; break; } } } function pageLoaded( load ) { if( window.top == window || window.top.document.location.hostname != document.location.hostname ) { if( getCookie( "frames", "yes" ) != "no" ) { // clearCookie( "place" ); // clearCookie( "place" ); setCookie( "place", load ); window.top.document.location.href = "/"; } } } function cantDoFrames() { setCookie( "frames", "no" ); }