function buscarpal (donde, key) {
key=escape(key);
if(donde=="0") top.location.href="http://buscador.terra.com.ve/default.asp?query=" + key + "&ca=";
if(donde=="1") top.location.href="http://buscador.terra.com.ve/default.asp?query=" + key + "&ca=w";
}
document.writeln("<style type=\"text/css\">")
document.writeln("<!-- ") 
document.writeln(".cabeform{font-family:Verdana,Arial,Helvetica,sans-serif;font-size:7.5pt;color:#000000;}a.cabeform{font-family:Verdana,Arial,Helvetica,sans-serif;font-size:7.5pt;color:#000000};a.cabeform:hover{font-family:Verdana,Arial,Helvetica,sans-serif;font-size:7.5pt;color:#000000;}")
document.writeln(".cabewhitefont{font-family:Arial,Helvetica,sans-serif;text-decoration:none;color:#FFFFFF;}a.cabewhitefont{font-family:Arial,Helvetica,sans-serif;text-decoration:none;color:#FFFFFF;}a.cabewhitefont:hover{font-family:Arial,Helvetica,sans-serif;text-decoration:none;color:#FFFFFF;}")
document.writeln(".cabewhitefontbold{font-family:Verdana,Arial,Helvetica;text-decoration:none;color:#FFFFFF;font-weight:bold;}a.cabewhitefontbold{font-family:Verdana,Arial,Helvetica;text-decoration:none;color:#FFFFFF;font-weight:bold;}a.cabewhitefontbold:hover{font-family:Verdana,Arial,Helvetica;text-decoration:none;color:#FFFFFF;font-weight:bold;}")
document.writeln("--> ") 
document.writeln("</style>")

document.writeln('<style type="text/css">');
document.writeln('<!--');
document.writeln('.buscadorGoogle {');
document.writeln('	font-family:Verdana, Arial, Helvetica, sans-serif;');
document.writeln('	width:122;');
document.writeln('	font-size:9px;');
document.writeln('	background-color: #FFFFFF;');
document.writeln('	border: 1px solid #333333;');
document.writeln('	color: #000000;');
document.writeln('	text-decoration: none;');
document.writeln('}');
document.writeln('-->');
document.writeln('</style>');

function _buscar(f) {
 f.action="http://buscador.terra.com.ve/default.asp";
 if (f.query.value.length == 0) { alert('Ingrese el texto que desea buscar.'); f.query.focus(); return false; }
 else return true;
}

