 <!-- 
 
 // CALENDARIO
 
 function dtPicker_onMouseOver(oDiv){
		new Rico.Effect.FadeTo( oDiv , .2  , 100, 10, {complete:function(){new Rico.Effect.FadeTo( oDiv , 1 , 100, 10);}})
	}
	
	function dtPicker_onMouseOut(oDiv){
		new Rico.Effect.FadeTo( oDiv , .8 , 100, 10);
	}
 
 function pushDay(iDay){
		
		var oTxtD = document.getElementById("txtDayPushed");
		var oTxtM = document.getElementById("txtMonthPushed");
		var oTxtW = document.getElementById("txtWhat");
		
		oTxtM.value= "";
		oTxtD.value= iDay;
		oTxtW.value = "day"
		
		submitForm();
		
	}
	
	function pushMonth(iDay){
	
		var oTxtD = document.getElementById("txtDayPushed");
		var oTxtM = document.getElementById("txtMonthPushed");
		var oTxtW = document.getElementById("txtWhat");
		
		oTxtM.value= iDay;
		oTxtD.value= "";
		oTxtW.value = "month";
		
		submitForm();
	
	}
	
	function pushTypes(){
		
		var contEventos = document.getElementById("tableEventosCheck")
		var oListCheck = contEventos.getElementsByTagName('INPUT');
		var oTxtH = document.getElementById("txtEventsTypes");
		
		oTxtH.value=",";
		
		 for (var i = 0; i < oListCheck.length; i++ ){ 
			if (oListCheck.item(i).checked == true)
			{
				oTxtH.value = oTxtH.value + oListCheck.item(i).id + "," ;
			}
		 }
		 
	}
	
	function actualiza(){
		var oTxtW = document.getElementById("txtWhat");
		oTxtW.value = "button";
		submitForm();
	}
	
	function submitForm(){
	
		var oFrm = document.getElementById("Form1");
		oFrm.submit();
	
	}
	
	// Fin calendario 
 
 
 function busquedad(){
	var oInput = document.getElementById('buscaAll');
	if  (oInput.value == '' ){location.href='ver_busquedas.aspx?id=8';}
	if  (oInput.value != '' ){location.href='ver_busquedas.aspx?id=8&criterio='+oInput.value;}
}

function seePic(idPic){
	AbreVentana("ver_imagen.aspx?id=" + idPic ,"", 665, 760, true);
}
	
function hidePic(){

	window.close();
}


function doTip(descripcion)
	{
		var sHtml = "";
		var sTitle = "";
		sTitle = "Mensaje";
		Text[0]=[sTitle, descripcion];
		stm(Text[0],Style[13]);
	}
	
	
	// Abre una popup centrada en la pantalla
	// parametros : 
	// -----------> URL_Ventana : url pagina 
	// -----------> OpcionesVentana : width, heigh, scroll etc (ver window.open())
	// -----------> Centrada : true or false
	// -----------> PosX, PosY : si centrada=false especifican las coordenadas de la ventana
	// --------------------------------------------------------------------------------------//
	function AbreVentana(URL_Ventana, OpcionesVentana, Ancho, Alto, Centrada, PosX, PosY) {

	if (Centrada) {
		PosX = (screen.availWidth)? ((screen.availWidth - Ancho)/2):20;
		PosY = (screen.availHeight)? ((screen.availHeight - Alto)/2):20;
		}
		
	if (OpcionesVentana == '')
		OpcionesVentana = 'width=' + Ancho;
	else
		OpcionesVentana += ',width=' + Ancho;

	OpcionesVentana += ',height=' + Alto + ',left=' + PosX
		+ ',top=' + PosY;
		
	return window.open(URL_Ventana, "", OpcionesVentana);
	
	}
	
	
	// Flooble.com's Animated Text script. Will animate a specified 
	// bit of text (determined by the ID of containing tag) by 
	// highlighting it with specified color one character at a time 
	// in a moving pattern.
	//
	// Summary of use: 
	//     call animate(tagID, color); where "tagID" is the ID 
	//     of the tag that contains text to be animated,
	//     and "color" is the color to use to highlight the text with.
	//
	// For more information, and detailed instructions, see 
	//     http://www.flooble.com/scripts/animate.php
	//
	// Copyright (c) 2002 by Animus Pactum Consulting Inc.
	// This script comes with no warranties whatsoever. 
	// Animus Pactum Consulting will not be responsible
	// for any damages resulting from its use.

        var ie4 = false;
        var isAnimated = false;
        if(document.all) {
                ie4 = true; 
        }       
        function setContent(name, value) {
                var d;  
                if (ie4) { 
                        d = document.all[name];
                } else {
                        d = document.getElementById(name);
                }       
                d.innerHTML = value;
                d.style.display = 'block'; 
        }       

	function getContent(name) {
		var d;
                if (ie4) {
                        d = document.all[name];
                } else {
                        d = document.getElementById(name);
                }
                return d.innerHTML;
	}

        function setColor(name, value) {
                var d;  
                if (ie4) { 
                        d = document.all[name];
                } else {
                        d = document.getElementById(name);
                }
                d.style.color = value;  
        }

	function getColor(name) {
                var d;
                if (ie4) {
                        d = document.all[name];
                } else {
                        d = document.getElementById(name);
                }
                return d.style.color;
        }

        function animate(name, col) {
		var value = getContent(name);
		if (value.indexOf('<span') >= 0) { return; }
		if (isAnimated) { return; }
		if (document.getElementById("txtFormBuscar").value != '' ) {
		isAnimated = true;
		var length = 0;
                var str = '';
		var ch;
		var token = '';
		var htmltag = false;	
                for (i = 0; i < value.length; i++) {
			ch = value.substring(i, i+1);
			if (i < value.length - 1) { nextch = value.substring(i+1, i+2); } else { nextch = ' '; }
			token += ch;
			if (ch == '<' && '/aAbBpPhHiIoOuUlLtT'.indexOf(nextch) >= 0) { htmltag = true; }
			if (ch == '>' && htmltag) { htmltag = false; }
			if (!htmltag && ch.charCodeAt(0) > 30 && ch != ' ' && ch != '\n') {		
                        	str += '<span id="' + name + '_' + length + '">' + token + '</span>';
				token = '';
				length++;
			}
                }
                setContent(name, str);
                command = 'animateloop(\'' + name + '\', ' + length + ', 0, 1, \'' + col + '\')';
                setTimeout(command , 100);
            }
        }

        function animateloop(name, length, ind, delta, col) {
		var next = ind + delta;
		if (next >= length) { delta = delta * -1; next = ind + delta; }
		if (next < 0) { delta = delta * -1; next = ind + delta; }
                setColor(name + '_' + ind, getColor(name + '_' + next));
                setColor(name + '_' + next, col);
                command = 'animateloop(\'' + name + '\', ' + length + ', ' + next + ', ' + delta + ', \'' + col + '\')';
                setTimeout(command , 100);
        }
       
       
 /*                    URL COVERTER                */ 
        
