/**
*   @version $Id$
*/

/**--------------------------------------------------------------------
*	modul kontakt
*---------------------------------------------------------------------*/

	/**
	*	Opis: wysyla dane z formularza kontaktowego
	*/
	function submitContactForm( a_txt )
	{
		oName = document.getElementById( "name" ).value;
		oSurName = document.getElementById( "surname" ).value;
		oEmail = document.getElementById( "conemail" ).value;
		oSubject = document.getElementById( "subject" ).value;
		getWysiwyg( 0 );
		oContent = document.getElementById( "wText0" ).value;
		if( ( oName != "" ) && ( oSurName != "" ) && ( oEmail != "" ) && ( oSubject != "" ) && ( oContent != "" ) )
		{
			document.forms.contactForm.submit();
		}
		else
		{
			alert( a_txt );
		}
	}

	/**
	*	Opis: sprawdza, czy formularz kontaktowy zostal poprawnie wypelniony
	*/
	function checkContactForm( a_text )
	{
		if( ( document.getElementById( "imnaz" ).value != "" ) && ( document.getElementById( "email" ).value != "" ) )
		{
			document.forms.kontaktform.submit();
		}
		else
		{
			alert( a_text );
		}
	}

/**-------------------------------------------------------------------*/
