/**
*@package EnvisioNext javascript library
*@subpackage PCMS5 user side coomon files
*@copyright (C) 2007 EnvisioNext.com  <support@EnvisioNext.com>
*@author Postika Alexander  <alexander.postika@envisionext.com.ua>
*/

var CommonFunctions = {
	
	// clears cache for single element
	clearCacheById : function(id) {
		var opt = {
			// Use POST
			method: 'post',
			// Send this lovely data
			postBody: 'modeAjax=true&chacheId='+Id,
			// Handle successful response
			onSuccess: function(t) {
			},
			// Handle other errors
			onFailure: function(t) {
				//alert('Error ' + t.status + ' -- ' + t.statusText);
			}
		}
		new Ajax.Request('?', opt);
		
	}
}	
