function flash(str,w,h,t,v){
  document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
  document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="' + w + '" height="' + h + '" id="flash">');
  document.write('<param name="movie" value="flash/' + str + '">');
  document.write('<param name="quality" value="high">');
  document.write('<param name="scale" value="auto">');
  document.write('<param name="menu" value="false">');
  document.write('<param name="FlashVars" value="flashvar=' + v + '">');
  if (t=="true"){document.write('<param name=wmode value="transparent">');} else {document.write('<param name=wmode value="opaque">');}
	
  document.write('<embed src="flash/' + str + '" width="' + w + '" height="' + h + '" FlashVars="flashvar=' + v + '" quality="high" scale="auto" menu="false" name="flash"');
  if (t=="true"){document.write(' wmode="transparent" ');} else {document.write(' wmode="opaque" ');}
  document.write('type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
  document.write('</object>');
  }
  
function comprueba(f) {
  if (!document.getElementById('nombre').value) { alert("Debe rellenar el campo nombre"); return false;}
  else {
    if (!document.getElementById('empresa').value) { alert("Debe rellenar el campo empresa"); return false;}
    else {
   	  if (!document.getElementById('telefono').value) { alert("Debe rellenar el campo teléfono"); return false;}
	  	else {
   	  	if (!document.getElementById('email').value) { alert("Debe rellenar el campo email"); return false;}
      	else { f.submit();}}}}}
		
function compruebaformulario(f) {
  if (!document.getElementById('empresa').value) { alert("Debe rellenar el campo Empresa"); return false;}
  else {
    if (!document.getElementById('telefono').value) { alert("Debe rellenar el campo Telefono"); return false;}
    else {
   	  if (!document.getElementById('email').value) { alert("Debe rellenar el campo Email"); return false;}
	  	else {
   	  	if (!document.getElementById('asistente1').value) { alert("Debe rellenar el campo Asistente 1"); return false;}
      	else { f.submit();}}}}}