function modif(id)
{
	if($('#'+id).children('input').size() == 0)
	{
		if(id == 'passwd_form')
		{
			$('#'+id).html('<input type="password" name="'+id+'" value="" /><br /><input type="password" name="'+id+'_2" value="" />');
			$('#'+id).prev().append('<br /><br />'+I6.msg.verification);
		}
		else if(id == 'language_form')
		{
			$('#'+id).html('<select name="'+id+'"><option value="FR">FR</option></select>');
			/*<option value="EN">EN</option>*/
		}
		else
			$('#'+id).html('<input type="text" name="'+id+'" value="'+$('#'+id).html()+'" />');
	}
	$('#post_form').html('<input type="submit" class="bg_btn" value="'+I6.msg.modifier+'" />');
}

function activ_dns()
{
	$('#post_form').html('<input type="submit" class="bg_btn" value="'+I6.msg.enregistrer_les_modifications+'" />');
}

function delete_domain(id)
{
	if(confirm(I6.msg.supprimer_domaine))
		$.post('fr/panel-domaine_mail',{action:'del_domain',id:id},function(data){$('.admin_content').html($(data).find('.admin_content').html())});
}

function delete_subdomain(id)
{
	if(confirm(I6.msg.supprimer_sous_domaine))
		$.post('fr/panel-domaine_mail',{action:'del_domain',id:id},function(data){$('.admin_content').html($(data).find('.admin_content').html())});
}

function delete_mail(id)
{
	if(confirm(I6.msg.supprimer_email))
		$.post('fr/panel-domaine_mail',{action:'del_mail',id:id},function(data){$('.admin_content').html($(data).find('.admin_content').html())});
}

function delete_site(id)
{
	if(confirm(I6.msg.supprimer_site))
		$.post('fr/panel-sites',{action:'del_site',id:id},function(data){$('.admin_content').html($(data).find('.admin_content').html())});
}

function undelete_site(id)
{
	$.post('fr/panel-sites',{action:'undel_site',id:id},function(data){$('.admin_content').html($(data).find('.admin_content').html())});
}

function modif_site(id)
{
	if($('#site_'+id).find('h3').size() > 0)
		$('#site_'+id).html('<input type="text" name="site_input_'+id+'" value="'+$('#site_'+id).find('a').html()+'" />');
	$('#post_form').html('<input type="submit" class="bg_btn" value="'+I6.msg.modifier+'" />');
}

function timer(id,value)
{
	$(id).html(value+'s');
	value--;
	setTimeout(function()
	{
		if(value > 0)
			timer(id,value);
		else
			$(id).parent().hide();
	},1000);
}
