   getDocumentImage = function (_root_){
	   return "<div align=\"center\"><img src=\""+getPath(_root_)+"imagenes/cargando.gif\" /><br />Cargando informaci&oacute;n...</div>";
   }
   getPath = function (_root_){
	   return (_root_) ? "../" : "";
   }
   crear= function (tag){
      return document.createElement(tag);
   }
   iden = function (id){
      return document.getElementById(id);
   }
   ev = function (evt){
      return (!evt) ? event : evt;
   }
   elemnto = function (evt){
      return evt.srcElement ?  evt.srcElement : evt.target;
   }
   muestraMensaje = function(msg){
	   return alert(msg);
   }
   closedWindow = function (){
	   window.close();
   }
   setFocus = function(campo){
      iden(campo).focus();
   }
   function configurar(){
	  var gko = navigator.userAgent.toLowerCase();
      var cmpForm = new Array();
      cmpForm[0] = "select";
      cmpForm[1] = "textarea";
      for(var i = 0; i < document.forms.length; i++){
         for(var j = 0; j < document.forms[i].elements.length; j++){
            var elemento = document.forms[i].elements[j];
			if(elemento.getAttribute("onfocus")==null){
				if (gko.indexOf('gecko')!=-1)
				   elemento.setAttribute('onfocus','this.style.background="#E8E8EA"');
				else
				   elemento['onfocus']=new Function('this.style.background="#E8E8EA"');
			}
			if(elemento.getAttribute("onblur")==null){
				if (gko.indexOf('gecko')!=-1)
				   elemento.setAttribute('onblur','this.style.background=""');
				else
				   elemento['onblur']=new Function('this.style.background=""');
			}
            if(elemento.type == "text" || elemento.type == "password" || elemento.type == "file"){
               if(elemento.className == "") elemento.className = 'FieldActive';
			   if(elemento.disabled) elemento.className = 'FieldDisabled';
            }else if(elemento.type == "submit" || elemento.type == "button" || elemento.type == "reset"){
               if(elemento.className == "") elemento.className = 'campos';
            }
         }
      }
      for(var w=0;w<cmpForm.length;w++){
         txts = document.getElementsByTagName(cmpForm[w]);
         for(var i = 0; i < txts.length; i++){
            if(txts[i].className == "") txts[i].className = '';
         }
      }
   }
//	window.onload = configurar;
   function colorea(id){
	   var tblTable = iden(id);
	   var tblTR = tblTable.getElementsByTagName("tr");
	   tblTR[0].style.backgroundColor = "#663333";
	   tblTR[0].style.color = "#ffffff";
	   for (i=1; i < tblTR.length ; i++){
		   if (i % 2 == 0){
			   tblTR[i].style.backgroundColor = "#663333";
			   tblTR[i].style.color = "#ffffff";
			}else{
				tblTR[i].style.backgroundColor = "#CCCC99";
				tblTR[i].style.color = "#000000";
			}
		}
	}
	function valida_formularios(arr_cmp,with_msn,arr_msg){
	   for(var x=0;x<arr_cmp.length;x++){
		   if(is_empty(arr_cmp[x])){
			   muestraMensaje(((with_msn) ? arr_msg[x] : "Este campo es requerido"));
		       setFocus(arr_cmp[x]);
			   return false;
		   }
	   }
	   return true;
	}
	
//	colorea("res");
/*

	var message = ""; 
   function clickIE(){
   		if(document.all){
			(message);
			return false;
		} 
   } 
   function clickNS(e){ 
    if (document.layers || (iden && !document.all)){ 
     if (e.which == 2 || e.which == 3){ 
      (message); 
      return false; 
     } 
    } 
   } 
   if (document.layers){
    document.captureEvents(Event.MOUSEDOWN); 
    document.onmousedown = clickNS; 
   } else {
    document.onmouseup = clickNS; 
    document.oncontextmenu = clickIE; 
   } 
   document.oncontextmenu = new Function("return false")

*/


// JavaScript Document// JavaScript Document