/*.......................................................................................................................................................................................................................................................................................................*/
function Submit()
/*.......................................................................................................................................................................................................................................................................................................*/
{
	new Ajax.Request('/js/code.php', {
		method:'get',
		parameters: $('form').serialize(true),
		onComplete: showResponseA
	});
}
/*.......................................................................................................................................................................................................................................................................................................*/
function SubmitInregistrare()
/*.......................................................................................................................................................................................................................................................................................................*/
{
	new Ajax.Request('/js/code.php', {
		method:'get',
		parameters: $('formi').serialize(true),
		onComplete: showResponseA
	});
}
function showResponseA(req)
{
	if(req.responseText=='ok')
		window.location = 'http://www.pieseopel.ro/cont-date-personale.php';
	else if(req.responseText=='ok1')
	{
		alert('Inregistrare cu success!\n\nVa rugam verificati adresa de e-mail.\nContul va fi procesat de catre un administrator.');
		window.location = 'http://www.pieseopel.ro/';
	}
	else
		//$('error').innerHTML= req.responseText;
		alert(req.responseText);
}
