var firstClickFlag = false;
//alert('load done');

function getCaptcha(){
	showBox(500,350, '');
	xajax_getCaptcha();
	firstClickFlag = true;
	return false;
}

function firstClick(){
	if (firstClickFlag == true){
		document.getElementById('idfeddbackf').submit();
	} else {
		getCaptcha();
	}
	return false;
}

function clickChoose(value, pEl){
	hEl = document.getElementById(value);
	if (hEl.value == 1){
		pEl.style.border="solid white 1px";	
		hEl.value = 0;
	} else {
		pEl.style.border="solid green 1px";	
		hEl.value = 1;
	}
}

function sendCaptcha(value){
	//alert(xajax.getFormValues(value));
	xajax_sendCaptcha(xajax.getFormValues(value));
}

function reCaptcha(){
	document.getElementById('reCaptcha').innerHTML = '';
	firstClick();
}