function change_display(doc_id){
	if (document.getElementById(doc_id).className == "invisible_row"){
		document.getElementById(doc_id).className = "visible_row";
	}else{
		document.getElementById(doc_id).className = "invisible_row";
	}
}


var used_areas = new Array();

function new_html_area(new_area_id){
	if (undefined === used_areas[new_area_id]){
		used_areas[0] = "true";
		used_areas[new_area_id] = "true";
		HTMLArea.loadPlugin('SpellChecker');
		HTMLArea.loadPlugin('TableOperations');
		HTMLArea.loadPlugin('CharacterMap');
		HTMLArea.loadPlugin('ContextMenu');
		HTMLArea.loadPlugin('ImageManager');
		HTMLArea.onload = function() {
			editor = new HTMLArea(new_area_id);
			editor.registerPlugin(TableOperations);
			editor.registerPlugin(ContextMenu);
			editor.registerPlugin(CharacterMap);
			editor.registerPlugin(ImageManager);
			editor.generate();
		};
		HTMLArea.init();
	}
}

function doSubmit() {
	var form = document.edit_shop;
	if(used_areas.length > 0){
		form.onsubmit();
	}
	form.submit();
	return false;
}
