// JavaScript Document

function establecer_ubicacion(vecUbicacion){
	ubicacion = "<a href='index.asp'>HOME</a>"
	for(var i = 0; i < vecUbicacion.length;i++){
		 ubicacion = ubicacion + " / " + vecUbicacion[i];
	}
	document.getElementById("ubicacion").innerHTML = ubicacion;
}

var popUpEmergente=0;

function popUpWindow(URLStr, left, top, width, height){
	if(popUpEmergente){
   		if(!popUpEmergente.closed) popUpEmergente.close();
  	}
	
	popUpEmergente = open(URLStr, 'popUpEmergente', 'toolbar=no,location=no,directories=no,status=no,menub ar=no,scrollbars=yes,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}

function iniciar_ajax(){
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Su browser no soporta ajax. Contactese con IA.");
      return false;
      }
    }
  }
		
}

function findDOM(objectId) {
if (document.getElementById) {
return (document.getElementById(objectId));}
if (document.all) {
return (document.all[objectId]);}
}

function zoom(type,imgx,sz) {
imgd = findDOM(imgx);
if (type=="+") {
imgd.width += 6;imgd.height += (6*sz);
imgd.height += 6;imgd.width += (6*sz);
}
if (type=="-" && imgd.width > 20) {
imgd.width -= 6;imgd.height -= (6*sz);
} 
}