var hexVals = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9",
              "A", "B", "C", "D", "E", "F");
var unsafeString = "\"<>%\\^[]`\+\$\,";
// deleted these chars from the include list ";", "/", "?", ":", "@", "=", "&" and #
// so that we could analyze actual URLs

function isUnsafe(compareChar)
// this function checks to see if a char is URL unsafe.
// Returns bool result. True = unsafe, False = safe
{
if (unsafeString.indexOf(compareChar) == -1 && compareChar.charCodeAt(0) > 32
    && compareChar.charCodeAt(0) < 123)
   { return false; } // found no unsafe chars, return false
else
   { return true; }
}

function decToHex(num, radix)
// part of the hex-ifying functionality
{
var hexString = "";
while (num >= radix)
      {
       temp = num % radix;
       num = Math.floor(num / radix);
       hexString += hexVals[temp];
      }
hexString += hexVals[num];
return reversal(hexString);
}

function reversal(s) // part of the hex-ifying functionality
{
var len = s.length;
var trans = "";
for (i=0; i<len; i++)
    { trans = trans + s.substring(len-i-1, len-i); }
s = trans;
return s;
}

function convert(val) // this converts a given char to url hex form
{ return  "%" + decToHex(val.charCodeAt(0), 16); }


function encodeUrl(val)
// changed Mar 25, 2002: added if on 122 and else block on 129 to exclude Unicode range
{
var len     = val.length;
var backlen = len;
var i       = 0;

var newStr  = "";
var frag    = "";
var encval  = "";
var original = val;

    for (i=0;i<len;i++)
        {
          if (val.substring(i,i+1).charCodeAt(0) < 255)  // hack to eliminate the rest of unicode from this
             {
              if (isUnsafe(val.substring(i,i+1)) == false)
                 { newStr = newStr + val.substring(i,i+1); }
              else
                 { newStr = newStr + convert(val.substring(i,i+1)); }
             }
          else // woopsie! restore.
             {
               alert ("Found a non-ISO-8859-1 character at position: " + (i+1) + ",\nPlease eliminate before continuing.");
               document.forms[0].state.value = "none";
               document.forms[0].enc[0].checked = true; // set back to "no encoding"
               newStr = original; i=len;                // short-circuit the loop and exit
             }
        }

  
    return newStr;
}

function getUrl(image, size, oImg){

	alert (image);

	var sReturn = "giveMeThumb.aspx?image=";
	sReturn += encodeUrl(image) + "&size=" + size;
	oImg.src = sReturn;

}

-->