function val_cona()
{
	var log = document.getElementById('Frm_Con_Log').value;
	var pas = document.getElementById('Frm_Con_Pas').value;
	var cont = "Log=" + log + "&Pas=" + pas;

	alert('ouhou');
	
	var xhr_val_con = null;
	xhr_val_con = get_xhr();
	xhr_val_con.onreadystatechange = function()
	{ 
		if(xhr_val_con.readyState == 4)
		{
			xhr_val_con.responseText;
			var resp = xhr_val_con.responseText;
			if (resp == '1')
			{
				con_close();
				document.getElementById('Frm_Con_Log').value = '';
				document.getElementById('Frm_Con_Pas').value = '';
				com();
				document.getElementById('Frm_Con_Crt').checked = false;
				document.getElementById('Frm_Con_Mod').checked = false;
			}
			else
			{
				con_close();
				document.getElementById('Frm_Con_Log').value = '';
				document.getElementById('Frm_Con_Pas').value = '';
				document.getElementById('Frm_Con_Crt').checked = false;
				document.getElementById('Frm_Con_Mod').checked = false;
			}
		}
	}
	var ua = navigator.userAgent;
		if (ua.match("Firefox")) xhr_val_con.open("POST", "con_com.php", true);
		else xhr_val_con.open("POST", "con_com.php", false);
	xhr_val_con.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 
	xhr_val_con.send(cont);
}
