function sendRequest(result,form) {
	if (result) {
	document.getElementById('formSubmit').style.display = 'none';
	new Ajax.Request("sendForm.php", 
		{ 
		method: 'post', 
		postBody: 'f-tresc='+ $F('f-tresc') + '&f-name='+ $F('f-name')  + '&f-company='+ $F('f-company')  + '&f-email='+ $F('f-email')  +  '&f-taxnumber='+ $F('f-taxnumber')  + '&f-city='+ $F('f-city') + '&f-code='+ $F('f-code')  + '&f-street='+ $F('f-street')  + '&f-telefon='+ $F('f-telefon') + '&f-produkt='+ $F('f-produkt')+ '&f-produkt-id='+ $F('f-produkt-id')+ '&f-produkt-id2='+ $F('f-produkt-id2'),
		onComplete: showResponse 
		});
	}
}

function showResponse(req){	
	if (req.responseText!='Błąd')
	$('sendForm').innerHTML = req.responseText;	
	else
	$('sendForm').innerHTML = 'Błąd, wypełnij formularz prawidłowo' + $('sendForm').innerHTML;	
	
}
