function fecha()
{
        today = new Date()
        day = today.getDay()
        if ( day == 0 ) { 
        document.write("Sunday, ");
        }
        if ( day == 1 ) { 
        document.write("Monday, ");
        }
        if ( day == 2 ) { 
        document.write("Tuesday, ");
        }
        if ( day == 3 ) { 
        document.write("Wendsday, ");
        }
        if ( day == 4 ) { 
        document.write("Thursday, ");
        }
        if ( day == 5 ) { 
        document.write("Friday, ");
        }
        if ( day == 6 ) { 
        document.write("Saturday, ");
        }
   
          today = new Date()
          hours = today.getHours()
          minutes = today.getMinutes()
          zerom = ''
          zeroh = ''
          if ( minutes < 10 ) { zerom = 0 }
          if ( hours < 10 ) { zeroh = 0 }
 
        if ( today.getMonth() == 0 ) { month = "January" }
        if ( today.getMonth() == 1 ) { month = "February" }
        if ( today.getMonth() == 2 ) { month = "March" }
        if ( today.getMonth() == 3 ) { month = "April" }
        if ( today.getMonth() == 4 ) { month = "May" }
        if ( today.getMonth() == 5 ) { month = "June" }
        if ( today.getMonth() == 6 ) { month = "July" }
        if ( today.getMonth() == 7 ) { month = "August" }
        if ( today.getMonth() == 8 ) { month = "September" }
        if ( today.getMonth() == 9 ) { month = "October" }
        if ( today.getMonth() == 10 ) { month = "November" }
        if ( today.getMonth() == 11 ) { month = "Dicember" }
              document.write( today.getDate()," - ",month);
}
function Enviar2()
{
   if (MiForm.Categoria.value==""){
     FrmSearch.query.value=MiForm.TxtBusqueda.value;
     document.FrmSearch.submit();
   }else{
     document.MiForm.submit();
   }
}

function add_bookmark() {
var browsName = navigator.appName; 
if (browsName == "Microsoft Internet Explorer") { 
window.external.AddFavorite('http://www.tuavila.com','Tu Avila');
} else 
if (browsName == "Netscape") {
alert ("\nPara agregar esta página a tu BookMark presiona CTRL+D");
}
}
document.write('<table border="0" width="780" cellspacing="0" cellpadding="0">')
document.write('<tr><td width="490" bgcolor="#003063" height="60" colspan="2" rowspan="2" valign="bottom">')
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="462" height="60"><param name="movie" value="flash/tuavila3.swf"><param name="quality" value="high"><embed src="flash/tuavila3.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="462" height="60"></embed></object></td>')
document.write('<td width="290" bgcolor="#003063" height="32"><table border="0" width="285" cellspacing="0" cellpadding="0"><tr><td width="141"><img border="0" src="img/titul2.jpg" width="141" height="25"></td><td width="149" style="font-family: verdana; font-size: 7.5 pt; color: #FFFFFF; font-weight: bold" align="right"><script>fecha();</script></tr></table></td></tr>')
document.write('<tr><td width="290" bgcolor="#003063" height="28" valign="bottom">')
document.write('<table border="0" width="290" cellspacing="0" cellpadding="0" bgcolor="#FFCC66" height="25">')
document.write('<tr><td width="11" valign="top" align="left"><img border="0" src="img/esquina1.jpg" width="10" height="10"></td>')
document.write('<td width="36"><font color="#9C0000" face="Tahoma" size="1">Buscar&nbsp;</font></td>')
document.write('<form action="benlaces.php" Name="MiForm">')
document.write('<td width="63"><input type="text" class="in" name="TxtBusqueda" size=10>&nbsp;</td>')
document.write('<td width="99">&nbsp;<select size="1" name="Categoria" class="in">')
document.write('<option value="" selected>[En la web]</option>')
document.write('<option value="1">Enlaces</option>')
document.write('</select></td></form>')

document.write('<form action="http://www.tuavila.com/cgi-sys/entropysearch.cgi" Name="FrmSearch">')
document.write('<input type="hidden" name="query" value="">')
document.write('<input type="hidden" name="user" value="tuavila">')
document.write('<input type="hidden" name="basehref" value="http://tuavila.com">')
document.write('<input type="hidden" name="template" value="default"></form>')

document.write('<td width="24"><A HREF="javascript:Enviar2();" class="pp2"><img border="0" src="img/lupa.gif" width="18" height="15"></A></td>')
document.write('<td width="11" valign="top" align="right"><img border="0" src="img/esquina2.jpg" width="10" height="10"></td>')
document.write('<td width="32" bgcolor="#003063" align="center"><a href="http://www.tuavila.com/inicio.php"><img border="0" src="img/esp.jpg" width="20" height="20" alt="Castellano"></a></td></tr></table></td></tr>')

document.write('<tr><td bgcolor="#319ACE" colspan="3" align="center" style="font: 7.5pt verdana">&nbsp</td></tr>')
document.write('<tr><td bgcolor="#FFFFFF" colspan="3" align="center">')
document.write('<table width="775" border="0" cellpadding="0" cellspacing="0"><tr>')
document.write('<td width="180"><a href="http://www.trotalia.com" target="_blank"><img src="img/logoTrotalia.gif" width="161" height="71" border=0/></a></td>')
document.write('<td width="420" ><table border="0" cellpadding="0" cellspacing="0">')
document.write('<tr><td style="color:#52beff; font-family:Arial; font-size:37px;">TRAVEL &amp; TOURISM</td></tr>')
document.write('<tr><td><img src="img/lineaAzul.gif" width="355" height="3" /></td></tr>')
document.write('<tr><td align="right" style="color:#ff5e05; font-family:Arial; font-size:25px; font-style:italic">Your better trip</td></tr>')
document.write('<tr><td style="color:#000000; font-family:Arial; font-size:15px; font-weight:bold">Travel agency in Paseo de Santo Tomás nº6</td></tr>')
document.write('</table></td><td width="170"><br /></td></table>')
document.write('</td></tr>')

document.write('<tr><td style="font: 7.5pt verdana" width="780" bgcolor="#319ACE" colspan="3" align="center">')
document.write('<b><a href="inicio.php" class="pp2">Start up </a>&nbsp;')
document.write(' |&nbsp; <a href="registro.html" class="pp2">News</A>&nbsp; |&nbsp; <a href="javascript:add_bookmark();" class="pp2">Bookmark this site</a>&nbsp;')
document.write(' |&nbsp; <a href="avisolegal.html" class="pp2">Legal advise</a>')
document.write(' |&nbsp; <a href="contacto.html" class="pp2">Contact with us</a>')
document.write(' |&nbsp; <a href="tarifas.html" class="pp2">Rates of publicity</a></b></td></tr></table>')

