<!--
function blockError(){return true;}
window.onerror = blockError;



// SCROLL
var moveSpeed = 20;
var temporizador;

// function scrollDown()
function scrollDown(target, holder)
{
        targetTop = parseInt(document.getElementById(target).offsetTop);
        targetHeight = parseInt(document.getElementById(target).offsetHeight);
        holderHeight = parseInt(document.getElementById(holder).offsetHeight);

        targetBottom = targetTop-(-targetHeight);

        if (targetBottom > holderHeight)
        {
                document.getElementById(target).style.top = targetTop-8;

                myTarget = target;
                myHolder = holder;
                temporizador = setTimeout("scrollDown(myTarget, myHolder)", moveSpeed);
        }
}

// function scrollUp()
function scrollUp(target, holder)
{
        targetTop = parseInt(document.getElementById(target).offsetTop);

        if (targetTop < 0)
        {
                document.getElementById(target).style.top = targetTop-(-8);

                myTarget = target;
                myHolder = holder;
                temporizador = setTimeout("scrollUp(myTarget, myHolder)", moveSpeed);
        }
}


// function scrollStop()
function scrollStop()
{
	clearTimeout(temporizador);
}




function VentanaTxt(URL)
{
window.open(URL, 'muestraVentana',
'width=700, height=300, menubar=no, toolbar=no, location=no, scrollbars=yes, resizable=no')
}

function VentanaImg(URL , ancho , alto) {
var view_width = 700
var view_height = 550
//alert( ancho +"-"+ alto);	
var look='toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width='+view_width+',height='+view_height+','
popwin=window.open("","",look)
popwin.document.open()
popwin.document.write('<title>Acercar</title><head>')
popwin.document.write('<link rel=StyleSheet href="coolstyle.css" type="text/css" media="screen"></head>')
popwin.document.write('<body bgcolor="#FFFFFF" background="picts/background-center.jpg" leftmargin=0 rightmargin=0 topmargin=0 bottommargin=0 marginheight=0 marginwidth=0>')
popwin.document.write('<TABLE cellpadding=0 cellspacing=0 border=0 width="100%" height="100%" ><tr><td align="center">')
popwin.document.write('<center><br>')
popwin.document.write('<TABLE cellpadding=0 cellspacing=0 border=1 bordercolor="F0F0F0"><tr><td>')
popwin.document.write('<img src="'+URL+'" width="'+ancho+'" height="'+alto+'" >')
popwin.document.write('</td></tr></table>')
popwin.document.write('</td></tr><tr><td valign="bottom" align="center">')
popwin.document.write('<br><form><input type=submit value="Cerrar" class="button-popups" onClick=\'self.close()\'></form><br>')
popwin.document.write('</center>')
popwin.document.write('</td></tr></table>')
popwin.document.write('</body>')
popwin.document.close()
}

function CerrarVentana(URL)
{
window.close()
}


// -->




