
	tinyMCE.init({
		// General options
		mode : "textareas",		
		theme : "advanced",
		plugins : "emotions,iespell,inlinepopups,insertdatetime,preview",

		// Theme options
		theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,forecolor,backcolor,emotions",
		theme_advanced_buttons2 : "",
		theme_advanced_buttons3 : "",
		theme_advanced_buttons4 : "",
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
		theme_advanced_path_location : "",
		theme_advanced_resizing : false,
		width : "330",
		height : "150",
		object_resizing : false,
		// Example content CSS (should be your site CSS)
		content_css : "styles/content.css",

		// Drop lists for link/image/media/template dialogs
	
		external_image_list_url : "javascript/lists/image_list.js",
		force_p_newlines : false,
		force_br_newlines : true,     

	
		// Replace values for the template plugin
		template_replace_values : {
			username : "Some User",
			staffid : "991234"
		},

		// Enable translation mode
		translate_mode : true,
		language : "zh_tw",
		
		onchange_callback : function() { tinyMCE.triggerSave(); changed = true; },

	});



function checkform1(obj)
{
	tinyMCE.triggerSave(true);

	if (obj.g1.value=="" || obj.g2.value=="") {
		alert(errmsg1);
		return false;
	} 
	
}


