text: /**
   * Module : Sparrow cookies
   * Author : Kvkens(yueming@yonyou.com)
   * Date	  : 2016-07-27 21:46:50
   */
  
  var setCookie = function(sName, sValue, oExpires, sPath, sDomain, bSecure) {
  	var sCookie = sName + "=" + encodeURIComponent(sValue);
  	if(oExpires)
  		sCookie += "; expires=" + oExpires.toGMTString();
  	if(sPath)
  		sCookie += "; path=" + sPath;
  	if(sDomain)
  		sCookie += "; domain=" + sDomain;
  	if(bSecure)
  		sCookie += "; secure=" + bSecure;
  	document.cookie = sCookie;
  };
  
  var getCookie = function(sName) {
  	var sRE = "(?:; )?" + sName + "=([^;]*);?";
  	var oRE = new RegExp(sRE);
  
  	if(oRE.test(document.cookie)) {
  		return decodeURIComponent(RegExp["$1"]);
  	} else
  		return null;
  };
  
  export {
  	setCookie,getCookie
  };