// JavaScript Document
	function checkCaptcha()

	{

		str = document.getElementById("captcha_reg").value;

	if (str=="")

	  {

	  alert("Enter Captcha");

	  return;

	  }

	if (window.XMLHttpRequest)

	  {

	  xmlhttp=new XMLHttpRequest();

	  }

	else

	  {

	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");

	  }

	xmlhttp.onreadystatechange=function()

	  {

	  if (xmlhttp.readyState==4 && xmlhttp.status==200)

		{

		 //  alert(xmlhttp.responseText);

			if(xmlhttp.responseText=="1"){

				document.getElementById("queryForm").submit();

			}

			else{

				alert("invalid captcha");

			}

		}

	  }

	xmlhttp.open("GET","reg_captcheck.php?captcha="+str,true);

//	alert("reg_captcheck.php?captcha="+str);

	xmlhttp.send();

	}

