function clikkcount(id,hova,tabla,frame) {
	/*$.post("click.php", {id: id} );*/
	$('#errors').append('<form id="clickform" target="'+frame+'" method="POST" action="'+servercime+'click.php">'+
	'<input type="hidden" name="cltabla" value="'+tabla+'">'+
	'<input type="hidden" name="clid" value="'+id+'">'+
	'<input  name="hova" type="hidden" value="'+hova+'">'+
	'</form>');	
	$('#clickform').submit();
	$('#clickform').remove();
}

function emailkuld(tabla,id,szerver) {
	   Shadowbox.open({
        player:     'iframe',
        content:    szerver+'emailkuld.php?ct='+tabla+'&ctid='+id,
        height:     655,
        width:      695
    });

}

function katbezar(cl,be) {
	if (be) {
		$('li.'+cl).each( function() {
				$(this).hide();
			}
		);
	} else {
		//alert('nyit'+cl);
		var nyit=$('#'+cl).attr('fokat');
		$('li.fk-'+ nyit).each( function() {
			$(this).show();
			}
		);
	}
}


function kotelezo(nev,igen,rejt) {
	if (igen) {
		$('#'+nev).addClass("required");
		$('label[for="'+nev+'"]').addClass("kotelezo");
	} else {		
		$('#'+nev).removeClass("required");
		$('label[for="'+nev+'"]').removeClass("kotelezo");	
		$('label[for="'+nev+'"].error').remove();	
	}
	if (rejt) {
		$('#'+nev).hide();
		$('label[for="'+nev+'"]').hide();
	} else {
		$('#'+nev).show();
		$('label[for="'+nev+'"]').show();
	}
}

function inputinfo() {
    $('input:text').focus( function() { 
        showHint($('span.hint',$(this).parent()).html(),$(this));
    });
     $('input:password').focus( function() { 
        showHint($('span.hint',$(this).parent()).html(),$(this));
    });
    $('input:checkbox').focus( function() { 
        showHint($('span.hint',$(this).parent()).html(),$(this).next());
    });
	$('select').focus( function() { 
        showHint($('span.hint',$(this).parent()).html(),$(this));
    });		        
	$('textarea').focus( function() { 
        showHint($('span.hint',$(this).parent()).html(),$(this));
    });	
    $('*').blur( function() { 
        closeHint();
    });
}
