
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function popup(htmlfile, nombre, wndWidth, wndHeight) {
	//alert("fichero: " + htmlfile);
  	var popWnd; //Objeto ventana de popup
    	var maxWidth = screen.width-10;
    	var maxHeight = screen.height-56;

    	//Preprocesado de parámetros
    	if (wndHeight==0) wndHeight = maxHeight;
    	if (wndWidth==0) wndWidth = maxWidth;

    	//Calculo de la posición para centrar la ventana
    	var posX = maxWidth/2 - wndWidth/2;
    	var posY = maxHeight/2 - wndHeight/2;

    	if (popWnd) popWnd.close();
   	popWnd = open( htmlfile, nombre, 'resizable=0,toolbar=0,scrollbars=1,location=0,directories=0,status=0,menubar=0,width='+wndWidth+',height='+wndHeight+',screenX=0,screenY=0,left='+posX+',top='+posY);

    	//this.blur();
    	popWnd.focus();
}
