
function abrirventana(aURL, width, height, centrar) {
 var lugar = aURL;
 var _width = width;
 var _height = height;  
 var _centrar = centrar;
 var _left = 0;
 var _top = 0;
 if (_centrar = 1)
 {
    _left = (screen.Width - _width) / 2;
    _top = (screen.Height - _height) / 2;
 }
new_window = window.open(lugar, 'pass', 'width='+ _width +',height='+ _height +',toolbar=0,location=0,status=0,menubar=0,scrollbars=1,top='+ _top +',left='+ _left +',resizable=1');
 
}

function abrirventana2(aURL, width, height, centrar, toolbar, location, status, menubar, scrollbars, resizable ) {
 var lugar = aURL;
 var _width = width;
 var _height = height;  
 var _centrar = centrar;
 var _left = 0;
 var _top = 0;
 var _toolbar = toolbar;
 var _menubar = menubar;
 var _location = location;
 var _status = status;
 var _scrollbars = scrollbars;
 var _resizable = resizable;
 if (_centrar = 1)
 {
    _left = (screen.Width - _width) / 2;
    _top = (screen.Height - _height) / 2;
 }
new_window = window.open(lugar, 'pass', 'width='+ _width +',height='+ _height +',toolbar='+ _toolbar +',location='+ _location +',status='+ _status +',menubar='+ _menubar +',scrollbars='+ _scrollbars +',top='+ _top +',left='+ _left +',resizable='+ _resizable +'');
}

function AbrirVentana3(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function Seleccionar(theField) {
var tempval=eval("document.forms[0]."+theField)
tempval.focus()
tempval.select()
}

        function hacerpostback() {
            var theForm = document.forms['aspnetForm'];
                if (!theForm) {
                    theForm = document.aspnetForm;
                }        
            theForm.submit();
        }