function ir_a(pagina){
	window.location = pagina;	
}

// JavaScript Document
function setIframeHeight(iframeName,alto) {
  var iframeWin = window.frames[iframeName];
  
  var iframeEl = document.getElementById? document.getElementById(iframeName): document.all? document.all[iframeName]: null; 
  
  if(alto==0){
	  if ( iframeEl && iframeWin ) {
		//iframeEl.style.height = "auto";
		var docHt = getDocHeight(iframeWin.document);
		var suma;
		suma=parseInt(docHt)+15;
		
		iframeEl.style.height = suma + "px";
	  }
	  
	  
   }
   else{
	   if ( iframeEl && iframeWin ) {
		var suma;
		suma=parseInt(alto);		
		iframeEl.style.height = suma + "px";
	  }
   }
	  
	 
	 
}

function getDocHeight(doc) {
  var docHt = 0, sh, oh;
  if (doc.height) docHt = doc.height;
  else if (doc.body) {
	if (doc.body.scrollHeight) docHt = sh = doc.body.scrollHeight;
	if (doc.body.offsetHeight) docHt = oh = doc.body.offsetHeight;
	if (sh && oh) docHt = Math.max(sh, oh);
  }
  return docHt;
}

/*Obtiene un elemento de un string*/
function Get(nodo,valor,splitter){
	var myarray=valor.split(splitter);
	return myarray[nodo];
}