function PaintYaTvSearch(noline, section, bgrcolor) { 
 
if (arguments.length<2)  { 
  section = 'neutro'; 
  bgrcolor = '1468FF'; 
}  
 
if (arguments.length==0) 
  borderLine = '72C3D6'; 
else if (noline == 0) 
  borderLine = '72C3D6'; 
else  
  borderLine = 'B5F6FF'; 
 
document.write ('<table valign="top" border="0" cellspacing="0" cellpadding="0" width="650" bgcolor="#FFFFFF">'); 
document.write ('<tr>'); 
document.write ('<td rowspan="3" width="24"><img src="http://www.yatv.com/imgyatv2/botones/flecha_'+section+'.gif" width="24" height="17"></td>'); 
document.write ('<td><img src="http://www.yatv.com/imgyatv2/sol_up.gif" width="164" height="2"></td>'); 
document.write ('<td rowspan="3" width="6" bgcolor="B5F6FF" valign="top"><img src="http://www.yatv.com/imgyatv2/sol_fin.gif" width="6" height="17"></td>'); 
document.write ('<td rowspan="3" width="170" bgcolor="B5F6FF" valign="top"><img src="http://www.yatv.com/imgyatv2/px_white.gif" width="455" height="1"></td>'); 
document.write ('<td rowspan="3" bgcolor="#72C3D6" width="1"><img src="http://www.yatv.com/imgyatv2/spacer.gif" width="1" height="17"></td>'); 
document.write ('</tr><tr>'); 
document.write ('<td bgcolor="76DCF5" width="164" height="13" valign="top"><a href="#" class="yatv20_title">BUSCADOR MULTIMEDIA</a></td>'); 
document.write ('</tr><tr>'); 
document.write ('<td><img src="http://www.yatv.com/imgyatv2/sol_down.gif" width="164" height="2"></td>'); 
document.write ('</tr></table>'); 
document.write ('<table width="650" border="0" cellspacing="0" cellpadding="0">'); 
document.write ('<tr><td bgcolor="#FFFFFF" width="1"><img src="http://www.yatv.com/imgyatv2/spacer.gif" width="1" height="20"></td>'); 
document.write ('<td bgcolor="B5F6FF" valign="top" width="648">'); 
document.write ('<table border=0 width=646 cellpadding=0 cellspacing=0 align="center">'); 
document.write ('<form action="http://www2.yatv.com/jsp/JYatvSearchResults.jsp" onSubmit="return redirection(this)" name="formatSearch" method="get">'); 
document.write ('<tr><td bgcolor="B5F6FF" align="center">'); 
document.write ('<input type="radio" name="format" value="video" checked="checked">'); 
document.write ('<span class="yatv20_searchtext">V&iacute;deo&nbsp;&nbsp;</span>'); 
document.write ('<input type="radio" name="format" value="image">'); 
document.write ('<span class="yatv20_searchtext">Fotos&nbsp;&nbsp;</span>'); 
document.write ('<input type="radio" name="format" value="cd">'); 
document.write ('<span class="yatv20_searchtext">CDs&nbsp;&nbsp;</span>'); 
document.write ('<input type="radio" name="format" value="dvd">'); 
document.write ('<span class="yatv20_searchtext">DVDs&nbsp;&nbsp;</span>'); 
document.write ('<input type="radio" name="format" value="cartelera">'); 
document.write ('<span class="yatv20_searchtext">Cartelera&nbsp;&nbsp;</span>'); 
document.write ('</td><td bgcolor="B5F6FF" align="right"><input type="hidden" name="from" value="yatv"><input type=text size=30 style="width:210" name="query" class="yatv20_fieldtext"></td>'); 
document.write ('<td bgcolor="B5F6FF" align="center"><img src="http://www.yatv.com/imgyatv2/spacer.gif" width="3" height="1"></td>'); 
document.write ('<td bgcolor="B5F6FF" align="center">'); 
document.write ('<table align="left" border="0" cellspacing="0" cellpadding="0">'); 
document.write ('<tr>'); 
document.write ('<td rowspan="3"><img src="http://imgserv.ya.com/yatv2.com/img/botones/b_'+section+'_l.gif" width="2" height="17"></td>'); 
document.write ('<td><img src="http://imgserv.ya.com/yatv2.com/img/botones/b_'+section+'_t.gif" width="70" height="2"></td>'); 
document.write ('<td rowspan="3"><img src="http://imgserv.ya.com/yatv2.com/img/botones/b_'+section+'_r.gif" width="2" height="17"></td>'); 
document.write ('</tr><tr>'); 
document.write ('<td bgcolor="'+bgrcolor+'" align="center" valign="bottom" height="13"><a href="javascript:redirection(this);" class="yatv20_white_title">BUSCAR</a></td>'); 
document.write ('</tr><tr>'); 
document.write ('<td valign="bottom"><img src="http://imgserv.ya.com/yatv2.com/img/botones/b_'+section+'_d.gif" width="70" height="2"></td>'); 
document.write ('</tr></table></td></tr></form></table></td>'); 
document.write ('<td bgcolor="#72C3D6" width="1" align="left"><img src="http://www.yatv.com/imgyatv2/spacer.gif" width="1" height="28"></td>'); 
document.write ('</tr><tr><td colspan="3" bgcolor="' + borderLine +  '"><img src="http://www.yatv.com/imgyatv2/spacer.gif" width="610" height="1"></td>'); 
document.write ('</tr></table>'); 
} 
 
