

<!--  

   var i = 0; 

   var TextNumber = 0;

   var TextInput = new Object();

   var HelpText="";                              

   var Text = "";  

   var Speed=150

   var WaitSpace="           "                 


TextInput[0] = "  Fustes Bonet";  

TextInput[1] = " Camí de Baix a les Palmeres s/n"

TextInput[2] = " Tel.: (+34) 96 170 18 17";

TextInput[3] = " 46410 - Sueca(Valencia)"

TextInput[4] = " www.fustesbonet.com"

TotalTextInput = 4; // (0, 1, 2, 3, 4)


for (var addWait = 0; addWait <= TotalTextInput; addWait++) 

   { TextInput[addWait]+=WaitSpace; }

	

var TimerId

var TimerSet=false;


function startBanner (form)  

   {

   if (!TimerSet)

      {

      TimerSet=true;

      banner();

      }

   }


function banner() 

   {

   Text=rollMessage();

   TimerId = setTimeout("banner()", Speed);

   window.status=Text;

   }


function rollMessage () 

   {

   Wait_yn=false;

   i++;

   var CheckSpace = HelpText.substring(i-1, i);

   CheckSpace = "" + CheckSpace;

   if (CheckSpace == " ") 

      {i++;}

   if (i >= HelpText.length+1) 

      {

      i=0; 

      if (TextNumber < TotalTextInput) 

         {TextNumber++;} 

      else 

         {TextNumber = 0;} 

      initBanner();

      }

   Text = HelpText.substring(0, i);

   return (Text);

   }


function initBanner() 

   {

   Text = TextInput[TextNumber];

   HelpText = Text;

   startBanner ();


   }
   
   Text = TextInput[TextNumber];

   HelpText = Text;

   startBanner ();


//  -->

function ver_imagenes (num) {

var opciones="toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=yes, width=800, height=600, top=85, left=140";
window.document.title = 'FustesBonet';
window.open('ver_imagenes.php?id='+num,"",'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=yes, width=800, height=600, top=85, left=140');
}

function afoto(img){ 
foto1= new Image(); 
foto1.src=(img); 
Control(img); 
} 
function Control(img){ 
    if((foto1.width!=0)&&(foto1.height!=0)){ 
        verFoto(img); 
    }else{ 
        funcion="Control('"+img+"')"; 
        intervalo=setTimeout(funcion,20); 
        } 
    } 
function verFoto(img){ancho=foto1.width+20; 
    alto=foto1.height+20; 
    cadena="width="+ancho+",height="+alto; 
    ventana=window.open(img,"",cadena); 
} 
function Validar_form1(in_form1)
{
	
		
if (in_form1.realname.value == "")
        {
         alert("Introduce el Nombre.");
        in_form1.realname.focus();
         return (false);
        }
		
if (in_form1.email.value == "")
        {
         alert("Introduce el correo electrónico.");
        in_form1.email.focus();
         return (false);
        }
if (!V00_validar_tipodato(in_form1.email.value,"es_email"))
        {
        alert('El formato del correo electronico no es correcto');
        in_form1.email.focus();
         return (false);
        }

return (true);
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

