/* - - - - - - - - - - - - - - - - - - - - - - -
16/07/03    Paolo ha creato il primo prototipo della funzione di popup

wndPopUp(url/src immagine, Width, Height)

  - - - - - - - - - - - - - - - - - - - - - - - */

//<!--
function wndPopUp(insrc, inW, inH) {
    //defaults
    if (!(inW)) {
        inW = "500"
    }
    if (!(inH)) {
        inH = "500"
    }

    //codifica url
    while (insrc.indexOf("&")!=-1) {
        insrc = insrc.replace("&","%26")
    }

    //alert(insrc+",Finestra dettaglio,width="+inW+", height="+inH)
    var temp = window.open(insrc,"","width="+inW+", height="+inH)
}

//per usi futuri

function wndPopUpFull(insrc, inTitle, inPar) {
    //defaults
    if (!(inPar)) {
        inPar = "width=500, height=800, toolbar=yes, location=no, status=yes, menubar=yes, scrollbars=yes, resizable=yes"
    }

    //codifica url
    while (insrc.indexOf("&")!=-1) {
        insrc = insrc.replace("&","%26")
    }

    var temp = window.open(insrc, inTitle, inPar)
}

//-->

