conxmlHttp=conGetXmlHttpObject();
if (conxmlHttp==null){
	//alert ("Your browser does not support the XMLHttpRequest object.");
	//return false;
}
var refreshImage = "./showValIMG.php"; // The server-side script
var showImage = "./showValIMG.php"; // The server-side script
function showVerifyImage() {
	conxmlHttp.open("GET", showImage , true);
	conxmlHttp.onreadystatechange = conhandleHttpResponse;
	conxmlHttp.send(null);
}
function refreshVerifyImage() {
	conxmlHttp.open("GET", refreshImage , true);
	conxmlHttp.onreadystatechange = conhandleHttpResponse;
	conxmlHttp.send(null);
}

function conGetXmlHttpObject(){ 
	var objXMLHttp=null;
	try {
		objXMLHttp = new ActiveXObject("Msxml2.XMLHTTP"); //later IE
	} catch (e) {
		try {
			objXMLHttp = new ActiveXObject("Microsoft.XMLHTTP"); //earlier IE
		} catch (e) {
			objXMLHttp = null;
		}
	}	  
	if (objXMLHttp==null){
		objXMLHttp=new XMLHttpRequest(); //IE7, Firefox, Safari
	}
	return objXMLHttp;
}
function conhandleHttpResponse() {
	if (conxmlHttp.readyState == 4) {
		results = conxmlHttp.responseText;
		//alert(results);
		document.getElementById('conOutput').innerHTML = "";
		document.getElementById('conOutput').style.visibility = 'visible';
		document.getElementById('conOutput').innerHTML = results;
		//document.getElementById('verIMG').src = results;
	}
}

