
// 
// Some sample functions for customization
//

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

$.extend(PM.Custom,

{

    catastoDlgOptions: {width:640, height:480, left:100, top:50,
        resizeable:true, newsize:true,
        container:'pmDlgContainer', name:"Intersezione vincoli su catastale"},

    // Sample Hyperlink function for result window
    openHyperlink: function(layer, fldName, fldValue) {
        switch(layer) {

            default:
                //window.open('incphp/xajax/x_catasto.php?' + fldName + '=' + fldValue);
                var popupUrl = 'incphp/xajax/x_catasto.php?' + fldName + '=' + fldValue;
                PM.Dlg.createDnRDlg(this.catastoDlgOptions, _p('Intersezione vincoli su catastale'), popupUrl);
        }
    },

    showCategoryInfo: function(catId) {
        var catName = catId.replace(/licat_/, '');
        alert('Informazioni sulla categoria: ' + catName);
    },

    showGroupInfo: function(groupId) {
        var groupName = groupId.replace(/ligrp_/, '');
        alert('Informazioni sul layer/group: ' + groupName);
    }

});

