function redirigir(url)
{
  document.location = url;
}

function overTabla(t)
{
  t.border=2;
  t.className = "tablaBotonON";
}

function exitTabla(t)
{
  t.border=0;
}

function overK(t, titulo, texto)
{
  var tbl = document.all[t]
  tbl.border=2;
  tbl.className = "tablaBotonON";

  if(!document.all)
	return;

  var d = document.all["divInfo"]
  d.style.visibility = "visible";
  f = document.frmInfo;

  escribirDivInfo(d, titulo, texto);
}

function exitK(t)
{
  var tbl = document.all[t]
  tbl.border=0;

  var d = document.all["divInfo"]
  d.style.visibility = "hidden";
}

function escribirDivInfo(d, titulo, texto)
{
  var txt = "";
  txt += '<form name="frmInfo">';
  txt += '<table bgcolor="#000000" width="210" cellspacing="0" cellpadding="0" border="0">';
  txt += '<tr>';
  txt += '  <td height="1" width="1" rowspan="3"><img src="imagen/espacio.gif"></td>';
  txt += '  <td height="1" width="*"><img src="imagen/espacio.gif"></td>';
  txt += '  <td height="1" width="1" rowspan="3"><img src="imagen/espacio.gif"></td>';
  txt += '</tr>';
  txt += '<tr>';
  txt += '  <td>';
  txt += '    <table width="100%" bgcolor="#FFEEEE" cellspacing="0" cellpadding="0" border="0">';
  txt += '      <tr> ';
  txt += '        <td height="2" class="txtInfoHomeTitulo"><img src="imagen/espacio.gif"></td>';
  txt += '      </tr>';
  txt += '      <tr> ';
  txt += '        <td align="center" class="txtInfoHomeTitulo">' + titulo + '</td>';
  txt += '      </tr>';
  txt += '      <tr> ';
  txt += '        <td height="2" class="txtInfoHomeTitulo"><img src="imagen/espacio.gif"></td>';
  txt += '      </tr>';
  txt += '      <tr> ';
  txt += '        <td align="center" height="3"><img src="imagen/espacio.gif"></td>';
  txt += '      </tr>';
  txt += '      <tr> ';
  txt += '        <td align="center" class="txtInfoHomeNormal">' + texto + '</td>';
  txt += '      </tr>';
  txt += '      <tr> ';
  txt += '        <td height="2"><img src="imagen/espacio.gif"></td>';
  txt += '      </tr>';
  txt += '    </table>';
  txt += '  </td>';
  txt += '</tr>';
  txt += '<tr>';
  txt += '  <td height="1" width="*"><img src="imagen/espacio.gif"></td>';
  txt += '</tr>';
  txt += '</table>';
  txt += '</form name="frmInfo">';

  d.innerHTML = txt;
}

function insertarBoton(texto, accion, dirImagenes)
{
  document.write('<table cellspacing="0" cellpadding="0" border="0">');
  document.write('  <tr>');
  document.write('    <td><img src="' + dirImagenes + '/bEfectoLeft.gif"><img width="4" src="' + dirImagenes + '/espacio.gif"></td>');
  document.write('    <td>');
  document.write('      <table cellspacing="0" cellpadding="0" border="0" onmouseover="overTabla(this)" onmouseout="exitTabla(this)" onclick="' + accion + '">');
  document.write('        <tr>');
  document.write('          <td class="textoBotones">' + texto + '</td>');
  document.write('        </tr>');
  document.write('      </table>');
  document.write('    </td>');
  document.write('    <td><img width="4" src="' + dirImagenes + '/espacio.gif"><img src="' + dirImagenes + '/bEfectoRight.gif"></td>');
  document.write('  </tr>');
  document.write('</table>');
}

function insertarFinalResultadosDiagnostico()
{
  document.write('');
  document.write('<table width="590" border="0" cellpadding="0" cellspacing="0">');
  document.write('  <tr>');
  document.write('    <td><hr></td>');
  document.write('  </tr>');
  document.write('</table>');
  document.write('<table width="580" border="0" cellpadding="0" cellspacing="0">');
  document.write('  <tr>');
  document.write('    <td width="35" height="10"><img src="../imagen/espacio.gif"></td>'); 
  document.write('    <td width="545"><img src="../imagen/espacio.gif"></td>');
  document.write('  </tr>');
  document.write('  <tr>');
  document.write('    <td><img src="../imagen/espacio.gif"></td>');
  document.write('    <td class="textoFinalDiagnostico">');
  document.write('        No obstante, recuerde que para poder');
  document.write('        realizar un completo diagn&oacute;stico con mayor grado de fiabilidad, ');
  document.write('        usted puede acudir a nuestro centro de la C/Orense 54, Madrid, donde recibir&aacute; ');
  document.write('        una consulta gratuita atendiendo su caso en particular.');
  document.write('		<br>');
  document.write('		<br>');
  document.write('        Tel&eacute;fono para reserva de citas 91 555 17 17');
  document.write('    </td>');
  document.write('  </tr>');
  document.write('</table>');
}