function redirect(valor){
  var link = valor;
  if (link.substring(0,1) == "/"){
    link = "http://terra.com.ve" + link;
  }else{
    if (link.substring(0,7) != "http://")
      link = "http://terra.com.ve/" + link;
  }
  if(top.location)
	top.location=link;
  else
    parent.top.location=link;
}
//document.writeln('<script language="JavaScript" src="/includes/cabeceras/js/comun.js"><\/script>');
document.writeln("<table width=\"780\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
  document.writeln("<tr bgcolor=\"FF7F00\">");
    document.writeln("<td rowspan=\"2\" width=\"136\"><a href=\"http://terra.com.ve\" target=\"_top\"><img src=\"/includes/cabeceras/img/logo.gif\" width=\"136\" height=\"32\" border=\"0\" alt=\"Terra\"></a></td>");
	document.writeln("<td width=\"16\"><img src=\"/img/t.gif\" width=\"16\" height=\"24\"></td>");
	document.writeln("<td valign=\"middle\" width=\"628\" align=\"left\">");
	  document.writeln("<table width=\"628\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
	    document.writeln("<tr>");		
		  document.writeln("<td>");
		    document.writeln("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
			document.writeln("<form name=\"canales\">");
			  document.writeln("<tr align=\"left\">");
				document.writeln("<td><font face=\"Verdana, Arial,Helvetica,sans-serif\" size=\"1\">");
				  document.writeln("<select name=\"opcion\" onChange=\"javascript:redirect(this.options[this.selectedIndex].value)\" class=\"cabeform\">");
for (i=0; i<arraycanales.length; i+=3) {
document.write("<option value=\"" + arraycanales[i+1] + "\">");
document.writeln(arraycanales[i]);}
				  document.writeln("</select></font></td>");
				document.writeln("<td width=\"6\"><img src=\"/img/t.gif\" width=\"6\" height=\"8\"></td>");
				document.writeln("<td><font face=\"Verdana, Arial, Helvetica, sans-serif\" size=\"1\">");
				  document.writeln("<select name=\"exclusivos\" onChange=\"Javascript:redirect(this.options[this.selectedIndex].value)\" class=\"cabeform\">");
for (i=0; i<arrayservicios.length; i+=3) {
document.write("<option value=\"" + arrayservicios[i+1] + "\">");
document.writeln(arrayservicios[i]);}
document.writeln("</select></font></td>");
//
// --- Drop Down Menu de Especiales: temporalmente oculto ----- 
//
//document.writeln("<td width=\"6\"><img src=\"img/t.gif\" width=\"6\" height=\"8\"></td>");
//document.writeln("<td><font face=\"Verdana, Arial, Helvetica, sans-serif\" size=\"1\">");
//document.writeln("<select name=\"especiales\" onChange=\"javascript:redirect(this.options[this.selectedIndex].value)\" style=\"font-family:Verdana,Arial,Helvetica,sans-serif;font-size:7.5pt;color:#000000\">");
//for (i=0; i<arrayespeciales.length; i+=3){
//  if (arrayespeciales[i+1] == 0){
//-//    document.write("<option value=\"" + arrayespeciales[i+1] + "\" selected>");
//  }else{
//    document.write("<option value=\"" + arrayespeciales[i+1] + "\">");
//  }
//  document.writeln(arrayespeciales[i]);}
//				  document.writeln("</select></font></td>");
//
//--------------------------------------------------------------
//
			  document.writeln("</tr>");
			document.writeln("</form>");
			document.writeln("</table>");
		  document.writeln("</td>");
//---		  
document.write('		  <td align="center" height="34">');
document.write('   <table border="0" width="273" cellpadding="2" cellspacing="1" bgcolor="824204">');
document.write('     <form name="form_buscar" action="http://buscador.terra.com.ve/default.asp" method="get" onsubmit="return _buscar(this)"><tr>');
document.write('       <td bgcolor="#FFFFFF">');
document.write('	        <table width="100%" border="0" cellspacing="0" cellpadding="0">');
document.write('           <tr>');
document.write('             <td width="120"><input type="text" name="query" class=buscadorGoogle></td>');
document.write('             <td><input type="image" src="/img/bt_buscar2.gif" width="18" height="15"></td>');
document.write('             <td align="right"><img src="/img/logo-google2.gif" width="109" height="18"></td>');
document.write('           </tr>');
document.write('         </table>');
document.write('	      </td>');
document.write('     </tr>');
document.write('     </form>');
document.write('   </table>');
document.write('		  </td>');
/*document.write("<form action='javascript:buscarpal(document.buspal.donde.options[document.buspal.donde.selectedIndex].value, document.buspal.Claus.value)' method=post name=buspal>");
document.write("<td height='34' width='217' align='right'><font face='Verdana, Arial, Helvetica' size=1>");
document.write("<select name=donde style=\"font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 7.5pt; color: #000000\">");
document.write("<option value=0 selected>En Venezuela</option>");
document.write("<option value=1>Toda La Web</option>");
document.write("</select>");
document.write("<img src='http://www1.terra.com.co/img/au.gif' width='6' height='1'>");
document.write("<input name=Claus size=7 style=\"font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 7.5pt; color: #000000\">&nbsp;<input align=absMiddle alt=BUSCAR border=0 height=15 src='http://www1.terra.com.co/img/lupa.gif' type=image width=22 name='image2'>&nbsp;&nbsp; </td>");
document.write("</form>");*/
//document.write("<td width=115 height=34 align=left><img src=\"/img/t.gif\" width=1 height=3><br><b><a href=\"#\" onFocus=\"this.blur();\" onClick=\"javascript:window.open('http://buscador.terra.com.ve/control.asp','','scrollbars=no,toolbar=no,directories=no,menubar=no,resizable=no,width=380,height=308,left=140,top=190'); return false;\" target=\"_self\"><font face=\"verdana,arial,helvetica\" size=1 color=FFFFFF style=\"text-decoration:none;\">Control Paternal</b></font></a></td>");
//---		  
//		  document.writeln("<td width=\"94\"><img src=\"/includes/cabeceras/img/tln.gif\" width=\"94\" height=\"34\" align=\"absmiddle\"></td>");
		document.writeln("</tr>");
	  document.writeln("</table>");
	document.writeln("</td>");
  document.writeln("</tr>");
  document.writeln("<tr>");
    document.writeln("<td colspan=\"2\" align=\"left\" bgcolor=\"FF7F00\">");
      document.writeln("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"644\">");
		document.writeln("<tr>");
		  document.writeln("<td rowspan=\"2\" width=\"16\" align=\"right\"><img src=\"/includes/cabeceras/img/esq_gris.gif\" width=\"16\" height=\"16\"></td>");
		  document.writeln("<td colspan=\"9\" bgcolor=\"#FFFFFF\" height=\"1\"><img src=\"/img/t.gif\" width=\"1\" height=\"1\"></td>");
		document.writeln("</tr>");
		document.writeln("<tr>");
meses = new Array("enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre");
dias = new Array("domingo","lunes","martes","mi&eacute;rcoles","jueves","viernes","s&aacute;bado");
var curdate=new Date();
var mes=curdate.getMonth();
var dia_num=curdate.getDate();
var dia_sem=curdate.getDay();
var anio=curdate.getYear();
if (anio < 2000) anio=anio+1900;
		  document.writeln("<td width=\"348\" bgcolor=\"#5F5F7F\" nowrap><font color=\"#ffffff\" face=\"Arial, Helvetica, sans-serif\" size=\"1\">Venezuela, " + dias[dia_sem]+" "+dia_num+" de "+meses[mes]+" de "+ anio + "</font></td>");
		  document.writeln("<td width=\"15\" bgcolor=\"#5F5F7F\" height=\"15\"><img src=\"/includes/cabeceras/img/inclinada.gif\" width=\"15\" height=\"15\"></td>");
		  document.writeln("<td width=\"55\" bgcolor=\"#5F5F7F\" height=\"15\"><a href=\"http://www.terra.com.ve/SGUP/form_registro.cfm\" class=\"cabewhitefont\"><font size=1>Regístrate</font></a></td>");
		  document.writeln("<td width=\"15\" bgcolor=\"#5F5F7F\" height=\"15\"><img src=\"/includes/cabeceras/img/inclinada.gif\" width=\"15\" height=\"15\"></td>");
		  document.writeln("<td width=\"58\" bgcolor=\"#5F5F7F\" height=\"15\"><a href=\"http://terra.com.ve/info/privacidad.htm\" class=\"cabewhitefont\"><font size=1>Privacidad</font></a></td>");
		  document.writeln("<td width=\"15\" bgcolor=\"#5F5F7F\" height=\"15\"><img src=\"/includes/cabeceras/img/inclinada.gif\" width=\"15\" height=\"15\"></td>");
		  document.writeln("<td width=\"62\" bgcolor=\"#5F5F7F\" height=\"15\"><a href=\"http://terra.com.ve/info/copy.htm\" class=\"cabewhitefont\"><font size=1>Aviso Legal</font></a></td>");
		  document.writeln("<td width=\"15\" bgcolor=\"#5F5F7F\" height=\"15\"><img src=\"/includes/cabeceras/img/inclinada.gif\" width=\"15\" height=\"15\"></td>");
		  document.writeln("<td width=\"45\" bgcolor=\"#5F5F7F\" height=\"15\"><a href=\"http://terra.com.ve/\" class=\"cabewhitefont\"><font size=1>Portada</font></a></td>");
		document.writeln("</tr>");
	  document.writeln("</table>");
	document.writeln("</td>");
  document.writeln("</tr>");
  document.writeln("<tr bgcolor=\"#FFFFFF\">");
    document.writeln("<td colspan=\"3\" height=\"1\"><img src=\"/img/t.gif\" width=\"1\" height=\"1\"></td>");
  document.writeln("</tr>");
document.writeln("</table>");

