function MM_reloadPage(init) {
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) {
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() {
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function validarcon(leng)
{
	var envia = 1;	
	if(document.contacto.nombre.value == "")
	{
		envia = 0;
		if(leng == 1)
			alert("Debe introducir su nombre.");
		else
			alert("You must type your full name.");
		document.contacto.nombre.focus();
		return false;
	}
	if(document.contacto.telefono.value == "")
	{
		envia = 0;
		if(leng == 1)
			alert("Debe introducir su número telefónico.");
		else
			alert("You must type your telephone number.");
		document.contacto.telefono.focus();
		return false;
	}
	if(document.contacto.email.value == "")
	{
		envia = 0;
		if(leng == 1)
			alert("Debe introducir su dirección de correo electrónico.");
		else
			alert("You must type your e-mail address.");
		document.contacto.email.focus();
		return false;
	}
	else
		if(!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.contacto.email.value)))
		{
			if(leng == 1)
				alert("La dirección de E-mail es incorrecta.");
			else
				alert("The E-mail address it's not correct.");
			document.contacto.email.focus();
			envia=0;
			return (false);
		}
	if(document.contacto.ciudad.value == "")
	{
		envia = 0;
		if(leng == 1)
			alert("Debe introducir la ciudad donde vive.");
		else
			alert("You must name the city where you live.");
		document.contacto.ciudad.focus();
		return false;
	}
	if(document.contacto.pais.value == "")
	{
		envia = 0;
		if(leng == 1)
			alert("Debe introducir el país donde reside actualmente.");
		else
			alert("You must name the country where you're living.");
		document.contacto.pais.focus();
		return false;
	}
	if(document.contacto.mensaje.value == "")
	{
		envia = 0;
		if(leng == 1)
			alert("Debe escribir un mensaje o comentario.");
		else
			alert("You should type a message or comentary.");
		document.contacto.mensaje.focus();
		return false;
	}
	if(envia == 1)
	{
		document.contacto.submit();
	}
}
function centrar()
{
	browsername = navigator.appName;
	if ((browsername.indexOf("Netscape")!= -1))
	{
		y= window.innerHeight;
		x= window.innerWidth;
		ar = y / 2 - 211
		iz = x / 2 - 360
		document.getElementById("centro").style.margin = ar+'px 0px 0px '+iz+'px';
	}
	else
		if(browsername.indexOf("Opera")!= -1)
		{
			y= window.innerHeight;
			x= window.innerWidth;
			ar = y / 2 - 222
			iz = x / 2 - 620
			document.getElementById("centro").style.margin = ar+'px 0px 0px '+iz+'px';
		}
		
	document.getElementById("centro").style.visibility = 'visible';
}


