function refreshScaptcha()
{
	$('#refreshImg').hide();			
	$('#ScaptchaImg').html("<div class='please-waiting'>Please wait...</div>");	
	setTimeout( "refreshScaptcha2()" ,2000);
		
	return false;
};


function refreshScaptcha2()
{
	var rand_no = Math.random();

	$.ajax({
			type:"POST",
			url: "includes/classes/scaptcha/getScaptcha.php?r="+rand_no,
			data: "rand="+rand_no,
			success: function(msg) 
			{
				//alert(msg);
				$('#ScaptchaImg').html(msg);	
				$('#refreshImg').show();
			},
			error: function(msg) 
			{
				//error
				alert(msg);
				$('#refreshImg').show();
			}
		});
	return false;
};

/*

function refreshScaptcha(urlScaptcha)
{
	$('#refreshImg').hide();			
	setTimeout( "refreshScaptcha2(urlScaptcha)" ,3000);
		
	return false;
};


function refreshScaptcha2(urlScaptcha)
{
	var rand_no = Math.random();

	$.ajax({
			type:"POST",
			url: urlScaptcha+"getScaptcha.php",
			data: "rand="+rand_no+"&url="+urlScaptcha,
			success: function(msg) 
			{
				//alert(msg);
				$('#ScaptchaImg').html(msg);	
				$('#refreshImg').show();
			},
			error: function(msg) 
			{
				//error
				$('#refreshImg').show();
			}
		});
	return false;
};
*/