<!--
//Funcion que hace scroll del titulo de pagina en barra de titulo de ventana
var txt=null;
var refresco=null;
function titulo(param) {
	txt=param;
	document.title=txt;
	txt=txt.substring(1,txt.length)+txt.charAt(0);
	refresco=setTimeout("titulo(txt)",200);
}

//Comprueba que alguna de las opciones de un radiobutton esta seleccionada
function comprobarRadio(botonRadio,opcion)
{
var seleccionadoAlguno = false;
// Bucle de 0 al numero de opciones "radio" menos 1
for (i=0; i<botonRadio.length; i++)
{	// Si una opcion de radio esta seleccionada devuelve true
	if (botonRadio[i].checked)
		seleccionadoAlguno = true; 
	}
if (!seleccionadoAlguno)
{
	alert("Se ha dejado "+ opcion +" sin marcar.")
	return (false);
}
return (true);
}

//Campo no en blanco
function chk(campo){
	if (campo.value == ""){
		 alert("Debe introducir un valor en el campo seleccionado");
		 campo.focus();
		 campo.blur();
		 campo.select();
		 return false;
	}else{
		 return true;
	}
}

//Campo numerico de al menos 9 digitos
function chkTelefono(campo){
	if (isNaN(campo.value) || (campo.value.length < 9)){
		alert("Debe introducir un número de teléfono válido");
		campo.focus();
		campo.blur();
		campo.select();
		return false;
	}else{
		return true;
	}
}


//Abre la pagina especificada a pantalla completa
function pantallaCompleta(pagina) {
//window.open(pagina,'','scrollbar=0,fullscreen=yes');
window.open(pagina,'','fullscreen=yes,outerwidth='+screen.availWidth+',outerheight='+screen.availHeight+',left=0,top=0');
}

//-->


<!--

// Maximizar Ventana por Nick Lowe (nicklowe@ukonline.co.uk)
function maximizarVentana() {
window.moveTo(0,0);
if (document.all) {
top.window.resizeTo(screen.availWidth,screen.availHeight);
}
else if (document.layers||document.getElementById) {
if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}
}
//-->

<!--
//Abrir url en ventana de 80% tamanyo de pantalla
  function popup(url) {
  var x = screen.width * 80 /100;
  var y = screen.height * 80 /100;
  var t = screen.height * 10 / 100;
  var l = screen.width * 10 /100;
  if (x<800) {
   l=10;
   x=780;//ancho minimo de ventana popup
   }

 	window.open(url,"","toolboard=no,width="+x+",height="+y+",screenX="+t+",screenY="+l+",top="+t+",left="+l);
  }

//Abrir url en ventana de tamanyo prefijado
  function popupFijo(url,ancho,alto) {
  var t = (screen.height - alto )* 45 / 100;
  var l = (screen.width - ancho )* 50 / 100;
window.open(url,"","toolboard=no,width="+ancho+",height="+alto+",screenX="+t+",screenY="+l+",top="+t+",left="+l);
  }

//-->  
