        var reg = readCookie('reg')
        if (reg) {

                createCookie('reg',"",-1); //erase cookie
                var username = readCookie('username')

                if (username) {
                        alert ('You successfully registered as '+username+'. You have been logged in and can begin bidding on auctions.')
                }
        }

        var error = readCookie('error')
        if (error) {

                if (error == 'login') {
                        alert ("There was a login error. Either the username / password combination is incorrect, or you have not yet registered.")
                }else if(error == 'TXTBDR'){
                        alert ("Your handle cannot contain the letters 'TXTBDR' together. Please choose a different handle and try again.")
                }else if(error == 'nametaken'){
                        alert ("That handle is unavailable. Please choose a different handle and try again.")
                }else if(error == 'nomatch'){
                        alert ("The passwords you entered do not match. Please try again.")
                }else if(error == 'missingdata'){
                        alert ("You did not fill in all required fields, or certain fields are not long enough.  A minimum of five (5) characters are required for each field.")
                }else if(error == 'captcha'){
                        alert ("The captcha was not correct.  Please try again.")
                }

                createCookie('error',"",-1); //erase cookie
        }

