	function s_dateFormat(dateformat) {
		// Tuesday, July 17, 2008
		dateformat = trim(dateformat);
		if(dateformat.length>0) {
			var vpostdate= dateformat.split(",")
			var year = trim(vpostdate[2]);
			vpostdate = trim(vpostdate[1]);
			var vpostdate= vpostdate.split(" ");
			var vresult = '<div class="monthBlog">' + vpostdate[0].substring(0, 3).toUpperCase() + '</div>';
			vresult += '<div class="dayBlog">' + vpostdate[1] + '</div>';
			vresult += '<div class="yearBlog">' + year + '</div>';
			return vresult;
		}
	}


	 //thanks to webtoolkit.info for this trim snippet,
	 function trim(str, chars) {
		 return ltrim(rtrim(str, chars), chars);
	 }

	 function ltrim(str, chars) {
		 chars = chars || "\\s";
		 return str.replace(new RegExp("^[" + chars + "]+", "g"), "");
	 }

	 function rtrim(str, chars) {
		 chars = chars || "\\s";
		 return str.replace(new RegExp("[" + chars + "]+$", "g"), "");
	 }
