<!--//

var DownStep = 5;
var UpStep = -5;
var tID;
var tID2;

function StartUpScroll() {
	tID2 = setInterval("StartUpScroll2()",10);
}

function StartUpScroll2() {
	if(window.noticias && window.noticias.scrollBy) {
		var ifr = window.noticias;
		if (ifr.document.body.scrollTop <= 0) {
			clearInterval(tID2);
		} else {
			ifr.scrollBy(0, UpStep);
		}
	}
}

function StopUpScroll() {
	clearInterval(tID2);
}

function StartDownScroll() {
	tID = setInterval("StartDownScroll2()",10);
}

function StartDownScroll2() {
	if (window.noticias && window.noticias.scrollBy) {
		var ifr = window.noticias;
		if (ifr.document.body.scrollHeight - ifr.document.body.scrollTop <= ifr. document.body.offsetHeight) {
			clearInterval(tID);
		} else {
			ifr.scrollBy(0, DownStep);
		}
	}
}

function StopDownScroll() {
	clearInterval(tID);
}


//-->


<!--//

			function checkForm (){
				if (document.recomendar.nombretuyo.value == "") {
					alert("Introduzca su nombre");
					document.recomendar.nombretuyo.focus();
					return false;
				}
				
				if (document.recomendar.emailtuyo.value == "") {
					alert("Introduzca su email");
					document.recomendar.emailtuyo.focus();
					return false;
				}
				
				if (document.recomendar.emailtuyo.value.indexOf ("@") == -1) {
			  	alert("Su dirección de email es incorrecta.");
					document.recomendar.emailtuyo.focus();
					document.recomendar.emailtuyo.select();
					return false;
				}
			
				if (document.recomendar.nombreamigo.value == "") {
					alert("Introduzca el nombre de su amigo.");
					document.recomendar.nombreamigo.focus();
					return false;
				}
				
				if (document.recomendar.emailamigo.value == "") {
					alert("Introduzca el email de su amigo.");
					document.recomendar.emailamigo.focus();
					return false;
				}
				
				if (document.recomendar.emailamigo.value.indexOf ("@") == -1) {
			  	alert("La dirección de email de su amigo es incorrecta.");
					document.recomendar.emailamigo.focus();
					document.recomendar.emailamigo.select();
					return false;
				}
				else
					return true;
	      }
		  
//-->	 
 
<!--//



function cogercampo() {
	var numero=document.recomendar.mailamigo.value;
	document.recomendar.recipient.value=numero;
	document.recomendar.submit();
}

function descarga(nomFichero){
		document.form1.fichero.value=nomFichero;
		window.open ("popup_zip.html","","width=468, height=280")
	}

function descarga2(nomFichero)
	{
		//alert(window.opener.document.descarga.fichero.value);
		document.location.href=window.opener.document.form1.fichero.value;
	
	}

function sala_edit(){
	window.open('../sala_edit/sala_edicion.htm','Edit','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=552,height=348,left=160,top=30');
}

function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=no'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
//-->


