
opcio01_ct= new Image();
opcio01_ct_On= new Image();

opcio02_ct= new Image();
opcio02_ct_On= new Image();

opcio03_ct= new Image();
opcio03_ct_On= new Image();

opcio04_ct= new Image();
opcio04_ct_On= new Image();

opcio05_ct= new Image();
opcio05_ct_On= new Image();

opcio06_ct= new Image();
opcio06_ct_On= new Image();

opcio07_ct= new Image();
opcio07_ct_On= new Image();

opcio01_ct.src="/img/01_ct.gif";
opcio01_ct_On.src="/img/01_ct_act.gif";

opcio02_ct.src="/img/02_ct.gif";
opcio02_ct_On.src="/img/02_ct_act.gif";

opcio03_ct.src="/img/03_ct.gif";
opcio03_ct_On.src="/img/03_ct_act.gif";

opcio04_ct.src="/img/04_ct.gif";
opcio04_ct_On.src="/img/04_ct_act.gif";

opcio05_ct.src="/img/05_ct.gif";
opcio05_ct_On.src="/img/05_ct_act.gif";

opcio06_ct.src="/img/06_ct.gif";
opcio06_ct_On.src="/img/06_ct_act.gif";

opcio07_ct.src="/img/07_ct.gif";
opcio07_ct_On.src="/img/07_ct_act.gif";

opcio01_en= new Image();
opcio01_en_On= new Image();

opcio02_en= new Image();
opcio02_en_On= new Image();

opcio03_en= new Image();
opcio03_en_On= new Image();

opcio04_en= new Image();
opcio04_en_On= new Image();

opcio05_en= new Image();
opcio05_en_On= new Image();

opcio06_en= new Image();
opcio06_en_On= new Image();

opcio07_en= new Image();
opcio07_en_On= new Image();

opcio01_en.src="/img/01_en.gif";
opcio01_en_On.src="/img/01_en_act.gif";

opcio02_en.src="/img/02_en.gif";
opcio02_en_On.src="/img/02_en_act.gif";

opcio03_en.src="/img/03_en.gif";
opcio03_en_On.src="/img/03_en_act.gif";

opcio04_en.src="/img/04_en.gif";
opcio04_en_On.src="/img/04_en_act.gif";

opcio05_en.src="/img/05_en.gif";
opcio05_en_On.src="/img/05_en_act.gif";

opcio06_en.src="/img/06_en.gif";
opcio06_en_On.src="/img/06_en_act.gif";

opcio07_en.src="/img/07_en.gif";
opcio07_en_On.src="/img/07_en_act.gif";



video_off= new Image();
video_On= new Image();
video_off.src="/img/botovideoI.gif";
video_On.src="/img/botovideoA.gif";


function canvia (nom,activa)
{

document.images[nom].src=activa.src;
}


function FitxaRev(web,amplada,alcada)
{
  FFitxarev= window.open(web, 'FFitxarev',"width="+amplada+",height="+alcada+",toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,left=60,top=60");
  FFitxarev.focus();
}


function valida_subscripcions_ct ()
{
        with (document.subscripcions)
               {
               	result1 = esta_ple(nom);
               	result2 = esta_ple(cognoms);
               	result3 = esta_ple(adreca);
                result4 = esta_ple(poblacio);
                result5 = esta_ple(cp);

                result7 = mira_email(email);
                result8 = esta_ple(compte_corrent);
                result9 = esta_ple(titular);
                result10 = esta_ple(dni);
                
		
               if (result1 == 0)
               {
		            alerta_ct('Nom');
		            nom.focus();
		            return false;
	              }
	              
               else if (result2 == 0)
               {
		            alerta_ct('Cognoms');
		            cognoms.focus();
		            return false;
	              }
	              
               else if (result3 == 0)
               {
		            alerta_ct('Adreça');
		            adreca.focus();
		            return false;
	              }	              

               else if (result4 == 0)
               {
		            alerta_ct('Població');
		            poblacio.focus();
		            return false;
	              }

               else if (result5 == 0)
               {
		            alerta_ct('Codi Postal');
		            cp.focus();
		            return false;
	              }	  
                
                   
         
          	  else if (result7 != 1)
                 {
               	alert('Introdueix una direcció de correu electrònic vàlida');
	            	email.focus();
		            return false;
                 }

	         	else if (result8 == 0)
               {
	             	alerta_ct('Compte Corrent');
	             	compte_corrent.focus();
	             	return false;
	              }
	              
	           else if (result9 == 0)
               {
	             	alerta_ct('Titular');
	             	titular.focus();
	             	return false;
	              }
	              
	         	else if (result10 == 0)
               {
	             	alerta_ct('DNI');
	             	dni.focus();
	             	return false;
	              }

	       else submit();
       }
}



function valida_subscripcions_en ()
{
        with (document.subscripcions)
               {
               	result1 = esta_ple(nom);
               	result2 = esta_ple(cognoms);
               	result3 = esta_ple(adreca);
                result4 = esta_ple(poblacio);
                result5 = esta_ple(cp);

                result7 = mira_email(email);
                result8 = esta_ple(compte_corrent);
                result9 = esta_ple(titular);
                result10 = esta_ple(dni);
                
		
               if (result1 == 0)
               {
		            alerta_en('Name');
		            nom.focus();
		            return false;
	              }
	              
               else if (result2 == 0)
               {
		            alerta_en('Surname');
		            cognoms.focus();
		            return false;
	              }
	              
               else if (result3 == 0)
               {
		            alerta_en('Adress');
		            adreca.focus();
		            return false;
	              }	              

               else if (result4 == 0)
               {
		            alerta_en('Town');
		            poblacio.focus();
		            return false;
	              }

               else if (result5 == 0)
               {
		            alerta_en('Post Code');
		            cp.focus();
		            return false;
	              }	  
                
                   
         
          	  else if (result7 != 1)
                 {
               	alert('Please, write a valid e-mail address');
	            	email.focus();
		            return false;
                 }

	         	else if (result8 == 0)
               {
	             	alerta_en('Compte Corrent');
	             	compte_corrent.focus();
	             	return false;
	              }
	              
	           else if (result9 == 0)
               {
	             	alerta_en('Titular');
	             	titular.focus();
	             	return false;
	              }
	              
	         	else if (result10 == 0)
               {
	             	alerta_en('DNI');
	             	dni.focus();
	             	return false;
	              }

	       else submit();
       }
}


