diff --git a/js/headfoot.js b/js/headfoot.js
index 8d2b692ac3b54f980f0088be4803dd335f438e8d..47aeb55c34118e00b7593b26406aeefc9b15dcbc 100755
--- a/js/headfoot.js
+++ b/js/headfoot.js
@@ -125,6 +125,7 @@ function head(){
             }
             headitem.appendChild(combodiv);
         }else if(itemtype=='loginbutton'){
+            headlink.id="loginbutton";
             if(userAuthenticated()){
                 headlink.innerHTML="Account";
                 headlink.href="/account/";