function regEvent (event_id,wrong) {
	urla = '/ajax/ajax_re.php?eid='+event_id+'&wrong='+wrong;
	new ajax(
            urla,
            {
                method: 'get',
                postBody: "",
                update:"regeventMain"
            }
        );
	return false;
}

function reggedOk () {
	document.getElementById('evtregDiv').style.display='none';
	var url,param;
	param = window.location.href.indexOf('&set=reg_event');
	if(param!=-1) {
		url = window.location.href.slice(0,param);
		window.location.href=url;
	} else {
		window.location.reload();
	}
	//window.location.reload();
	return false;
}
