<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=250,height=175,left = 0,top = 0');");
}
// End -->

<!--Impide refrescar-->
   document.onkeydown = function(){ 
    if(window.event && window.event.keyCode == 116){ 
     window.event.keyCode = 505; 
    } 
    if(window.event && window.event.keyCode == 505){ 
     return false;     
    } 
   } 

 <!--Escuchar Demos-->
function demo(URL) 
{
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=250,height=125,left = 0,top = 0');");
}

<!--Download-->
function descarga(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=100,height=100,left = 0,top = 0');");
}

<!--Valida Formulario Buscar-->
function FrontPage_Form1_Validator(theForm)
{

  if (theForm.buscando.value == "")
  {
    alert("No Characters in \"Search\".");
    theForm.buscando.focus();
    return (false);
  }

  if (theForm.buscando.value.length < 4)
  {
    alert("Min. 4 Characters in \"Search\".");
    theForm.buscando.focus();
    return (false);
  }

  if (theForm.buscando.value.length > 15)
  {
    alert("Max. 15 Characters in \"Search\".");
    theForm.buscando.focus();
    return (false);
  }
  return (true);
}
window.onerror = null;
 var bName = navigator.appName;
 var bVer = parseInt(navigator.appVersion);
 var NS4 = (bName == "Netscape" && bVer >= 4);
 var IE4 = (bName == "Microsoft Internet Explorer" 
 && bVer >= 4);
 var NS3 = (bName == "Netscape" && bVer < 4);
 var IE3 = (bName == "Microsoft Internet Explorer" 
 && bVer < 4);
 var blink_speed=700;
 var i=0;
 
if (NS4 || IE4) {
 if (navigator.appName == "Netscape") {
 layerStyleRef="layer.";
 layerRef="document.layers";
 styleSwitch="";
 }else{
 layerStyleRef="layer.style.";
 layerRef="document.all";
 styleSwitch=".style";
 }
}

//BLINKING
function Blink(layerName){
 if (NS4 || IE4) { 
 if(i%2==0)
 {
 eval(layerRef+'["'+layerName+'"]'+
 styleSwitch+'.visibility="visible"');
 }
 else
 {
 eval(layerRef+'["'+layerName+'"]'+
 styleSwitch+'.visibility="hidden"');
 }
 } 
 if(i<1)
 {
 i++;
 } 
 else
 {
 i--
 }
 setTimeout("Blink('"+layerName+"')",blink_speed);
}

<!--Valida Formulario Boletin-->
function Verif(theForm)
{   
	    	if (theForm.email.value == "")
	{      
		alert("\nEnter Your E-Mail Address");     
		theForm.email.focus();      
		return (false);       
	}
		if (theForm.email.value.indexOf ('@',0) == -1 || theForm.email.value.indexOf ('.',0) == -1)
	{      
		alert("\nYour E-Mail Address\n\n need the Characters \"@\" And \".\"\n\nPlease, Enter Again."); 
		theForm.email.select();      
		theForm.email.focus();      
		return (false);      
	} 
	    if (theForm.password.value == "")
	{      
		alert("\nEnter Your Password");     
		theForm.password.focus();      
		return (false);       
	}
	if (theForm.password.value.length < 6)
  {
    alert("Min. 6 Characters in \"Password\".");
    theForm.password.focus();
    return (false);
  }

  if (theForm.password.value.length > 10)
  {
    alert("Max. 10 Characters in \"Password\".");
    theForm.password.focus();
    return (false);
  }
		return (true);   
}

function PreCarga(objetoImagen, rutaImagen) 
{
    if (document.images)
    {
	eval (objetoImagen +' = new Image()')
	eval (objetoImagen +'.src = "' + rutaImagen + '"')
    }
}
function CambiarImagen(capa,nombreImagen,objetoImagen) 
{
    if (document.layers && capa!=null)
	eval('document.' + capa + '.document.images["' + nombreImagen + '"].src = ' + objetoImagen + '.src')
    else
	document.images[nombreImagen].src = eval(objetoImagen + ".src")
}

function Validar_Tarjeta(theForm)
{
  if (theForm.tarjetaNumero.value == "" || theForm.tarjetaNumero.value == " ")
  {
    alert("El campo \"Nº Tarjeta\" está sin rellenar");
    theForm.tarjetaNumero.focus();
    return (false);
  }

  if (theForm.tarjetaNumero.value.length < 16)
  {
    alert("El campo \"Nº Tarjeta\" debe contener 16 dígitos");
    theForm.tarjetaNumero.focus();
    return (false);
	  }

  if (theForm.caducidad.value == "" || theForm.caducidad.value == " ")
  {
    alert("El campo \"Caducidad\" está sin rellenar");
    theForm.caducidad.focus();
    return (false);
  }

  if (theForm.caducidad.value.length < 4)
  {
    alert("El campo \"Caducidad\" debe contener 4 dígitos");
    theForm.caducidad.focus();
    return (false);
	  }
  return (true);
}


function acceptNum(evt){	
var nav4 = window.Event ? true : false;
// NOTE: Backspace = 8, Enter = 13, '0' = 48, '9' = 57	
var key = nav4 ? evt.which : evt.keyCode;	
return (key <= 13 || (key >= 48 && key <= 57));
}