function capCheck(theForm){
	var xmlhttp;
	var sReply;
	DataToSend = "action=process&captext=" + escape(theForm.captext.value);
	if(window.XMLHttpRequest){
		xmlhttp=new XMLHttpRequest();
		xmlhttp.open("POST",'process.php',false);
		xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
		xmlhttp.send(DataToSend);
		sReply = xmlhttp.responseText;
	}
	else if(window.ActiveXObject){
		xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		xmlhttp.open("POST",'process.php',false);
		xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
		xmlhttp.send(DataToSend);
		sReply = xmlhttp.responseText;
	}
	if(sReply == "good"){
		return true;
	}
	else if(sReply == "bad"){
		alert("Proszę prawidłowo przepisać tekst z obrazka");
		document.contact.captext.focus();
		return false;
	}
	else if(sReply == ""){
		alert("Proszę przepisać tekst z obrazka");
		document.contact.captext.focus();
		return false;
	}
	else{
		alert("Błąd");
		document.contact.captext.focus();
		return false;
	}
}
