
Formular = new Class( {
	trimiteFormular: function() {
		$( 'formContact' ).set( 'send', {
			evalScripts: true,
			onRequest: function() {
				$( 'formContact' ).setOpacity( 0.5 );
			},
			onComplete: function() {
				$( 'formContact' ).setOpacity( 1 );
				if ( this.response.text.indexOf( '<!--succes-->' ) != -1 ) {
					$( 'btTrimiteForm' ).set( 'style', 'display: none;' );
				}
				var that = this;
				$( 'divCampuri' ).set( 'html', that.response.text );
			}
		} );
		$( 'formContact' ).send();
	}
} );