function PaintYaTvSearchDown(section, bgrcolor) { 
 
if (arguments.length<1)  { 
  section = 'neutro'; 
  bgrcolor = '1468FF'; 
}  
 
   
document.write ('<table valign="top" border="0" cellspacing="0" cellpadding="0" width="650" bgcolor="#FFFFFF">'); 
document.write ('<tr>'); 
document.write ('<td rowspan="3" width="24"><img src="http://www.yatv.com/imgyatv2/botones/flecha_'+section+'.gif" width="24" height="17"></td>'); 
document.write ('<td><img src="http://www.yatv.com/imgyatv2/sol_up.gif" width="164" height="2"></td>'); 
document.write ('<td rowspan="3" width="6" bgcolor="B5F6FF" valign="top"><img src="http://www.yatv.com/imgyatv2/sol_fin.gif" width="6" height="17"></td>'); 
document.write ('<td rowspan="3" width="170" bgcolor="B5F6FF" valign="top"><img src="http://www.yatv.com/imgyatv2/px_white.gif" width="455" height="1"></td>'); 
document.write ('<td rowspan="3" bgcolor="#72C3D6" width="1"><img src="http://www.yatv.com/imgyatv2/spacer.gif" width="1" height="17"></td>'); 
document.write ('</tr><tr>'); 
document.write ('<td bgcolor="76DCF5" width="164" height="13" valign="top"><a href="#" class="yatv20_title">BUSCADOR MULTIMEDIA</a></td>'); 
document.write ('</tr><tr>'); 
document.write ('<td><img src="http://www.yatv.com/imgyatv2/sol_down.gif" width="164" height="2"></td>'); 
document.write ('</tr></table>'); 
document.write ('<table width="650" border="0" cellspacing="0" cellpadding="0">'); 
document.write ('<tr><td bgcolor="#FFFFFF" width="1"><img src="http://www.yatv.com/imgyatv2/spacer.gif" width="1" height="20"></td>'); 
document.write ('<td bgcolor="B5F6FF" valign="top" width="648">'); 
document.write ('<table border=0 width=646 cellpadding=0 cellspacing=0 align="center">'); 
document.write ('<form action="http://www2.yatv.com/jsp/JYatvSearchResults.jsp" onSubmit="return redirection2(this)" name="formatSearch2" method="get">'); 
 
document.write ('<tr><td bgcolor="B5F6FF" align="center">'); 
document.write ('<input type="radio" name="format" value="video" checked="checked">'); 
document.write ('<span class="yatv20_searchtext">V&iacute;deo&nbsp;&nbsp;</span>'); 
document.write ('<input type="radio" name="format" value="image">'); 
document.write ('<span class="yatv20_searchtext">Fotos&nbsp;&nbsp;&nbsp;</span>'); 
document.write ('<input type="radio" name="format" value="cd">'); 
document.write ('<span class="yatv20_searchtext">CDs&nbsp;&nbsp;&nbsp;</span>'); 
document.write ('<input type="radio" name="format" value="dvd">'); 
document.write ('<span class="yatv20_searchtext">DVDs&nbsp;&nbsp;</span>'); 
document.write ('<input type="radio" name="format" value="cartelera">'); 
document.write ('<span class="yatv20_searchtext">Cartelera&nbsp;&nbsp;&nbsp;</span>'); 
document.write ('</td><td bgcolor="B5F6FF" align="right"><input type="hidden" name="from" value="yatv"><input type=text size=30 style="width:210" name="query" class="yatv20_fieldtext"></td>'); 
document.write ('<td bgcolor="B5F6FF" align="center"><img src="http://www.yatv.com/imgyatv2/spacer.gif" width="3" height="1"></td>'); 
document.write ('<td bgcolor="B5F6FF" align="center">'); 
document.write ('<table align="left" border="0" cellspacing="0" cellpadding="0">'); 
document.write ('<tr>'); 
document.write ('<td rowspan="3"><img src="http://imgserv.ya.com/yatv2.com/img/botones/b_'+section+'_l.gif" width="2" height="17"></td>'); 
document.write ('<td><img src="http://imgserv.ya.com/yatv2.com/img/botones/b_'+section+'_t.gif" width="70" height="2"></td>'); 
document.write ('<td rowspan="3"><img src="http://imgserv.ya.com/yatv2.com/img/botones/b_'+section+'_r.gif" width="2" height="17"></td>'); 
document.write ('</tr><tr>'); 
document.write ('<td bgcolor="'+bgrcolor+'" align="center" valign="bottom" height="13"><a href="javascript:redirection2();" class="yatv20_white_title">BUSCAR</a></td>'); 
document.write ('</tr><tr>'); 
document.write ('<td valign="bottom"><img src="http://imgserv.ya.com/yatv2.com/img/botones/b_'+section+'_d.gif" width="70" height="2"></td>'); 
document.write ('</tr></table></td></tr></form></table></td>'); 
document.write ('<td bgcolor="#72C3D6" width="1" align="left"><img src="http://www.yatv.com/imgyatv2/spacer.gif" width="1" height="28"></td>'); 
document.write ('</tr><tr><td colspan="3" bgcolor="72C3D6"><img src="http://www.yatv.com/imgyatv2/spacer.gif" width="610" height="1"></td>'); 
document.write ('</tr></table>'); 
}                    
             
