var req=null;
	function refreshcaptcha() 
	{
		//alert('colorcode');
		// branch for native XMLHttpRequest object
		
		

		if (window.XMLHttpRequest) {
		
			req = new XMLHttpRequest();
		 	if(!req)
			{
				alert('aa');
			}
			var url="captcha.php";			
			
			req.open("GET", url);
			req.send(null);
			req.onreadystatechange = processReqChange;
		// branch for IE/Windows ActiveX version
		} else if (window.ActiveXObject) {
			alert('ie');
			/*req = new ActiveXObject("Microsoft.XMLHTTP");
			if (req) {
				req.onreadystatechange = processReqChange;
				req.open("GET", url, true);
				req.send();
			}*/
		}
	}
	function processReqChange() 
	{
		if (req.readyState == 4) // only if req shows "complete"
		{
			
			
			if (req.status == 200) // only if "OK"
			{
				alert(req.responseText);
				document.getElementById("captcha").innerHTML=req.responseText;
				//document.getElementById('hs').value=req.responseText;
				
			} 
			else
			{
				alert('loi');
			}
			return false;
		}
		
	}
	