        if(typeof(gsession) != 'undefined' && gsession && gusername) {
                document.write('<nobr>Welcome back ' + gusername);
                document.write('&nbsp;&nbsp;<A HREF=/bin/Profile class=>my account</A>');
                document.write('&nbsp;|&nbsp;<A HREF=/tools/DDload  >my download area</A>');
                document.write('&nbsp;|&nbsp;<A HREF="jav' + 'ascript: gsetCook');
                document.write('ie2\(\'username\',\'\'\);gsetCookie2\(\'gmpsess\',\'\'\);gsetCookie2\(\'gmpauth\',\'\'\);top.location=\'/index.shtml\';\" >sign-out</A></nobr> ');
        } else {  
                if(typeof(gsession) != 'undefined' && gsession){
                document.write('<A HREF=/bin/Profile class=>my account</A>');
                document.write('&nbsp;|&nbsp;<A HREF=/tools/DDload  >my download area</A>');
                        document.write('&nbsp;&nbsp;|&nbsp;&nbsp;<A HREF="jav' + 'ascript: gsetCook');
                                document.write('ie\(\'username\',\'\'\);gsetCookie2\(\'gmpsess\',\'\'\);gsetCookie2\(\'gmpauth\',\'\'\);top.location=\'/index.shtml\';\" >sign-out</A>');
                } else {
                        document.write('<A HREF=/user/login.shtml>Login for more features</a>&nbsp;');
                }

        }

