function checkEmailForm()
{

	var emailName = document.getElementById( 'emailSenderName');
	var emailEmail		= document.getElementById( 'emailEmail');
	var emailText 		= document.getElementById( 'emailText' );

	
	if ( emailName.value == '' || emailEmail.value == '' || emailText.value == '' )
	{
		emailName.style.backgroundColor 	= '#ffe';
		emailEmail.style.backgroundColor 	= '#ffe';
		emailText.style.backgroundColor		= '#ffe';
		
		alert('Vybarvena pole musi byt vyplnena!');
	}
	else
	{
		alert('Clanek byl odeslan');
		var form = document.getElementById( 'emailFormx' );
		form.submit();
	}
}

function checkDiscusionForm()
{
	var AuthorName 	= document.getElementById( 'discusionName' );
	var Text		= document.getElementById( 'discusionText' );
	
	if ( AuthorName.value == '' || Text.Value == '' )
	{
		AuthorName.style.backgroundColor = '#ffe';
		Text.style.backgroundColor = '#ffe';
		alert( 'Vybarvena pole musi byt vyplnena' );
	}
	else
	{
		var form = document.getElementById( 'discusion' );
		form.submit();
	}
}

function changeVisibility( ID )
{
	var Element = document.getElementById( ID );
	if ( Element.style.display == 'none' )
		Element.style.display = 'block';
	else 
		Element.style.display = 'none';
}

function checkContactUSForm()
{
	var Name 		= document.getElementById( 'cUsEmail' );
	var Text		= document.getElementById( 'cUsText' );
	
	if ( Name.value == '' || Text.Value == '' )
	{
		Name.style.backgroundColor = '#ffe';
		Text.style.backgroundColor = '#ffe';
		alert( 'Vybarvena pole musi byt vyplnena' );
	}
	else
	{
		var form = document.getElementById( 'cUsForm' );
		form.submit();
	}
}