code: function(object) {
         var proj = object.layer.projection.toString();
         var crs = {};
         if (proj.match(/epsg:/i)) {
             var code = parseInt(proj.substring(proj.indexOf(":") + 1));
             if (code == 4326) {
                 crs = {
                     "type": "name",
                     "properties": {
                         "name": "urn:ogc:def:crs:OGC:1.3:CRS84"
                     }
                 };
             } else {    
                 crs = {
                     "type": "name",
                     "properties": {
                         "name": "EPSG:" + code
                     }
                 };
             }    
         }
         return crs;
      }
docs: Method: createCRSObject
  Create the CRS object for an object.
  
  Parameters:
  object - {<OpenLayers.Feature.Vector>}
  
  Returns:
  {Object} An object which can be assigned to the crs property
  of a GeoJSON object.