function Display(id){
	var doc = document.getElementById(id);
	document.getElementById('pag1').style.display = 'none';
	document.getElementById('pag2').style.display = 'none';
	document.getElementById('pag3').style.display = 'none';
	doc.style.display = 'block';
}

<!--
function Open(theURL) { //v2.0
	w = 810;
	h = 695;	
	l = (screen.width-w)/2;
	t = (screen.height-h)/2;
	window.open(theURL,'MILLOR','resizable=no,scrollbars=no,top='+t+',left='+l+',width='+w+',height='+h);
}

/*****************************************************************************
Pop-up ajustada a foto. Script creado por Tunait!
Si quieres usar este script en tu sitio eres libre de hacerlo con la condición de que permanezcan intactas estas líneas, osea, los créditos.
No autorizo a publicar y ofrecer el código en sitios de script sin previa autorización
Si quieres publicarlo, por favor, contacta conmigo.
http://javascript.tunait.com/
tunait@yahoo.com 
******************************************************************************/

var titulopordefecto = "MILLOR"; //Si no se especifica un título al llamar a la función colocará el que se especifique aquí
var ventana;
var cont=0;

function PopUpFoto(cual,titulo){
	w = 200;
	h = 200;	
	l = (screen.width-w)/2;
	t = (screen.height-h)/2;
	
	if(cont==1){ventana.close();ventana=null}
	if(titulo==null){titulo=titulopordefecto}
	ventana=window.open('','ventana','resizable=no,scrollbars=no,top='+t+',left='+l+',width='+w+',height='+h)
	ventana.document.write('<html><head><title>' + titulo + '</title></head><body style="background:#FFFFFF;" marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" scroll="no" onUnload="opener.cont=0"><img src="' + cual + '" onLoad="opener.redimensionar(this.width, this.height)">');
	ventana.document.close();
	cont++;
}
function redimensionar(ancho, alto){
	ventana.resizeTo(ancho+12,alto+80);
	ventana.moveTo((screen.width-ancho)/2,(screen.height-alto)/2); //centra la ventana. Eliminar si no se quiere centrar el popup
}

function PopUpFoto2(cual,titulo){
	w = 200;
	h = 200;	
	l = (screen.width-w)/2;
	t = (screen.height-h)/2;
	
	if(cont==1){ventana.close();ventana=null}
	if(titulo==null){titulo=titulopordefecto}
	ventana=window.open('','ventana','resizable=no,scrollbars=no,top='+t+',left='+l+',width='+w+',height='+h)
	ventana.document.write('<html><head><title>' + titulo + '</title></head><body style="background:#FFFFFF;" marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" scroll="no" onUnload="opener.cont=0"><img src="' + cual + '" onLoad="opener.redimensionar(this.width, this.height)"><br/><br/><span style="font-size:12px;">&nbsp;&nbsp;&nbsp;&nbsp;Romeu / El País / <a href="http://www.icl.my.proz.com/romeu-esos-solo.gif" target="_blank" style="font-size:12px; color:#000000;">http://www.icl.my.proz.com/romeu-esos-solo.gif</a></span>');
	ventana.document.close();
	cont++;
}
function redimensionar(ancho, alto){
	ventana.resizeTo(ancho+12,570);
	ventana.moveTo((screen.width-ancho)/2,(screen.height-alto)/2); //centra la ventana. Eliminar si no se quiere centrar el popup
}

//validació del formulari
function validateForm(){
		
	 var camp1 =document.getElementById('camp1');
	 var camp2 =document.getElementById('camp2');
	 var camp3 =document.getElementById('camp3');
	 var camp4 =document.getElementById('camp4');
	 var camp5 =document.getElementById('camp5');
	 var camp6 =document.getElementById('camp6');
	 // Valido camps
	 ////////////////////////////////////////////////////////////////////////////// 
    if (camp1.value=="" || camp2.value=="" || camp3.value=="" || camp4.value=="" || camp5.value=="" || camp6.value==""){
      alert("Són obligatoris tos els camps");
      return false;
    }else{
	  Display('pag2');
	}
}

function CheckForm2(thisform){
    var digits=" .-,/+0123456789";
    var temp;
	// Valido E-mail
	////////////////////////////////////////////////////////////////////////////// 
    if (thisform.Mail.value==""){
      alert("El camp E-mail és obligatori");
      thisform.Mail.focus();
      return false;
    }

	if (thisform.Mail.value!="") {
      if (thisform.Mail.value.indexOf("@")==-1 || thisform.Mail.value.indexOf(".")==-1 || thisform.Mail.value.indexOf(" ")!=-1 || thisform.Mail.value.length<6) {
        alert("La direcció d'E-mail és incorrecte");
        thisform.Mail.focus();
        return false;
      }
    }
  
return true;
}

function CheckForm(thisform){
    var digits=" .-,/+0123456789";
    var temp;
	 // Valido nom
	 ////////////////////////////////////////////////////////////////////////////// 
    if (thisform.Nom.value==""){
      alert("El camp Nom és obligatori");
      thisform.Nom.focus();
      return false;
    }
	
	// Valido E-mail
	////////////////////////////////////////////////////////////////////////////// 
    if (thisform.Mail.value==""){
      alert("El camp E-mail és obligatori");
      thisform.Mail.focus();
      return false;
    }

	if (thisform.Mail.value!="") {
      if (thisform.Mail.value.indexOf("@")==-1 || thisform.Mail.value.indexOf(".")==-1 || thisform.Mail.value.indexOf(" ")!=-1 || thisform.Mail.value.length<6) {
        alert("La direcció d'E-mail és incorrecte");
        thisform.Mail.focus();
        return false;
      }
    }
  
return true;
}


function StopSound() {
	document.getElementById("wmp").style.display = 'block';
	document.getElementById("imgwmp").style.display = 'none';
   	//document.getElementById("MillorSound").StopSound();
}

function Playmp3(id) {
	if(document.getElementById(id).style.display != 'block'){
		document.getElementById(id).style.display = 'block';
	}else{
		document.getElementById(id).style.display = 'none';
	}
}

//-->