function redirection(r){  
    var f = document.forms['formatSearch'];  
	var checkedRadio;  
	
		if(f.query.value.length > 0) {  
			for(var i=0;i<f.format.length;i++){  
				if(f.format[i].checked){		  
					checkedRadio = f.format[i].value;  
					break;  
				}  
			}  
		  
			if(arguments.length==0){  
				if(checkedRadio=='video'){  
					f.submit();  
				}  
				if(checkedRadio=='image'){  
					//f.submit();  
					window.location.href="http://busca.ya.com/search?origen=social&buscar="+f.query.value+"&destino=imagen";
				}  
				if(checkedRadio=='cd'){  
					window.location.href="http://www.discoweb.com/es/Music/scripts/buscar.asp?columna=interprete&palabra=" + f.query.value;  
				}  
				if(checkedRadio=='dvd'){  
					window.location.href="http://www.ofertadvd.com/es/movies/scripts/buscar.asp?columna=titulo&palabra=" + f.query.value;			  
				}  
				if(checkedRadio=='cartelera'){			  
					window.location.href="http://www2.yatv.com/jsp/JYatvBillboardSearch.jsp?s=15420&mode=text&type=title&results=5000&title=on&query=" + f.query.value;			  
				}
				if(checkedRadio=='todoyatv'){
					//var url = 'http://buscar.ya.com/fast-cgi/tsc?mandant=toi&device=html&context=internet-tab&PortalLanguage=es&UserLanguage=es&search_type=profi&type=all&catalog=all&iocr=yes&q_phrase=&q='+ f.query.value + '&pageSection_q=%2Bnormal.all%3A&q_opt=&pageSection_q_opt=%2Bnormal.all%3A&q_not=&pageSection_q_not=-normal.all%3A&lr=V1&language=any&searchSite=yatv.com&excludeSite=&comprisedLink=&SuchenBtn=+Buscar+';
					var url =  "http://buscar.ya.com/fast-cgi/tsc?q=" +  f.query.value  +"&Submit=Buscar&type=all&PortalLanguage=es&UserLanguage=es&mandant=toi&device=html&iocr=yes&search_type=new&searchSite=www.yatv.com&context=ya-tab";
					window.open(url);
				}  
				  
			} else {  
				if(checkedRadio=='video'){  
					return true;  
				}  
				if(checkedRadio=='image'){  
					//return true;  
					window.location.href="http://buscar.ya.com/fast-cgi/tsc?mandant=toi&portallanguage=es&userlanguage=es&device=html&context=img&iocr=yes&dia=tsc&hdr=0&q=" + f.query.value +" &fmt=all"
					return false;
				}  
				if(checkedRadio=='cd'){  
					window.location.href="http://www.discoweb.com/es/Music/scripts/buscar.asp?columna=interprete&palabra=" + f.query.value;  
					return false;  
				}  
				if(checkedRadio=='dvd'){  
					window.location.href="http://www.ofertadvd.com/es/movies/scripts/buscar.asp?columna=titulo&palabra=" + f.query.value;			  
					return false;  
				}  
				if(checkedRadio=='cartelera'){			  
					window.location.href="http://www2.yatv.com/jsp/JYatvBillboardSearch.jsp?s=15420&mode=text&type=title&results=5000&title=on&query=" + f.query.value;			  
					return false;  
				} 
				if(checkedRadio=='todoyatv'){
					//var url = 'http://buscar.ya.com/fast-cgi/tsc?mandant=toi&device=html&context=internet-tab&PortalLanguage=es&UserLanguage=es&search_type=profi&type=all&catalog=all&iocr=yes&q_phrase=&q='+ f.query.value + '&pageSection_q=%2Bnormal.all%3A&q_opt=&pageSection_q_opt=%2Bnormal.all%3A&q_not=&pageSection_q_not=-normal.all%3A&lr=V1&language=any&searchSite=yatv.com&excludeSite=&comprisedLink=&SuchenBtn=+Buscar+';
					var url =  "http://buscar.ya.com/fast-cgi/tsc?q="  + f.query.value  +"&Submit=Buscar&type=all&PortalLanguage=es&UserLanguage=es&mandant=toi&device=html&iocr=yes&search_type=new&searchSite=www.yatv.com&context=ya-tab";
					window.open(url);
					return false;
				}  
			}  
		}
}           

