$(document).ready(function() {
		$("#RefreshCaptcha").click(function(){        
			 $("#CaptchaCode").empty();        
			 $.ajax({
			   type: "GET",
			   url: "/captcha/captcheck.php",
			   data: "",
			   beforeSend: function() {
					$('#CaptchaCode').html('<div style="text-align:left;"><table><tr height="26"><td><img src=/captcha/icon_ajax_loader.gif></td><td style="font-family:arial; font-size:12px;color:#000000;">Loading...</td></tr></table></div>');
			   },
			   success: function(data){
				   $('#CaptchaCode').html('<img src="/captcha/captcha.php?id=' + Math.random() + '" border="0">');
			   }
			 });
			return false;
		});    
});

/*

function checkformCaptcha()	{
 var sonuc;
 $.ajax({
   type: "GET",
   url: "/captcha/captcheck.php",
   data: "securityCode=" + document.getElementById("securityCode").value,
   success: function(result){
	  if (result == 0)	{
		sonuc = 0;
	  }
	  else	{
		sonuc = 1;
	  }


   }
 });
 $('#securityCodeResult').attr('value', sonuc);
}
*/
