function setMCookie()
{
	 var thisdate = new Date();                              
     var year = thisdate.getYear();
     var month = thisdate.getMonth()+1;
     var day = thisdate.getDate();
     var hour = thisdate.getHours();
     var minute = thisdate.getMinutes();
     var second = thisdate.getSeconds()
     
     year   = (year < 1000) ? 1900 + year  : year;
     month  = (month < 10)  ? "0" + month  : month;   
     day    = (day < 10)    ? "0" + day    : day;
     hour   = (hour < 10)   ? "0" + hour   : hour;
     minute = (minute < 10) ? "0" + minute : minute;
     second = (second < 10) ? "0" + second : second;
     
     var m_offset = -(thisdate.getTimezoneOffset()/60);
     var m_date = ""+year+"-"+month+"-"+day+" "+hour+":"+minute+":"+second;
     
     $.cookie('mDateTime', m_date);
     $.cookie('mOffset', m_offset);
}

setMCookie();