// JavaScript Document
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_jumpMenu(targ,selObj,restore){ //v3.1
  if(selObj.options[selObj.selectedIndex].value!=''){
  	eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  	if (restore) selObj.selectedIndex=0;
  }
}

function enviaAccion(targ,url){
	eval(targ+".location='"+url+"'");
}

function refrescarPadre(url){
	if(url!='')
		window.opener.location=url;	
	else window.opener.history.go(0);	
}

function enviaEliminacion(targ,url,msg){

	if(confirm(msg)){
		enviaAccion(targ,url);
	}
}

function Otra_Ventana(desktopURL){
window.open( desktopURL, '_blank', 'height=650,width=600,toolbar=false,location=no,status=no,menubar=no,resizable=no,scrollbars=yes,directories=no');
}

function accionExtrasInvestigacion(url){
	//window.opener.document.personal.accion.value=accion;
	//window.opener.document.personal.submit();
	refrescarPadre(url);
	window.opener.focus();
	window.close();
}
