
tinyMCE.init({
	mode : "specific_textareas",
	editor_selector : "mceEditor",
	theme : "advanced",
	theme_advanced_buttons1 : "bold,italic,underline,bullist,numlist,outdent,indent,blockquote,separator,link,unlink,hr",
	theme_advanced_buttons2 : "",
	theme_advanced_buttons3 : "",
	theme_advanced_toolbar_location : "top",
	theme_advanced_toolbar_align : "left",
	theme_advanced_statusbar_location : "bottom",
	theme_advanced_resizing : true

});


// copyright 1999 Idocs, Inc. http://www.idocs.com
// Distribute this script freely but keep this notice in place
function numbersonly(myfield, e, dec)
{
	var key, keychar;

	if (window.event)
		 key = window.event.keyCode;
	else if (e)
		 key = e.which;
	else
		 return true;
	keychar = String.fromCharCode(key);

	// control keys
	if ((key==null) || (key==0) || (key==8) || (key==9) || (key==13) || (key==27) )
		 return true;

	// numbers
	else if ((("0123456789").indexOf(keychar) > -1))
		 return true;

	// decimal point jump
	else if (dec && (keychar == "."))
		 {
		 myfield.form.elements[dec].focus();
		 return false;
		 }
	else
		 return false;
}
// copyright 1999 Idocs, Inc. http://www.idocs.com
// Distribute this script freely but keep this notice in place
function decimalonly(myfield, e, dec)
{
	var key, keychar;
	var currency = /^\d*(?:\.\d{0,2})?$/;

	if (window.event)
		 key = window.event.keyCode;
	else if (e)
		 key = e.which;
	else
		 return true;
	keychar = String.fromCharCode(key);

	// control keys
	if ((key==null) || (key==0) || (key==8) || (key==9) || (key==13) || (key==27) )
		 return true;

	// numbers
	else if ((("0123456789.").indexOf(keychar) > -1))
		 return true;

	// ensure to 2 decimal places
	//else if (currency.test(myfield.value))
		//return true;
//	else if(myfield.match(/^\d*(?:\.\d{0,2})?$/))
	//	return true;

	else
		 return false;
}
