function abrirPopTerminos(direccio,titol,wi,he)
{

var w=600;
var h=310;
if(wi!=undefined){
    w=wi
}
if(he!=undefined){
   h=he
}
var win = new Window({className: "magento", title: titol,
width:w, height:h,
destroyOnClose: true,
url: direccio, showEffectOptions: {duration:1.5}});
win.showCenter(true);
return true;
}
function abrirPopContenido(contenido,titol,wi,he)
{

var w=600;
var h=410;
if(wi!=undefined){
    w=wi
}
if(he!=undefined){
   h=he
}
contenido=contenido.split("<p>");
contenido=contenido[0];
var win = new Window({className: "magento", title: titol,
width:w, height:h,
destroyOnClose: true,
showEffectOptions: {duration:1.5}});
win.getContent().update(contenido.replace(/#3/gi,'"'));//por si lo pasamos con codificació propia
win.showCenter(true);
return true;
}
