function GenerateCaptcha()
{
	var httpImage = createRequestObject();
	var actiondiv='CaptchaImage';
	var rand_no = Math.random();
	httpImage.open('GET','libs/captcha/image_ajax.php?refresh='+rand_no);
	httpImage.onreadystatechange = function()
	{
		if(httpImage.readyState == 4)
		{	   		
	   		document.getElementById(actiondiv).innerHTML = httpImage.responseText;
    	}   	
	}
	httpImage.send(null);	
}