    function abrirModal(url)
    {
      if (window.showModalDialog) {
        // Estas características se deben definir en función de las necesidades
        var caracteristicas = "dialogTop=100px;dialogLeft=300px;dialogWidth=500px;" +
        "dialogHeight=500px;status=no;scroll=yes;resizable=no;help=no;";
        window.showModalDialog(url, "modal", caracteristicas);
        //window.showModalDialog(url, self, caracteristicas);
      }
      else
      {
        // Estas características se deben definir en función de las necesidades,
        // salvo las que están en negrita, que debemos dejar
        var caracteristicas = "height=500, width=450, toolbar=0, directories=0," +   
        "status=0, linemenubar=0, modal=yes, left=200, top=100, dialog=yes," +       
        "resizable, scrollbars";
        //NuevaVentana = window.open(url,'modal',caracteristicas);
        NuevaVentana = window.open(url,self,caracteristicas);
        NuevaVentana.moveTo(100,100);
        NuevaVentana.focus();
        
      }
    }
    
    
    
function abrirModal1(strUrl){
var URL= strUrl;  // Relative page location of page in the modal dialog
var SizeX= "45";  // Height
var SizeY= "50";  // Width
var PosX= "1";  // X Coordinate [required even if modal dialog centered]
var PosY= "1";  // Y Coordinate [required even if modal dialog centered]
var PosC= "yes";  // (yes/no) Centers the window. [Overrides PosX/Y] [Not Avail. in Degrade]
var CSize= "no";  // Resizeable? (yes/no)
var ScrollB= "Yes";  // Scrollbar? (yes/no)
var dialog_Arguments= "";  // String, numeric, object, or array value. [See script notes, below]


var calcCWIN_X= (screen.width-400)/2;
var calcCWIN_Y= (screen.height-400)/2;
if (PosC=="yes") { //Change to center window position
	dialog_Pos_Cexclude="";
	popup_XY= "left=" +calcCWIN_X+ " top=" +calcCWIN_Y+ ""; }
else { //Change to x,y position
	dialog_Pos_Cexclude= "dialogLeft:" +PosX+ ";dialogTop:" +PosY+ ";"
	popup_XY= "left=" +PosX+ " top=" +PosY+ "";
}
if (navigator.appName!="Microsoft Internet Explorer") {
	window.open(URL, "_blank", "height=" +SizeX+ " width=" +SizeY+ "" +popup_XY+ " resizeable=" +CSize+ " scrollbars=" +ScrollB, "", false); }
if (navigator.appName=="Microsoft Internet Explorer") { //Make modal instead of popup
	window.showModalDialog(URL, dialog_Arguments, dialog_Pos_Cexclude + "dialogHeight:" +SizeX+ 
	";dialogwidth:" +SizeY+ ";center:" +PosC+ ";resizable:" +CSize+ ";scroll:" +ScrollB+ 
	";status:no;edge:sunken;help:no;"); }


}    