function desplegar(cual){
	document.getElementById('oculto'+cual).style.display= 'block';
	document.getElementById('bot_muestro'+cual).style.display= 'none';
}
function esconder(cual){
	document.getElementById('oculto'+cual).style.display= 'none';
	document.getElementById('bot_muestro'+cual).style.display= 'block';
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function desplegar_prod(cual){
	document.getElementById('oculto'+cual).style.display= 'block';
	document.getElementById('bot_muestro'+cual).style.display= 'none';
	
	ocultar(cual,4);
}
function ocultar(cual,cuantos){
	for(var i=1;i<=cuantos;i++){
		if(i==cual){
			continue
		}		
			document.getElementById('oculto'+i).style.display='none';
			document.getElementById('bot_muestro'+i).style.display='block';
		
	}
}
function SymError()
{
  return true;
}
window.onerror = SymError;

function doit(){
if (!window.print){
alert("You need NS4.x to use this print button!")
return
}
window.print()
}

function Borrar(){
	document.getElementById('nom').value = '';
	document.getElementById('prenom').value = '';
	document.getElementById('societe').value = '';
	document.getElementById('adresse').value = '';
	document.getElementById('code').value = '';
	document.getElementById('ville').value = '';
	document.getElementById('email').value = '';
	document.getElementById('message').value = '';
}

function Enviar(){
	if (document.getElementById('nom').value == ''){
		alert(' nom ');
		document.getElementById('nom').focus();
		return;
	}
	
	if (document.getElementById('societe').value == ''){		
			alert(' societe ');
			document.getElementById('societe').focus();
			return;		
	}
	
	if (document.getElementById('email').value == ''){
		alert('E-Mail');
		document.getElementById('email').focus();
		return;
	}
	document.getElementById('contacto').submit();
	
}
