// JavaScript Document

function expandir(id)
{
var obj = objHtml(id)
if (miNavegador.standard)
   {
    if (obj.style.display == "none")
       obj.style.display = 'block';
    else
       obj.style.display = 'none';
   }
else
   {
    if (obj.display == "none")
       obj.display = 'block';
    else
       obj.display = 'none';
   } 
}
function objHtml(n, d) { 
  var p,i,x;  
  if(!d) d=document; 
  if (miNavegador.standard)
	  x = d.getElementById(n)	
  if(!(x=d[n]) && miNavegador.IE) 
      x=d.all[n]; 
  for (i=0; !x && i<d.forms.length; i++) 
      x=d.forms[i][n];
  for(i=0; !x && d.layers &&i< d.layers.length; i++) 
      x=objHtml(n,d.layers[i].document); 
  return x;
}
window.miNavegador = new oNavegador()
window.miNavegador.iniciar();
function oNavegador(  ) {
	this.nombre = navigator.appName;
	this.iniciar = iniciar;
	this.IE = this.nombre.toUpperCase().indexOf('MICROSOFT') >=0;
	this.NS = this.nombre.toUpperCase().indexOf('NETSCAPE') >=0;
	this.OP = this.nombre.toUpperCase().indexOf('OPERA') >= 0;
	this.XX = !this.IE && !this.NS && !this.OP;
	this.version = this.iniciar();
	this.Verent = parseInt(this.version);
	this.standard = (this.IE && this.Verent >=5) || (this.NS && this.Verent >=6)


  function iniciar() {
  var ver = navigator.appVersion;
  if(ver+"" != "NaN")
	if (this.IE)
		{
		ver.match(/(MSIE)(\s*)([0-9].[0-9]+)/ig);
  		ver = RegExp.$3;
		}
  return ver;
  } //Termina la funcion iniciar el objeto
}

function ver(id)
{
var obj = objHtml(id)
if (miNavegador.standard)
   {
		obj.style.display = 'block';
   }
else
   {
       obj.display = 'block';
   } 
}

function no_ver(id)
{
var obj = objHtml(id)
if (miNavegador.standard)
   {
		obj.style.display = 'none';
   }
else
   {
       obj.display = 'none';
   } 
MM_swapImgRestore();
}

function jumpTo(URL_List){
   var URL = '/cipco/site/p_contenido.php?id_sec=2&ciudad=' + URL_List.options[URL_List.selectedIndex].value;
   window.location.href = URL;
}

function mostrar(id){
	document.getElementById(id).style.display = 'block';
}

function esconder(id){
	document.getElementById(id).style.display = 'none';
}
function jumpToZ(nt) {

 if (nt=="0") {
    var url = "http://www.admicond.com.ve/helpdesk";
   }
 if (nt=="1") {
    var url = "http://www.admicond.com.ve/~nobot/~forum/";
   }
 if (nt=="2") {
    var url = "http://www.admicond.com.ve/Docs/Manual40/?Doc0=2";
   }
 if (nt=="3") {
    var url = "http://www.admicond.com.ve/louis-microsystems/help/";
   }
 if (nt=="4") {
    var url = "http://www.admicond.com.ve/general/defUsuarioAliado.asp";
   }
   //var url = "http://www.admicond.com.ve/~nobot/~forum/";
   window.open(url,"","menubar=no,toolbar=no,width=650,height=450,fullscreen=no,directories=no,resizable=yes,scrollbars=yes,titlebar=no,left=60,top=30,status=no");
}

function jumpToCustomers(nt) {

 if (nt=="0") {
    var url = "http://www.admicond.com.ve/helpdesk";
   }
 if (nt=="1") {
    var url = "http://www.admicond.com.ve/~nobot/~forum/";
   }
 if (nt=="2") {
    var url = "http://www.admicond.com.ve/Docs/Manual40/?Doc0=2";
   }
 if (nt=="3") {
    var url = "http://www.admicond.com.ve/Docs/Manual20/";
   }
 if (nt=="4") {
    var url = "http://www.admicond.com.ve/general/defUsuarioAliado.asp";
   }
   //var url = "http://www.admicond.com.ve/~nobot/~forum/";
   window.open(url,"","menubar=no,toolbar=no,width=650,height=450,fullscreen=no,directories=no,resizable=yes,scrollbars=yes,titlebar=no,left=60,top=30,status=no");
}

function jumpToServices(nt) {
 
 if (nt=="0") {
    var url = "../general/Servicios.asp";
   }

 window.open(url,"","menubar=no,toolbar=no,width=650,height=450,fullscreen=no,directories=no,resizable=yes,scrollbars=no,titlebar=no,left=60,top=30,status=no");

}

function validate()
{
 if (document.Registro.login.value=="") {
    alert("Por favor escriba su login o nombre de usuario");
    return false;
   }
 if (document.Registro.clave.value=="") {
    alert("Por favor escriba su clave secreta o password");
    return false;
   }
}

function OpenWin(ht) {
  window.open(ht,"","height=480,width=565,menubar=no,location=no,fullscreen=no,directories=no,resizable=no,scrollbars=yes,titlebar=No,left=100,top=45,status=yes");
}