var pI = 0;
function pillog()
 {
	 pI++;
		if(pI<5) $('#transport').css('opacity','1'); else { $('#transport').css('opacity','0.01'); pI=0;}
	}
	
function checkMezok(c)
{ 
  if(c=='nincs') return true;
 	$('.uinp').trigger('blur');
		var mehet=true;
		$('.' + c).filter(function(index)	{	mezoures = $(this).attr('value').length ; 	if(!mezoures) mehet=false; return !mezoures;}).css('background-color','#f2c3c4'); 
			
 return mehet;
}

function dispPromo(merre)
 {
	
	 if(!aktpromo) { merre = 'kov'; aktpromo = 1; } 
		 else
 			{
 		 	if(merre=='kov')
  	   {
 						aktpromo += 3;
       if(aktpromo>hanypromo) aktpromo = 1;
						}
 		 	if(merre=='elo')
  	   {
 						aktpromo -= 3;
       if(aktpromo<=0) aktpromo = hanypromo -2;
						}
	  }
		$('#promodiv').html('<div style="text-align:center; padding-top:40px;"><img src="images/promoload.gif"></div>');	
	 
		$('#promodiv').animate({'opacity':0},  function() {
		$('#promodiv').load('ajax_feedpromo.php?n='+aktpromo+'&lang='+Lang, function(){ $('#promodiv').animate({'opacity':1}, function() { if(jQuery.browser.msie) document.getElementById('promodiv').style.removeAttribute('filter') } ) ;});  } );
	}
	
	
function TCheck(id, text1, text)
	{
		if(text=='') return true;
		var x = document.getElementById(id);
		if(x.value!='0') return true;
		alert(text1 + ': ' + text + '.');	
		return false;
	}
	
	
function refreshCos(lang)
	{
		$('#cos').load('ajax_refresh_cos.php?lang='+lang);
	
	}
		