function redirection2(r){  
    var f = document.forms['formatSearch2'];  
	var checkedRadio;  
	
		if(f.query.value.length > 0) {  
			for(var i=0;i<f.format.length;i++){  
				if(f.format[i].checked){		  
					checkedRadio = f.format[i].value;  
					break;  
				}  
			}  
		  
			if(arguments.length==0){  
				if(checkedRadio=='video'){  
					f.submit();  
				}  
				if(checkedRadio=='image'){  
					//f.submit();  
					window.location.href="http://buscar.ya.com/fast-cgi/tsc?mandant=toi&portallanguage=es&userlanguage=es&device=html&context=img&iocr=yes&dia=tsc&hdr=0&q=" + f.query.value +" &fmt=all"
				}  
				if(checkedRadio=='cd'){  
					window.location.href="http://www.discoweb.com/es/Music/scripts/buscar.asp?columna=interprete&palabra=" + f.query.value;  
				}  
				if(checkedRadio=='dvd'){  
					window.location.href="http://www.ofertadvd.com/es/movies/scripts/buscar.asp?columna=titulo&palabra=" + f.query.value;			  
				}  
				if(checkedRadio=='cartelera'){			  
					window.location.href="http://www2.yatv.com/jsp/JYatvBillboardSearch.jsp?s=15420&mode=text&type=title&results=5000&title=on&query=" + f.query.value;			  
				}
				if(checkedRadio=='todoyatv'){
					//var url = 'http://buscar.ya.com/fast-cgi/tsc?mandant=toi&device=html&context=internet-tab&PortalLanguage=es&UserLanguage=es&search_type=profi&type=all&catalog=all&iocr=yes&q_phrase=&q='+ f.query.value + '&pageSection_q=%2Bnormal.all%3A&q_opt=&pageSection_q_opt=%2Bnormal.all%3A&q_not=&pageSection_q_not=-normal.all%3A&lr=V1&language=any&searchSite=yatv.com&excludeSite=&comprisedLink=&SuchenBtn=+Buscar+';
					var url =  "http://buscar.ya.com/fast-cgi/tsc?q=" +  f.query.value  +"&Submit=Buscar&type=all&PortalLanguage=es&UserLanguage=es&mandant=toi&device=html&iocr=yes&search_type=new&searchSite=www.yatv.com&context=ya-tab";
					window.open(url);
				}  
				  
			} else {  
				if(checkedRadio=='video'){  
					return true;  
				}  
				if(checkedRadio=='image'){  
					//return true;  
					window.location.href="http://buscar.ya.com/fast-cgi/tsc?mandant=toi&portallanguage=es&userlanguage=es&device=html&context=img&iocr=yes&dia=tsc&hdr=0&q=" + f.query.value +" &fmt=all"
					return false;
				}  
				if(checkedRadio=='cd'){  
					window.location.href="http://www.discoweb.com/es/Music/scripts/buscar.asp?columna=interprete&palabra=" + f.query.value;  
					return false;  
				}  
				if(checkedRadio=='dvd'){  
					window.location.href="http://www.ofertadvd.com/es/movies/scripts/buscar.asp?columna=titulo&palabra=" + f.query.value;			  
					return false;  
				}  
				if(checkedRadio=='cartelera'){			  
					window.location.href="http://www2.yatv.com/jsp/JYatvBillboardSearch.jsp?s=15420&mode=text&type=title&results=5000&title=on&query=" + f.query.value;			  
					return false;  
				} 
				if(checkedRadio=='todoyatv'){
					//var url = 'http://buscar.ya.com/fast-cgi/tsc?mandant=toi&device=html&context=internet-tab&PortalLanguage=es&UserLanguage=es&search_type=profi&type=all&catalog=all&iocr=yes&q_phrase=&q='+ f.query.value + '&pageSection_q=%2Bnormal.all%3A&q_opt=&pageSection_q_opt=%2Bnormal.all%3A&q_not=&pageSection_q_not=-normal.all%3A&lr=V1&language=any&searchSite=yatv.com&excludeSite=&comprisedLink=&SuchenBtn=+Buscar+';
					var url =  "http://buscar.ya.com/fast-cgi/tsc?q="  + f.query.value  +"&Submit=Buscar&type=all&PortalLanguage=es&UserLanguage=es&mandant=toi&device=html&iocr=yes&search_type=new&searchSite=www.yatv.com&context=ya-tab";
					window.open(url);
					return false;
				}  
			}  
		} 
}           
         
          
           
         
      