<!-- TinyMCE -->
	tinyMCE.init({
		// General options
		mode : "textareas",
		theme : "advanced",
		skin : "o2k7",
		skin_variant : "black",
		plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,inlinepopups",

		// Theme options
		theme_advanced_buttons1 : "bold,italic,underline,|,justifyleft,justifycenter,justifyright,|,justifyfull,bullist,numlist,outdent,indent,blockquote,forecolor,backcolor,sub,sup,charmap,hr",
		theme_advanced_buttons2 : "link,unlink,anchor,image,media,|,insertdate,inserttime,preview,formatselect,|,nonbreaking,|,cut,copy,paste,pastetext,pasteword",
		theme_advanced_buttons3 : "tablecontrols,|,search,replace,|,undo,redo,|,removeformat,cleanup",
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
	plugin_insertdate_dateFormat : "%A %d %B %Y",
	plugin_insertdate_timeFormat : "%I:%M %p",


		// Example word content CSS (should be your site CSS) this one removes paragraph margins
		//content_css : "css/word.css",

		// Drop lists for link/image/media/template dialogs
		template_external_list_url : "lists/template_list.js",
		external_link_list_url : "lists/link_list.js",
		external_image_list_url : "lists/image_list.js",
		media_external_list_url : "lists/media_list.js",
	});
<!-- /TinyMCE -->
<!-- Begin
function checkboxcheck(theform,field,fieldcheck)
{
	//alert(fieldcheck.value+" "+fieldcheck.name);
	if(fieldcheck.value== "y"){ //  Fieldcheck shoud be equal to y
		uncheckAll(field);
		fieldcheck.value = "n";
	}else{
		checkAll(field);
		fieldcheck.value = "y";
	}
}

function checkAll(field)
{
for (i = 0; i < field.length; i++)
	field[i].checked = true ;
}

function uncheckAll(field)
{
for (i = 0; i < field.length; i++)
	field[i].checked = false ;
}
//  End -->