<!--

// ------------------------------------------------------------
// VARIOS JAVASCRIPT UTILES
// Autor: Desarrollos NEA
// Si estas observando estos script quiere decir que quieres obtener
// un poco de codigo de aquí. Adelante...
// ------------------------------------------------------------


//------------------------------------------------------------
//PROTEGER ARCHIVOS 
//------------------------------------------------------------
var TimeID; 
function timer() 
{ window.clipboardData.clearData(); 
timeID = setTimeout("timer()", 100); }



//------------------------------------------------------------
//MENSAJE CON RESPUESTA SI/NO
//------------------------------------------------------------
function MensajePopUp(msg) { //v1.0
  if (confirm(msg))
  	return true;
else
	return false;
  
}






//------------------------------------------------------------------------
//ABRIR VENTANA
//Abre una ventana popup. Con las caracteristicas pasadas como parametro
//y la centra a la pantalla segun sea el navegador (depende como
//se obtiene el tamaño de la pantalla)
//------------------------------------------------------------------------
function AbrirVentana(direccion,nombre,width,height,resize,scroll) {
var dialogWin = new Object();
dialogWin.width = width;
dialogWin.height = height;
now = new Date();
var millis=now.getTime();
var mstr=""+millis;

    //Configurando ventana dependiendo del navegador
    if (navigator.appName == "Netscape") {
	    dialogWin.left = window.screenX + ((window.outerWidth - dialogWin.width) / 2);
	    dialogWin.top = window.screenY + ((window.outerHeight - dialogWin.height) / 2);
	    var atributos = 'screenX=' + dialogWin.left + ',screenY=' + dialogWin.top + ',resizable=' + resize + ',width=' + dialogWin.width + ',height=' + dialogWin.height + ',scrollbars=' + scroll + ',menubar=no,location=no,toolbar=no,status=no,directories=no';
    } else if (document.all) {
	    dialogWin.left = (screen.width - dialogWin.width) / 2;
	    dialogWin.top = (screen.height - dialogWin.height) / 2;
	    var atributos = 'left=' + dialogWin.left + ',top=' + dialogWin.top + ',resizable=' + resize + ',width=' + dialogWin.width + ',height=' + dialogWin.height + ',scrollbars=' + scroll + ',menubar=no,location=no,toolbar=no,status=no,directories=no';
    }
    
    //Abriendo ventana
    win =window.open(direccion,nombre,atributos);
    
    //Focus en la ventana
    win.focus()    

}


// -------------------------------------------------------------------------------------
//ATRAS
// -------------------------------------------------------------------------------------
function Atras() {
	window.history.go(-1);		
}






// -------------------------------------------------------------------------------------
//Efectos sobre grilla/celda
// -------------------------------------------------------------------------------------
function grillaMouseOver(src,classOver) {
	if (!src.contains(event.fromElement)) {
		src.style.cursor = 'default';//'hand';
		src.className = classOver;
		/*src.bgColor = colorOver;*/
	}
}
function grillaMouseOut(src,classIn) {
	if (!src.contains(event.toElement)) {
		src.style.cursor = 'default';
		src.className = classIn;
		/*src.bgColor = colorIn;*/
	}
}







-->


