function confirmAction(action_type, item, name)
{
	// var aditional_str = '';
	if(action_type == 'delete')
	{
		action_type = 'ştergeţi';
	}
	else if(action_type == 'invalidate')
	{
		action_type = 'marcaţi ca expirat';
	}
	else if(action_type == 'block')
	{
		action_type = 'blocaţi';
	}
	if(item == 'ad')
	{
		item = 'anunţul';
	}
	else if(item == 'msgs')
	{
		item = 'mesajele de la acest client';
	}
	
	var retVal = '';
	if(name == null || name == '')
	{
		// retVal = confirm(aditional_str + 'Are you sure you want to ' + action_type + ' ' + item + '?');
		retVal = confirm('Sunteţi sigur că doriţi să ' + action_type + ' ' + item + '?');
	}
	else
	{
		retVal = confirm('Sunteţi sigur că doriţi să ' + action_type + ' ' + item + ' "' + decodeURIComponent(name) + '"?');
	}
	return retVal;
}

function da_link(ael, titlu) 
{ 
	var txt = 'Anunţ de pe AnunturiGarla.ro : '; 
	if(titlu) 
	{ 
		txt = titlu; 
	}
	if(ael == null || ael.rel == null) 
	{ 
		document.location = 'ymsgr:im?msg=Un anunţ interesant aici: http://www.anunturigarla.ro .'; 
	} 
	else 
	{ 
		document.location = 'ymsgr:im?msg=' + txt + ael.rel + ' .'; 
	}
}

function onSubmit() 
{ 
	var el = document.getElementById('sbtn'); 
	if(el) 
	{ 
		el.disabled = true;
	} 
	return true; 
}
