$(window).load(function () {
	$("#kt_index_cikkek a[href='#nogo']").mouseover(function() {
		$this = $(this);
		$("#kt_index_cikkek div ul li.aktiv").removeClass();
		$this.parent('li').addClass("aktiv");
		$("#kt_index_cikkek div").removeClass().addClass($this.parent("li").attr("id"));
	});
	$("#kt_index_cikkek a[href='#nogo']").click(function() {
		$(this).blur();
		return false;
	});

	$(".kt_belso_orvoskereso .orvos ul li a[href='#nogo']").click(function() {
		$(this).parents("ul").hide();
		$(this).parents(".orvos").find("form").show();
		return false;
	});
	$(".kt_belso_orvoskereso .orvos form a[href='#nogo']").click(function() {
		$(this).parents("form").hide();
		$(this).parents(".orvos").find("ul").show();
		return false;
	});

	$(".kt_belso_orvoskereso .orvos input.text").focus(function() {
		if (this.value == this.defaultValue) {
			this.value = "";
		}
	});
	$(".kt_belso_orvoskereso .orvos input.text").blur(function() {
		if (this.value == "") {
			this.value = this.defaultValue;
		}
	});

	$(".kt_belso_orvoskereso .orvos form input.kt_gomb").click(function() {
		chkData($(this).attr("id"));
		return false;
	});
});

function chkData(id){
	if((document.getElementById('myemail_'+id).value == '') || (document.getElementById('mytext_'+id).value == '')){
		alert('Mindkét mezőt ki kell töltenie!');
		return false;
	} else {
		document.getElementById('ddform_'+id).submit();
	}
}
