function noti0(){
ventana5=open('noticia39.htm','ventana2','width=480,height=380,scrollbars=1,toolbar=0');
}

function noti1(){
ventana5=open('noticia39.htm','ventana2','width=480,height=380,scrollbars=1,toolbar=0');
}

function noti2(){
ventana5=open('noticia40.htm','ventana2','width=480,height=380,scrollbars=1,toolbar=0');
}

// JavaScript Document

var scObj1 = new scrollObject("scObj1", "Main", 361, 100, "", "up", 1.45, 3, 30, 6000, "scrollClass");

scObj1.block[0]="<table width='100%' border='0' cellpadding='4'><tr><td><img  src='noticias/noti_2010_07_19.jpg' width='80' height='61'></td><td width='82%' rowspan='1'><a href='noticias/pdf/nota_2010_07_19.pdf' target = '_blank'><font face='verdana,arial,sanserif' size='1' color='000000'> <b>Entes recaudadores del Perú <br> participaron de asamblea </b></font></a> </td></tr><tr><td><font face='verdana,arial,sanserif' size='1' color='000000' class='negrita'>&nbsp;<B>19/07/2010</B><br><br><br></font></td></tr></table>"


scObj1.block[1]="<table width='100%' border='0' cellpadding='4'><tr><td><img  src='noticias/satch.jpg' width='80' height='61'></td><td width='82%' rowspan='1'><a href='noticias/pdf/nota.pdf' target = '_blank'><font face='verdana,arial,sanserif' size='1' color='000000'> <b>SATCh capacita a municipalidades  <br>de la provincia de Chiclayo </b></font></a> </td></tr><tr><td><font face='verdana,arial,sanserif' size='1' color='000000' class='negrita'>&nbsp;<B>15/07/2010</B><br><br><br></font></td></tr></table>"


scObj1.block[2]="<table width='100%' border='0' cellpadding='4'><tr><td><img  src='noticias/noticia41.jpg' width='80' height='61'></td><td width='82%' rowspan='1'><a href='../otrasnoticias/otrasnoticias/noticia3.php' target = '_blank'><font face='verdana,arial,sanserif' size='1' color='000000'> <b>EN REUNION DE TRABAJO  <br>Exponen avances del SATCh </b></font></a> </td></tr><tr><td><font face='verdana,arial,sanserif' size='1' color='000000' class='negrita'>&nbsp;<B>12/07/2010</B><br><br><br></font></td></tr></table>"

scObj1.block[3]="<table width='100%' border='0' cellpadding='4'><tr><td><img  src='noticias/noti39.png' width='80' height='61'></td><td width='82%' rowspan='1'><a href='../otrasnoticias/otrasnoticias/noticia2.php' target = '_blank'><font face='verdana,arial,sanserif' size='1' color='000000'> <b>PARA BRINDAR FACILIDADES A LOS  58  MIL CONTRIBUYENTES <br> Entidades financieras se unen a red de pagos del SATCh </b></font></a> </td></tr><tr><td><font face='verdana,arial,sanserif' size='1' color='000000' class='negrita'>&nbsp;<B>05/07/2010</B><br><br><br></font></td></tr></table>"

scObj1.block[4]="<table width='100%' border='0' cellpadding='4'><tr><td><img  src='noticias/balta.jpg' width='80' height='61'></td><td width='82%' rowspan='1'><a href='JavaScript:noti2()'><font face='verdana,arial,sanserif' size='1' color='000000'> <b>SATCh con nuevos beneficios tributarios</b></font></a> </td></tr><tr><td><font face='verdana,arial,sanserif' size='1' color='000000' class='negrita'>&nbsp;<B>01/07/2010</B><br><br><br></font></td></tr></table>"


/* **************************************************************************
*** Don't pass this line ****************************************************
************************************************************************** */
function scrollObject(objName, main, width, height, bkgcol, direct, deccel, begin, speed, pause, classname) {
  this.objName = objName;
  this.main = main;
  this.one = main + "Block1";
  this.two = main + "Block2";
  this.block = new Array();
  this.blockup = 1;
  this.divup = 1;
  this.height = height;
  this.width = width;
  this.bkgcol = bkgcol;
  this.direct = direct;
  this.deccel = Math.max(deccel, 1);
  this.begin = Math.max(Math.min(begin, (direct == "up" || direct == "down") ? height : width), 1);
  this.speed = speed;
  this.pause = pause;
  this.slide = ((direct == "up" || direct == "down") ? height : width) / this.begin;
  this.table = "<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td class=\"" + classname + "\" style=\"width:" + width + "px;height:" + height + "px;\">";
  this.scroll = scroll;
  this.scrollLoop = scrollLoop;
}

