
var antibot = Math.floor(Math.random() * 5) + 1



function checkVideoAdd1(form)
{
	if( form.oper.value == 'cancel' )
		return true;
	
	if( form.name.value == '' )
	{
		infoBox( 'Dodawanie video','Video musi zawierać nazwę!' );
	//	form.name.focus();
		
		return false ;		
	}
	if( form.name.value.length > 100 )
	{
		document.getElementById( 'name_label' ).style.color = 'red';
		form.name.focus();
		
		return false ;		
	}
	if( form.descrip.value.length > 300 )
	{
		document.getElementById( 'descrip_label' ).style.color = 'red';
		form.descrip.focus();
		
		return false ;		
	}
	if(!checkTags()){ 
		infoBox( 'Dodawanie video','Do video musi być przypisany przynajmniej jeden tag!' );
		return false ;
		}		
	return true;
}

function checkVideoAdd2(form)
{
	
	if( form.oper.value == 'cancel' )
		return true;
	
	if( form.plik_video.value == '' )
	{
		infoBox( 'Dodawanie video','Wybierz video, które chcesz dodać!' );
	//	form.plik_video.focus();
		
		return false ;		
	}else{
		document.getElementById('loader').style.visibility = 'visible';	
		return true;		
	}	
	

	
//	return false;
}


