/*
			<div class="cms" type="date">
				<bean:write name="i" property="calendar_date"/>
			</div>

			trying to convert that div into <textarea> when user clicks
   */

function richText(e) {
	e.innerHTML = "<textarea></textarea>";
}
function cms_init() {
	/*
	cms = document.getElementsByClassName("cms");
	for( i=0; i<cms.length; i++ ) {
		if( cms[i].className.match(/\bdate\b/ ) ) {
			cms[i].addEventListener("onclick",
					function() { richText(cms[i]); }, false);
			//cms[i].addEventListener("onclick", richText, false);
		}
	}
	*/
}

/*
function deleteConfirm(o) {
	if(confirm("Delete: " + o + "?")) {

	}
}
*/


