window.addEvent('domready',function(){

	if($defined($('captcha'))){
		var image=$('captcha').getElement('img');

		image.setStyle('cursor','pointer');

		image.addEvent('click',function(){
			var myRequest = new Request({method: 'get', url: $('base_url').get('value')+'contact/createAjaxCaptcha', onSuccess:function(response){
			image.setProperty('src',response);		

			}}).send();

		});
		
	}
	
	
});
