<!--
    // Check to see whether the BMCUSER cookie exists
    //
    var strValue = GetCookie("BMCUSER");
    if (strValue == "")
    {
	      SetBMCUserCookie();
    }

    function GetCookie(cookieName) 
    {
         var thisCookie
         thisCookie = document.cookie.split("; ")
         for (i = 0; i<thisCookie.length;i++) 
         {
                  if (cookieName == thisCookie[i].split("=")[0])
                  {
                    return unescape(thisCookie[i].split("=")[1])
                  }
         }
         return "" 
    }

    function SetBMCUserCookie()
    {
        var expdate = new Date ();
        var cookieval = Date.parse(new Date());

        expdate.setMonth(expdate.getMonth() + 15);
        
        var the_cookie = "BMCUSER=" + escape(cookieval) + ";" ;
        the_cookie = the_cookie + "expires=" + expdate.toGMTString() + ";";
        the_cookie = the_cookie + "path=/;";
        the_cookie = the_cookie + "domain=.bmc.com;";
        document.cookie = the_cookie;
    }
//-->
