/*---------> Newsletter Cabecera <---------*/

function borraNewsletter (){



	if (document.newsletter.Email.value == 'Vul uw e-mailadres in')

	{

		document.newsletter.Email.value = ''

	}



}

/**

 * DHTML email validation script. Courtesy of SmartWebby.com (http://www.smartwebby.com/dhtml/)

 */



function echeck(str) {



	var at="@"

	var dot="."

	var lat=str.indexOf(at)

	var lstr=str.length

	var ldot=str.indexOf(dot)

	if (str.indexOf(at)==-1){

	   alert("Het adres is onjuist. \nVul een bestaand emailadres in.")

	   return false

	}



	if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){

	   alert("Het adres is onjuist. \nVul een bestaand emailadres in.")

	   return false

	}



	if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){

	   alert("Het adres is onjuist. \nVul een bestaand emailadres in.")

		return false

	}



	 if (str.indexOf(at,(lat+1))!=-1){

	   alert("Het adres is onjuist. \nVul een bestaand emailadres in.")

		return false

	 }



	 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){

	   alert("Het adres is onjuist. \nVul een bestaand emailadres in.")

		return false

	 }



	 if (str.indexOf(dot,(lat+2))==-1){

	   alert("Het adres is onjuist. \nVul een bestaand emailadres in.")

		return false

	 }



	 if (str.indexOf(" ")!=-1){

	   alert("Het adres is onjuist. \nVul een bestaand emailadres in.")

		return false

	 }



	 return true

}



function ValidateForm(){

	var emailID=document.newsletter.Email



	if ((emailID.value==null)||(emailID.value=="")){

		alert("Vul een bestaand emailadres in.")

		emailID.focus()

		return false

	}

	if (echeck(emailID.value)==false){

		emailID.value=""

		emailID.focus()

		return false

	}

	return true

 }





/*----------> Idiomas Cabecera <--------------*/



function muestraIdioma(id)

{



	var displayMore=document.getElementById('more');

	if (displayMore.style.display=='block')

		{

			displayMore.style.display='none';

		} else {

			displayMore.style.display='block';

		}

}



/*----------> Enlaces a las Landings <--------------*/



function muestraLinks(id)

{

	/*document.getElementById('uno').style.display='none';

	document.getElementById('dos').style.display='none';

	document.getElementById('tres').style.display='none';

	document.getElementById('cuatro').style.display='none';

	document.getElementById('cinco').style.display='none';

	document.getElementById('seis').style.display='none';

	if (id!='0')

		{

			document.getElementById(id).style.display='block';

		}*/
		
		if(id=='tres' || id=='cinco' || id=='uno')
	{
		if(document.getElementById('cuatro').style.display=='block'  && document.getElementById(id).style.display=='none')
			{document.getElementById('cuatro').style.display='none'}
		else if(document.getElementById('seis').style.display=='block'  && document.getElementById(id).style.display=='none')
			{document.getElementById('seis').style.display='none'}
		else{
			if(document.getElementById('dos').style.display='none' && document.getElementById(id).style.display=='none')
			{document.getElementById('dos').style.display='none'}
			}
	}
		if(id=='cuatro' || id=='dos' || id=='seis')
	{
		if(document.getElementById('cinco').style.display=='block' && document.getElementById(id).style.display=='none')
			{document.getElementById('cinco').style.display='none'}
		else if(document.getElementById('uno').style.display=='block'  && document.getElementById(id).style.display=='none')
			{document.getElementById('uno').style.display='none'}
		else{
			if(document.getElementById('tres').style.display='none' && document.getElementById(id).style.display=='none')
			{document.getElementById('tres').style.display='none'}
			}
	}

	if (id!='0')

		{

			document.getElementById(id).style.display='block';

		}

}



function deleteValue(id,valorDefecto)
{
  if (document.getElementById(id))
    {if (document.getElementById(id).value==valorDefecto) document.getElementById(id).value="";}

  if (document.getElementById('searchHidden') && id=="search"){
    if (document.getElementById('searchHidden').value){
      document.getElementById(id).value="";
      document.getElementById('searchHidden').value="";
      }
    }
}

