function GetCookie(cookiename)
{
    var thebigcookie = document.cookie;
    var firstchar = thebigcookie.indexOf(cookiename);
    if (firstchar != -1) {
        firstchar += cookiename.length + 1;
        lastchar = thebigcookie.indexOf(";",firstchar);
        if(lastchar == -1) lastchar = thebigcookie.length;
        return unescape(thebigcookie.substring(firstchar, lastchar));
    }
    return "";
}

//function SetCookie(cookiename,cookievalue,domainname,cookieexpdate)
function SetCookie(cookiename,cookievalue)
{
    document.cookie = cookiename + "=" + escape(cookievalue)
//    + "; domain=" + domainname
    + "; domain=www.qqfzbj.com"
    + "; path=" + "/"
//    + "; expires=" + cookieexpdate.toGMTString();
}