Date.parseDate = function(fDateString) {
   var tMillis = Date.parse(fDateString);
   if(isNaN(tMillis)) {
      if(fDateString) {
         if(fDateString.match(/\+[\d]{4}$/))
            return new Date(fDateString.substr(0, fDateString.length - 5));
      }
   }

   return new Date(tMillis);
};

function isEventSupported(fEventName, fEl) {
   var tEl = document.createElement(fEl || "div");
   var tEventName = "on" + fEventName;
   var tIsSupported = (tEventName in tEl);
   if ( !tIsSupported ) {
      tEl.setAttribute(fEventName, "return;");
      tIsSupported = typeof tEl[tEventName] === "function";
   }
   tEl = null;
   return tIsSupported;
}
