<!--
	// DataGet 1.0
	// 
	// Justino Martinez, 2000
	// biblioteca@webviva.com
	// http://webviva.com
	//
	// Este JavaScript toma los datos recibidos mediante 
	// un metodo "GET"
	//
	// -----------------------------------------------------------
	// Esta es la cadena que recibimos de la primera pagina
	// es de la forma ?parametro1=valor&parametro2=valor

	var cadena=document.location.search;

	// Le quitamos el interrogante

	cadena=cadena.substring(1,cadena.length);

	// Separamos los distintos &

	var parametros=cadena.split("&");

	// Separamos los =

	var valores=new Array;
	var nombres=new Array;
	var valores_legibles=new Array;
	var temporal= new Array;
	var posicion=null;
	var total=null;
	for (var i=0; i<parametros.length;i++){
		temporal=parametros[i].split("=");
		valores[i]=temporal[1];
		nombres[i]=temporal[0];

		// para presentarlos en pantalla quitamos los signos +
		// que en realidad son espacios y "unescapamos" los 
		// caracteres no convencionales (acentos etc)
		valores_legibles[i]=unescape(valores[i]);
		posicion=valores_legibles[i].indexOf("+");
		while (posicion > -1){
			  total=valores_legibles[i].length;
			  valores_legibles[i]=valores_legibles[i].substring(0,posicion)+" "+valores_legibles[i].substring(posicion+1,total);
			  posicion=valores_legibles[i].indexOf("+");

		}
	    
	}
//-->
// Example: obj = findObj("image1");
function findObj(theObj, theDoc)
{
  var p, i, foundObj;
  
  if(!theDoc) theDoc = document;
  if( (p = theObj.indexOf("?")) > 0 && parent.frames.length)
  {
    theDoc = parent.frames[theObj.substring(p+1)].document;
    theObj = theObj.substring(0,p);
  }
  if(!(foundObj = theDoc[theObj]) && theDoc.all) foundObj = theDoc.all[theObj];
  for (i=0; !foundObj && i < theDoc.forms.length; i++) 
    foundObj = theDoc.forms[i][theObj];
  for(i=0; !foundObj && theDoc.layers && i < theDoc.layers.length; i++) 
    foundObj = findObj(theObj,theDoc.layers[i].document);
  if(!foundObj && document.getElementById) foundObj = document.getElementById(theObj);
  
  return foundObj;
}
function mtop(){
// window.location= "#top"
 window.scroll(0,0)
}

function nivel2(s,o,n){
	window.location='2nivel.htm?seccion='+s+'&opcion='+o+'&num='+n
}

function amplia(){
	obj = document.getElementById("fl");
	obj.height = '820';
}
function reduce(){
	obj = document.getElementById("fl");
	obj.height = '600';
}
function mapa(){
	obj = findObj("fl");
	obj.TCallLabel("/", "accf");
}

function envioF(c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11){
	pagina="formu.htm?c1="+c1+"&c2="+c2+"&c3="+c3+"&c4="+c4+"&c5="+c5+"&c6="+c6+"&c7="+c7+"&c8="+c8+"&c9="+c9+"&c10="+c10+"&c11="+c11
	abre(pagina,350,150)
}

function abre(cual,tw,th) {
	//Movemos al centro
	var windowW = tw;
	var windowH = th;
	var windowX = Math.ceil( (window.screen.width  - windowW) / 2 );
	var windowY = Math.ceil( (window.screen.height - windowH) / 2 );
	var num= Math.round(Math.random(10000)*5000)
	var otro="wSs"+num
	//Abrimos ventana
	window.open(cual,otro,"toolbar=no,location=no,directories=no,menubar=no,status=no,scrollbars=no,width="+ windowW +",height="+ windowH +",top=" + windowY + ",left=" + windowX);

}