/**********************************************************************
	Version: FreeRichTextEditor.com (Free AJAX Version 1.00).
	License: http://creativecommons.org/licenses/by/2.5/
	Description: Example of how to add freeAJAX into a page.
	Author: Copyright (C) 2006  Steven Ewing
**********************************************************************/
function ajaxSend(ajaxMethod, ajaxUrl, ajaxDiv, ajaxOutput)
{ function ajaxObject()
{ if (document.all && !window.opera)
{ obj = new ActiveXObject("Microsoft.XMLHTTP");}
else
{ obj = new XMLHttpRequest();}
return obj;}
var ajaxHttp = ajaxObject(); ajaxHttp.open(ajaxMethod, ajaxUrl); ajaxHttp.onreadystatechange = function()
{ if(ajaxHttp.readyState == 4)
{ var ajaxResponse = ajaxHttp.responseText; if (ajaxOutput == "innerHTML")
{ document.getElementById(ajaxDiv).innerHTML = ajaxResponse;}
else if (ajaxOutput == "value")
{ document.getElementById(ajaxDiv).value = ajaxResponse;}
}
}
ajaxHttp.send(null);}
