﻿// JScript File


<!--


function conferma(pQuestion,pHref)
{
    if (window.confirm(pQuestion))
        location.href=pHref	   
	else
		return false
}




//non usate


function cambia(ImageName,ImageFile){
        ImageName.src = ImageFile;
      }



function windows (str) {
        searchWin = window.open(str, '', 'menubar=no,scrollbars=no,resizable=no,status=no,location=no,width=450,height=300');
	}
function windows_res (str,width,height) {
        searchWin = window.open(str, '', 'menubar=no,scrollbars=yes,resizable=yes,status=no,location=no,width='+ width +',height='+ height);
	}
	
function Dettaglio_notizia (str,width,height) {
        searchWin = window.open(str, 'Dettaglio_notizia', 'menubar=no,scrollbars=yes,resizable=yes,status=no,location=no,width='+ width +',height='+ height);
	}
function windows_Esporta (str) {
        searchWin = window.open(str, '', 'menubar=yes,scrollbars=yes,resizable=yes,status=no,location=no,width=950,height=650,left=10, top=1');
	}		
function Elimina(strDomanda,strHref) {
	
	if (window.confirm(strDomanda))
		location.href=strHref		
}

function Link(strHref) {
	location.href=strHref		
}

function ricarica() {
	document.frmreload.submit()
}

function status(str) {
	window.status=str;
	return true
}

var subwindow=0;

function attendere(VarPrefix) 
{
var Varpath='attendere.asp';
Varpath=VarPrefix+Varpath;

	subwindow=window.open(Varpath,'subwindow', 'menubar=no,scrollbars=no,resizable=no,status=no,location=no,width=292,height=80,left=400, top=300');
	
}

function closesubwindow()
{
  if(subwindow)
  {
    if(!subwindow.closed) subwindow.close();
  } 
}



function disableRightClick(e)
{
  var message = "Riprova sarai più fortunato...";
  
  if(!document.rightClickDisabled) // initialize
  {
    if(document.layers) 
    {
      document.captureEvents(Event.MOUSEDOWN);
      document.onmousedown = disableRightClick;
    }
    else document.oncontextmenu = disableRightClick;
    return document.rightClickDisabled = true;
  }
  if(document.layers || (document.getElementById && !document.all))
  {
    if (e.which==2||e.which==3)
    {
      alert(message);
      return false;
    }
  }
  else
  {
    alert(message);
    return false;
  }
}
//disableRightClick();

function printPage() 
{ print(document); }

function setStatusBar(msgStr) 
{ self.status = msgStr; }

var popupnota=0;
function load_nota(URLStr,width,height)
{
 // if(popUpWinn)
  //{
   // if(!popUpWinn.closed) popUpWinn.close();
  //}
  popupnota = open(URLStr, 'popupnota', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left=0, top=0,screenX=0,screenY=0');
}

var popupfoto=0;
function load_foto(URLStr,width,height)
{
 // if(popUpWinn)
  //{
   // if(!popUpWinn.closed) popUpWinn.close();
  //}
  popupfoto = open(URLStr, 'popupfoto', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left=0, top=0,screenX=0,screenY=0');
}





function bookmarksite(title, url){
    if (document.all)
        window.external.AddFavorite(url, title);
    else if (window.sidebar)
        window.sidebar.addPanel(title, url, "")
}


//-->



