//---------  Javascript for PACE ----------

function getId(str)
{
    return str.substr(str.indexOf("|")+1)
}

function getValue(str)
{
    var str = str.split("|");
    return str[0];    
}

function Visualizza(i, s, b, m){
    if (i == 0){
        window.document.frmInvia.dest.value = "demo";
        window.document.frmInvia.br.value = b;
        window.document.frmInvia.mod.value = m;
        window.document.frmInvia.doc.value = s;
        window.document.frmInvia.target = "DemoVisualizza";
        window.open('','DemoVisualizza','toolbar=no,location=no,menubar=no,resizable=no,scrollbars=no,height=700,width=600');
    }
    else{
       window.document.frmInvia.dest.value="pdf"; 
        window.document.frmInvia.doc.value = s;
        window.document.frmInvia.target = "PdfVisualizza";
        window.open('','PdfVisualizza','resizable=yes,height=690,width=570');
    }
    window.document.frmInvia.submit();
}



function Next(s){
    window.document.frmInvia.p.value = s;
    window.document.frmInvia.action = "/190/pace/Telefoni3D.do";
    window.document.frmInvia.target = "_self";
    window.document.frmInvia.submit();
}