hive/html/js/basic.js
/***********************************************
* misc cookie and command line functions
***********************************************/
misc cookie and command line functions
misc cookie and command line functions
function cookieSet(sNm, sValue, days)
{
    var expires = ";";
    if(days) {
        var date = new Date();
        date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
        expires += " expires=" + date.toGMTString();
    }
    document.cookie = sNm + "=" + escape(sValue) + "; path=" + gHome + expires;
}
function cookieSet ( sNm , sValue , days ) { var expires = ";" ; if ( days ) { var date = new Date ( ) ; date . setTime ( date . getTime ( ) + ( days * 24 * 60 * 60 * 1000 ) ) ; expires += " expires=" + date . toGMTString ( ) ; } document . cookie = sNm + "=" + escape ( sValue ) + "; path=" + gHome + expires ; }
misc cookie and command line functions
misc cookie and command line functions