

function ventana(imagename, ancho, alto){
ancho=ancho+20
alto=alto+30
if (ancho > 790) {ancho=790;};
if (alto > 550) {alto=500;};
window.open(imagename,"Imagen","menubar=no,scrollbars=yes,status=no,width="+ancho+",height="+alto+", top=0, left=0, screenX=0, screenY=0")
}


 function infoscroll(seed,looped)
  {
    var text1  = " Somos distribuidor Oficial de ORANGE -  TELEFONIA FIJA Y  ADSL";
    var msg    = text1;
    var putout = " ";
    var c      = 1;
    if (looped > 3) {
      
    }
    else if (seed > 100) {
         seed--;
         var cmd="infoscroll(" + seed + "," + looped + ")";
         timerTwo=window.setTimeout(cmd,100);
    }
    else if (seed <= 100 && seed > 0) {
      for (c=0 ; c < seed ; c++)
        putout += " ";
      putout += msg.substring(0, 100-seed);
      seed--;
      var cmd = "infoscroll(" + seed + "," + looped + ")";
      window.status = putout;
      timerTwo = window.setTimeout(cmd,100);
    }
    else if (seed <= 0) {
      if (-seed < msg.length) {
        putout+=msg.substring(-seed,msg.length);
        seed--;
        var cmd="infoscroll(" + seed + "," + looped + ")";
        window.status=putout;
        timerTwo=window.setTimeout(cmd,100); // 100
      }
      else {
        window.status=" ";
        looped += 1;
        var cmd = "infoscroll(100," + looped + ")";
        timerTwo=window.setTimeout(cmd,75); // 75
      }
    }
  }

  infoscroll(100,1);
  
<!-- imagenes empresa

//Pictures to switch inbetween

var Rollpic1 = "imagenes/instalaciones/img0.jpg";
var Rollpic2 = "imagenes/instalaciones/img2.jpg";
var Rollpic3 = "imagenes/instalaciones/img3.jpg";
var Rollpic4 = "imagenes/instalaciones/img4.jpg";
var Rollpic5 = "imagenes/instalaciones/img5.jpg";
var Rollpic6 = "imagenes/instalaciones/img8.jpg";
var Rollpic7 = "imagenes/instalaciones/img7.jpg";


//Start at the what pic:
var PicNumber=1;
//Number of pics:
var NumberOfPictures=6;
//Time between pics switching in secs
var HowLongBetweenPic=7;

//SwitchPic Function
function SwitchPic(counter){

	if(counter < HowLongBetweenPic){
	
		counter++;
		
		
		
		//Display pic in what <IMG> tag roll is what I called the image
		document.roll.src = eval("Rollpic" + PicNumber);
		
		//function calls itself
		CallSwitchPic=window.setTimeout("SwitchPic("+counter+")",600); 
		
		}
		
		else{
			//if its not the last picture goto the next picture
			if(PicNumber < NumberOfPictures){
				PicNumber++;
				SwitchPic(0);
			}
			//its the last picture go to the first one
			else{
				PicNumber=1;
				SwitchPic(0);
				}
	
		}

}
// termina imagenes empresa -->
  
 

<!-- Formulario
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+', incorrecto.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (isNaN(val)) errors+='- '+nm+', incorrecto.\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+'.\n'; }
  } if (errors) alert('Debe rellenar los siguiente datos:\n'+errors);
  document.MM_returnValue = (errors == '');
}
//--> Termina el Formulario