function scroll() {if (!document.getElementById) return false;
  document.getElementById(this.main).innerHTML = "<div id=\"" + this.one + "\"></div><div id=\"" + this.two + "\"></div>";
  var divList = [document.getElementById(this.main), document.getElementById(this.one), document.getElementById(this.two)];
  for (var i = 0; i <= 2; i++) {
    if (i > 0) {
      divList[i].style.position = "absolute";
      if (this.direct == "up" || this.direct == "down") {
        divList[i].style.left = "0px";
        divList[i].style.top = (i == 1) ? "0px" : ((this.direct == "up") ? "" : "-") + this.height + "px";
      } else {
        divList[i].style.left = (i == 1) ? "0px" : ((this.direct == "left") ? "" : "-") + this.width + "px";
        divList[i].style.top = "0px";
      } divList[i].innerHTML = this.table + this.block[i - 1] + "</td></tr></table>";
    } else {
      divList[i].style.position = "relative";
      divList[i].style.background = this.bkgcol;
    }
    divList[i].style.width = this.width + "px";
    divList[i].style.height = this.height + "px";
    divList[i].style.overflow = "hidden";
  } setTimeout(this.objName + ".scrollLoop();", this.pause);
}

function scrollLoop() {
  var divList = [document.getElementById(this.main), document.getElementById(this.one), document.getElementById(this.two)];
  this.slide = Math.max(this.slide / this.deccel, 1);
  var slideInc = (this.direct == "up" || this.direct == "left") ? -parseInt(this.slide) : parseInt(this.slide);
  if ((this.direct == "up" && Math.max(parseInt(divList[1].style.top) + slideInc, parseInt(divList[2].style.top) + slideInc) <= 0) ||
      (this.direct == "down" && Math.min(parseInt(divList[1].style.top) + slideInc, parseInt(divList[2].style.top) + slideInc) >= 0) ||
      (this.direct == "left" && Math.max(parseInt(divList[1].style.left) + slideInc, parseInt(divList[2].style.left) + slideInc) <= 0) ||
      (this.direct == "right" && Math.min(parseInt(divList[1].style.left) + slideInc, parseInt(divList[2].style.left) + slideInc) >= 0)) {
    this.slide = ((this.direct == "up" || this.direct == "down") ? this.height : this.width) / this.begin;
    if (++this.blockup >= this.block.length) this.blockup = 0;
    this.divup = (this.divup == 1) ? 2 : 1;
    if (this.direct == "up" || this.direct == "down") {
      divList[3 - this.divup].style.top = ((this.direct == "down") ? "-" : "") + this.height + "px";
      divList[this.divup].style.top = "0px";
    } else {
      divList[3 - this.divup].style.left = ((this.direct == "right") ? "-" : "") + this.width + "px";
      divList[this.divup].style.left = "0px";
    } divList[3 - this.divup].innerHTML = this.table + this.block[this.blockup] + "</td></tr></table>";
    setTimeout(this.objName + ".scrollLoop();", this.pause);
  } else {
    for (var j = 1; j <= 2; j++) {
      if (this.direct == "up" || this.direct == "down") {
        divList[j].style.top = (parseInt(divList[j].style.top) + slideInc) + "px";
      } else divList[j].style.left = (parseInt(divList[j].style.left) + slideInc) + "px";
    } setTimeout(this.objName + ".scrollLoop();", this.speed);
  }
}


//-----------------------------------------------------------------------------



function MM_reloadPage(init) {  //reloads the window if Nav4 resized



  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {



    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}



  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();



}



MM_reloadPage(true);



// -->

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
  } if (errors) alert('Introducir algun texto para buscar:\n'+errors);
  document.MM_returnValue = (errors == '');
}


function detenerError(){
return true
}
window.onerror=detenerError




<!-- escondamos



// rutina para inicializar arreglos

function dimensiona(n) {

	this.length=n;



	for (var i=1;i<=n;i++) {



		this[i]=11 }



	return this



}







// dimensionar arreglo mes



mes=new dimensiona(12);



mes[1]="Ene."



mes[2]="Feb."



mes[3]="Mar."



mes[4]="Abr."



mes[5]="May."



mes[6]="Jun."



mes[7]="Jul."



mes[8]="Ago."



mes[9]="Sep."



mes[10]="Oct."



mes[11]="Nov."



mes[12]="Dic."







// dimensionar arreglo dia



dia=new dimensiona(7);



dia[1]="Dom."



dia[2]="Lun."



dia[3]="Mar."



dia[4]="Miér."



dia[5]="Jue."



dia[6]="Vie."



dia[7]="Sáb."







// basta de esconder -->


