var BaseClass = {
	ajax: function(script, parameters, onCompleteFn, method) {
		notifier = $('ajax-notifier');
		if (notifier) {
			notifier.className = 'ajax-running';
		}
		this.setCursor('wait');
		method = method || 'post';
		
		new Ajax.Request(
			script, {
				parameters: parameters,
				method: method,
				onComplete: function(transport) {
					onCompleteFn(transport);
					if (notifier) {
						notifier.className = 'ajax-off';
					}
					this.setCursor('default');
				}.bind(this)
			}
		);
	},

	setCursor: function(style) {
		if (document.cursor) {
			document.cursor = style
		} else if (document.all && document.all.cursor) {
			document.all.cursor = style
		} else if (document.body) {
			if (document.body.cursor) {
				document.body.cursor = style
			} else if (document.body.style) {
				document.body.style.cursor = style
			}
		} else if (document.style) {
			document.style.cursor = style
		}
	}
};
