function loadingCaptcha(id) {
	$(id).setHTML('<img src="/images/loadingcircle.gif" title="Loading" alt="Loading" border="0" />');
}
function refreshCaptcha() {
	if($('refreshCaptcha')) {
		$('refreshCaptcha').setStyle('cursor','pointer').addEvent('click',function(e) {
			new Ajax('/securityimage.php?refresh=true&refid=refid', { method: 'get', update: $('securityImage'), onRequest: function() { loadingCaptcha('securityImage'); }, onComplete: function() { refreshCaptcha(); } }).request();
		});;
	};
};
window.addEvent('domready',refreshCaptcha);