function stampaRamo(numDoc,theArch,accountPath,theHost,mode,theGestWebApp){
if(theGestWebApp == null || theGestWebApp == '')
	theGestWebApp = 'RegestaDAMS_JMSProducer';
	percorso = '/'+theGestWebApp+'/gestione/stampaRamo.jsp?theDb='+theArch+'&docNumber='+numDoc+'&accountPath='+accountPath+'&theHost='+theHost+'&mode='+mode

	if(parent.document.esitoForm != null)
		if(parent.document.esitoForm.selid.value != '')
			percorso += '&selid='+parent.document.esitoForm.selid.value

	laStampa=window.open(percorso,'stampa','toolbar=no,location=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=250,height=250')
   	laStampa.focus()
   	return false;
}
function PDFPrinter(theArch,theWebApp,level,numDoc_phrase,mail){
	
	if(parent.document.esitoForm != null){
		if(parent.document.esitoForm.selid.value != ''){
			percorso = '/'+theWebApp+'/print/printer.jsp?PDFXMLArchive='+theArch+'&userLevel='+level+'&PDFPhrase='+parent.document.esitoForm.selid.value+'&PDFMail='+mail+'&theWebApp='+theWebApp;
		}else{
		     percorso = '/'+theWebApp+'/print/printer.jsp?PDFXMLArchive='+theArch+'&userLevel='+level+'&PDFNdoc='+numDoc_phrase+'&PDFMail='+mail+'&theWebApp='+theWebApp;   
		}	
        }else{
             percorso = '/'+theWebApp+'/print/printer.jsp?PDFXMLArchive='+theArch+'&userLevel='+level+'&PDFNdoc='+numDoc_phrase+'&PDFMail='+mail+'&theWebApp='+theWebApp;
        }
	
   	
        laStampa=window.open(percorso,'stampa','toolbar=no,location=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=400,height=400')
   	laStampa.focus()
   	
   	return false;
}

function importaZip(numDoc,theArch,userPermis,accountPath){
	percorso = 'ZipUpload.jsp?theArch='+theArch+'&physDoc='+numDoc+'&accountPath='+accountPath+'&userPermis='+userPermis

	uploadModule=window.open(percorso,'stampa','toolbar=no,location=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=350,height=250')
   	uploadModule.focus()
   	return false;
}
function evidenziaDocumento(){

	if(parent.leftArea.document != null && parent.leftArea.pageLoaded){
		parent.leftArea.evidenziaDocumentoInList()
		
	}
	else
		setTimeout("evidenziaDocumentoInList()",100);
}


function evidenziaDocumentoInList(){

	if(parent.schedaBreve.document.theForm != null)
	{
		//alert(parent.schedaBreve.document.theForm['physDoc'])
		documento = parent.schedaBreve.document.theForm['physDoc'].value
		obj = document.getElementById('anchor'+documento)
		//alert('')
		if(obj != null)
			settaDocumento(obj)
	}
	return true
}


function svuotaAppunti(){
 
}


function scriviAppunti(){
 
}


function unisci(phydoc,theDb,theWebApp,theElement,theRule,theGestWebApp){
 
}


function modificaMulti(phydoc,theDb,theWebApp,theElement,ilCodice,accountPath,theEmail,theGestWebApp,selid,selectedElements){
 
}


function riordina(phydoc,theDb,theWebApp,theElement,accountPath,theGestWebApp){ 
}


 
function visXML(docNumber,theArch){
	window.open('xml.jsp?theDb='+theArch+'&docNumber='+docNumber,'visXML','toolbar=yes,location=no,status=yes,scrollbars=yes,resizable=yes,width=400,height=400');
	return false;
}

function edtXML(docNumber,theArch){ 
}
function edtControl(docNumber,theArch){ 
}

function edtChiavi(docNumber,theArch){}


function incolla(doveIncolla,flag,theDb,accountPath,theGestWebApp){}

function taglia(phydoc,descrizio,docFather,copia){ 
}

function tagliaMultiplo(action,theElement,theRule,theWebApp,theGestWebApp){}

