// JavaScript Document
function ResizeWindowFromImg(){
x = cpimg.width;
y = cpimg.height;
window.resizeTo(x+34, y+84);
}
function switchImage(imgName, imgSrc) {
if (document.images){if (imgSrc != "none"){document.images[imgName].src = imgSrc;}}
}
function MX_lite(obj) {
if (document.all&&!window.opera) {obj.filters.blendTrans.apply();obj.filters.blendTrans.play();} 
}
function openw(url,width,height,resizable,scrollbars){
popup = window.open(url,"cpwin","height="+height+",width="+width+",toolbar=0,directories=0,menubar=0,status=0,resizable="+resizable+",location=0,scrollbars="+scrollbars+",copyhistory=0")
if (window.focus) {popup.focus();}
}
function viewnews(url){
openw(url,518,400,0,1);
}
function gotourl(url){
location.href = url;
}
function deleteitem(url){
var rslt = confirm('Sei sicuro di cancellare questo elemento?');
if (rslt==true){gotourl(url)}
}

