/* 
	ajax.min.js
	===============================================================
	Commerce Commission
	Ajax helper functions
	
	Please make any changes to the uncompressed version: ajax.max.js	
	Then recompress at: http://www.refresh-sf.com/yui ('minify only')	
	
	Last Updated: See SVN		
  ===============================================================
*/

function createRequestObject(){var req;if(window.XMLHttpRequest){req=new XMLHttpRequest()}else{if(window.ActiveXObject){req=new ActiveXObject("Microsoft.XMLHTTP")}else{}}return req}var http=createRequestObject();function glossary_definition_handleResponseGet(){if(http.readyState==4&&http.status==200){var response=http.responseText;if(response){deconstructAjaxResponseString(response)}}}function glossary_definition_handleResponsePost(){if((http.readyState==4)&&(http.status==200)){var response=http.responseText;if(response){deconstructAjaxResponseString(response)}}}function sendRequestGet(usage,ajaxget,serverSideScript){switch(usage){case"glossary_definition":http.open("get",serverSideScript+"?ajaxget="+ajaxget);http.onreadystatechange=glossary_definition_handleResponseGet;http.send(null);break}}function sendRequestPost(usage,ajaxpost,serverSideScript){switch(usage){case"glossary_definition":http.open("post",serverSideScript);http.setRequestHeader("Content-Type","application/x-www-form-urlencoded");http.onreadystatechange=glossary_definition_handleResponsePost;http.send("ajaxpost="+ajaxpost);break}};
