function compStep (actual, dir) {
	$.get('/ajaxResponse/getCompetition/'+ actual + '/' + dir, function(data) {
		if (data.length != 0) {
			$("div#competition").html(data);
		}
	});
}

function showform(){
	$("#vendegkonyvlink").hide();
	$("#hideform").show();
	$("#vendegkonyvform").fadeIn("normal");
}

function hideform(){
	$("#hideform").hide();
	$("#vendegkonyvform").hide();
	$("#vendegkonyvlink").show();
}

function doform(){
	if (!$("#mezo_1").val() || !$("#mezo_2").val() || !$("#mezo_3").val()){
		alert("Az összes mező kitöltése kötelező!");
	}
	else{
		$("#vendegkonyvform").submit();
	}
}

function fontup(){
	if (fontsize <= 13){/*13*/
		fontsize++;
		//$("*").css("font-size",fontsize+"pt");
		if (fontsize > 9){
			$("#center_wide p").css("font-size", fontsize + "pt");
			$("#center_wide h1").css("font-size", fontsize + 3 + "pt");
			$("#center_wide h2").css("font-size", fontsize + 2 + "pt");
		}
		$.get("/content/set_font_size/"+fontsize);
	}
}

function fontdown(){
	if (fontsize >= 9){
		fontsize--;
		if (fontsize > 9){
			$("#center_wide p").css("font-size", fontsize + "pt");
			$("#center_wide h1").css("font-size", fontsize + 3 + "pt");
			$("#center_wide h2").css("font-size", fontsize + 2 + "pt");
		}
		$.get("/content/set_font_size/"+fontsize);
	}
}
