<!--

function submitGuestbookForm()
{
	obj = document.guestbook;
	numele = obj.gbNumele.value;
	email = obj.gbEmail.value;
	mesaj = obj.gbMesaj.value;
	snr = obj.secnr.value;
	hsnr = obj.hidden_secnr.value;
	
	if (numele=='' || email=='' || snr=='' || mesaj=='') showAlert(ALERT_ALL_FIELDS_ARE_REQUIRED);
	else if (snr!=hsnr) showAlert(ALERT_INVALID_SECURITY_NUMBER);
	else {
		docTitle(DOCTITLE_GUESTBOOK_SEND_MESSAGE);
		postData  = 'gb_numele=' + numele;
		postData += '&gb_email=' + email;
		postData += '&gb_mesaj=' + mesaj;
		postData += '&secnr=' + snr;
		postData += '&hidden_secnr=' + hsnr;
		YAHOO.request.post('guestbookForm',URL_ROOT+'ajax/guestbook/form.php',postData,'guestbook');
	}
}

-->
