function xmlhttpPost(strURL, strQueryString, async) {
    var xmlHttpReq = false;
    var self = this;
	// Mozilla/Safari
    if (window.XMLHttpRequest) {
        self.xmlHttpReq = new XMLHttpRequest();
    }
    // IE
    else if (window.ActiveXObject) {
        self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
    }
    self.xmlHttpReq.open('POST', strURL, async);
    self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    self.xmlHttpReq.send(strQueryString);
	if (async) {
	    self.xmlHttpReq.onreadystatechange = function() {
	        if (self.xmlHttpReq.readyState == 4) {
	            updatepage(self.xmlHttpReq.responseText);
	        }
	    }
	} else
		return self.xmlHttpReq.responseText;
}
function editor_init() {
	tinyMCE.init({
		theme : "advanced",
		language : "it",
		mode : "textareas",
		valid_elements : "br,b/strong,i/em,u,span[class|style]",
		auto_reset_designmode : false,
//		onchange_callback: "tinyMCE.selectedInstance.triggerSave(); formChanged(tinyMCE.selectedInstance.formElement.form)",
		relative_urls : false,
//		force_br_newlines : true,
		convert_newlines_to_brs : true,
		cleanup : true,
		preformatted : false,
		verify_html : false,
		plugins : "spellchecker,style,searchreplace,contextmenu",
		theme_advanced_styles : "Times=T0;Cittą=T21",
//		theme_advanced_buttons1 : "bold,italic,underline,styleselect,separator,charmap,spellchecker,separator,undo,redo,separator,cut,copy,paste,separator,bullist,numlist,separator,search,replace",
		theme_advanced_buttons1 : "bold,italic,separator,undo,redo,separator,cut,copy,paste,separator,bullist,separator,search,replace",
		theme_advanced_buttons2 : "",
		theme_advanced_buttons3 : "",
		theme_advanced_disable : "",
		theme_advanced_toolbar_align : "left",
		theme_advanced_toolbar_location : "bottom",
		theme_advanced_source_editor_width : "50%",
		content_css : "/includes/editor.css",
		handle_event_callback : "editor_EventCallback"
	});
}

