

/* Script taken from http://www.leemessenger.co.uk - Please do not remove this line */
function ChangeCSSBgImg(newimage,newtitle,newtext,newtitle_en,newtext_en) {
	if (!document.getElementById) return false;
	
	var MyImageElement = "bigimage" //The ID of the element that must contain the image
	var MyImageTextElement = "imagetext" //The ID of the element that must contain the image text
	
	var ImgPath = "url(immagini/sel/big/"+newimage+")" //The file path to your images
	
	if (!document.getElementById(MyImageElement)) return false;
	
	var $header = document.getElementById(MyImageElement);
	
	/*var $headertext = document.getElementById(MyImageTextElement); */
	
	var $headertext = document.forms['form1'].elements['text'];
	var $headertitle = document.forms['form1'].elements['title'];
	
	var $backgroundurl = $header.style.backgroundImage;
	$header.style.backgroundImage = ImgPath;
	$headertext.value = newtext;
	$headertitle.value = newtitle;
	
}


function confirmAction(id)
{
  action = confirm('Sei sicuro di voler cancellare definitivamente l\'immagine?')
  if (action==true)
    location.href = 'imm_delete.php?id='+id;
}



