function GetValue( Offset ) { var End = document.cookie.indexOf (";", Offset); if( End == -1 ) End = document.cookie.length; return unescape( document.cookie.substring( Offset, End) ); } function GetCookie( Name ) { var Len = Name.length; var i = 0; while( i < document.cookie.length ) { var j = i + Len + 1; if( document.cookie.substring( i, j) == (Name + "=") ) return GetValue( j ); i = document.cookie.indexOf( " ", i ) + 1; if( i == 0) break; } var a = ""; return a; } var myref; myref=document.referrer; window.defaultOnError = window.onerror; window.onerror=doCount; if(top.document.referrer!=null) myref=top.document.referrer; window.onerror=window.defaultOnError; doCount(); function doCount(){ document.write(''); return true;}