// JavaScript Document

function abrirVentana(noti) {
 window.open ("ver-noticia.asp?titular=titular"+ noti +"&noticia=noticia" + noti +"&enlace=enlace" + noti + "","Ofertas"," width=275,height=350,location=0,menubar=0,resizable=0,scrollbars=0,status=0,titlebar=0,toolbar=0");
}

function abrirVentana1(noti) {
 window.open ("http://"+ noti +"","Ofertas"," width=275,height=350,location=0,menubar=0,resizable=0,scrollbars=0,status=0,titlebar=0,toolbar=0");
}
 
function abrirVentana2(inmu) {
 window.open ("ver-inmueble.asp?IdInmueble=" + inmu + "","Inmuebles"," width=600,height=450,location=0,menubar=0,resizable=0,scrollbars=1,status=0,titlebar=0,toolbar=0,left=100, top=100");
}

function abrirVentana3() {
 window.open ("ver-mapa.asp","Inmuebles"," width=608,height=420,location=0,menubar=0,resizable=0,scrollbars=0,status=0,titlebar=0,toolbar=0,left=100, top=100");
}

function abrirVentana4() {
 window.open ("comprar.asp","Inmuebles"," width=600,height=450,location=0,menubar=0,resizable=0,scrollbars=1,status=0,titlebar=0,toolbar=0,left=100, top=100");
}

function abrirVentana5() {
 window.open ("alquilar.asp","Inmuebles"," width=600,height=450,location=0,menubar=0,resizable=0,scrollbars=1,status=0,titlebar=0,toolbar=0,left=100, top=100");
}

function abrirVentana6() {
 window.open ("administrador.asp","Inmuebles"," width=600,height=500,location=0,menubar=0,resizable=0,scrollbars=1,status=0,titlebar=0,toolbar=0,left=100, top=100");
}

function promociones() {
 window.open ("ver-promociones.asp","Inmuebles"," width=600,height=450,location=0,menubar=0,resizable=0,scrollbars=1,status=0,titlebar=0,toolbar=0,left=100, top=100");
}

<!-- Begin
    function formatCurrency(num)
    {
      num = num.toString().replace(/\ |\,/g,'');
      if(isNaN(num)) 
        num = "0";
      cents = Math.floor((num*100+0.5)%100);
      num = Math.floor((num*100+0.5)/100).toString();
      if(cents < 10) 
        cents = "0" + cents;
      for (var i = 0; i < Math.floor((num.length-(1+i))/3); i++)
        num = num.substring(0,num.length-(4*i+3))+'.'+num.substring(num.length-(4*i+3));
      return (' ' + num + ',' + cents);
	  //return (' ' + num + ',' + cents+' €');
    }
    //  End -->
