var xmlHttp;

function showCaptcha()
{	
	xmlHttp = GetXmlHttpObject();
	if(xmlHttp == null)
	{
		alert("Browser does not support HTTP REQUEST");
		return;
	}
	
	var url =	"http://www.path10.com/member/show-captcha.php";
	xmlHttp.onreadystatechange = stateChanged12;
	xmlHttp.open("GET",url,true);
	xmlHttp.send(null);
}

function stateChanged12()
{
	if(xmlHttp.readyState == 4 || xmlHttp.readyState =='complete')
	{
		document.getElementById("captchaImage").innerHTML = xmlHttp.responseText;
	}
}

function GetXmlHttpObject()
{
	var xmlHttp = null;
	try{
		xmlHttp = new XMLHttpRequest();
		}
	catch(e)
	{
	try
		{
			xmlHttp = new ActiveXObject("MSxml2.XMLHTTP");
		}
		catch(e)
		{
			xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
		}
	}
	return xmlHttp;
	
}