  var entrar_1 = new Image();
  entrar_1.src = "/tiendas/0005/iconos/mundopda_Form_Bn_entrar.jpg";
  var entrar_2 = new Image();
  entrar_2.src = "/tiendas/0005/iconos/mundopda_Form_Bp_entrar.jpg";
  
  var registro_1 = new Image();
  registro_1.src = "/tiendas/0005/iconos/mundopda_Form_Bn_registro.jpg";
  var registro_2 = new Image();
  registro_2.src = "/tiendas/0005/iconos/mundopda_Form_Bp_registro.jpg";

  var pregunta_1 = new Image();
  pregunta_1.src = "/tiendas/0005/iconos/mundopda_Form_Bn_pregunta.jpg";
  var pregunta_2 = new Image();
  pregunta_2.src = "/tiendas/0005/iconos/mundopda_Form_Bp_pregunta.jpg";

// Carga de imagen cuando el ratón pasa por encima
function cambiaentrar() {
      document.images["entrar"].src = entrar_2.src;
}

function cambiaentrar2() {
      document.images["entrar"].src = entrar_1.src;
}

function cambiaregistro() {
      document.images["registro"].src = registro_2.src;
}

function cambiaregistro2() {
      document.images["registro"].src = registro_1.src;
}

function cambiapregunta()  {
      document.images["pregunta"].src = pregunta_2.src;
}

function cambiapregunta2()  {
      document.images["pregunta"].src = pregunta_1.src;
}

function validarsubscribe(valoremail) {
var filtro=/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;

if ((valoremail.length>0)&&(filtro.test(valoremail))){
	formsubscribe.submit();
	return true;
	}else{
    alert("Por favor, introduzca una dirección de e-mail válida");
	return false;
	}
}

function alternabanner(urlbanner1,urlbanner2) {

  var fecha=new Date();
  var minuto=fecha.getMinutes();
  if (minuto % 2 == 0)
  {
    document.write(urlbanner1);
  }
  else
  {
    document.write(urlbanner2);
  }
}

/**
 * Decoder JavaScript tool.
 * 
 * @author <a href="mailto:santi.ameller@blueknow.com">Santiago Ameller</a>
 * @since 1.0.1 
 */

var Decoder = {
	// public method for decoding
	decode : function (string) {
		return this._utf8_decode(unescape(string));
	},
	// private method for UTF-8 decoding
	_utf8_decode : function (utftext) {
		var string = "";
		var i = 0;
		var c = c1 = c2 = 0;
		while ( i < utftext.length ) {
			c = utftext.charCodeAt(i);
			if (c < 128) {
			string += String.fromCharCode(c);
				i++;
			}
			else if((c > 191) && (c < 224)) {
				c2 = utftext.charCodeAt(i+1);
				string += String.fromCharCode(((c & 31) << 6) | (c2 & 63));
				i += 2;
			}
			else {
				c2 = utftext.charCodeAt(i+1);
				c3 = utftext.charCodeAt(i+2);
				string += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63));
				i += 3;
			}
		}
		return string;
	}
}

