$(document).ready(function(){

$("#gtacountry").click(function() {

$("input[@type='radio']").each(function() {
this.checked = false;
});
});


$("#gtacity").click(function() {
$("input[@type='radio']").each(function() {
this.checked = false;
});
});


$("input[@type='radio']").click(function() {
$("#gtacountry").each(function() {
this.disabled = true;
});

$("#gtacity").each(function() {
this.disabled = true;
});

$("#renew").fadeIn("slow");


});




$("#renew").click(function() {
$("#gtacountry").each(function() {
this.disabled = false;
});

$("#gtacity").each(function() {
this.disabled = false;
});

$("#renew").fadeOut("slow");


});






});

function evfrissit(formname, evho) {

	// napok frissítése

	ev = evho.substring(0, 4);
	ho = evho.substring(5, 7);
	
	var utolsonapdate = new Date(ev, ho, 0);
	utolsonap = utolsonapdate.getDate();
	
	//alert(utolsonap);

	for (i = document.getElementById(formname).options.length; i >= 0; i--) {
		document.getElementById(formname).options[i] = null;
	}

	for (i = 0; i <= utolsonap - 1; i++) {
		j = i + 1;
		if (j < 10) {
			j = "0" + j;
		}
		document.getElementById(formname).options[i] = new Option(j, j);
	}

}

function _Copy(){
if(document.foglalfrm.utasveznev[1][1].value) document.foglalfrm.kapcsadatinput[1].value = document.foglalfrm.utasveznev[1][1].value;
if(document.foglalfrm.utaskernev[1][1].value) document.foglalfrm.kapcsadatinput[2].value = document.foglalfrm.utaskernev[1][1].value;
}

function SetMode( __id ){
for( _m = 1; _m<=3; _m++ ){
document.getElementById("pt"+_m).style.display = "none";
}
document.getElementById("pt"+__id).style.display = "block";
}

function ucopy() {
var vnev=document.getElementById('vezeteknev').value;
var knev=document.getElementById('keresztnev').value;
document.getElementById('kapcs1').value=vnev;
document.getElementById('kapcs2').value=knev;
}

function szlachk() {
document.getElementById('szla').style.display="block";
document.getElementById('szch').onclick.value="szlaunchk();";
}

function szlaunchk() {
document.getElementById('szla').style.display="none";
document.getElementById('szch').onclick="szlachk();";
}
