function verBusqueda(search){document.getElementById("hidSearch").value=search;document.getElementById("hidPage").value=0;document.getElementById("frmRingtone").submit();}
function nextRingtonePage(){document.getElementById("hidPage").value++;document.getElementById("frmRingtone").submit();}
function prevRingtonePage(){document.getElementById("hidPage").value--;document.getElementById("frmRingtone").submit();}
function enviarHoroscopo(){if(document.getElementById("ddlSigno").value!="--"){document.getElementById("frmHoroscopo").submit();}
else{alert("Debes seleccionar un signo");}}
function OpenClima(){var cwindow=new CWindow("../_php/ClimaMain.php","Clima");cwindow.width=500;cwindow.height=500;OpenWindow(cwindow);}
function OpenRutas(){var cwindow=new CWindow("../_php/Rutas.php","Rutas");cwindow.width=500;cwindow.height=650;OpenWindow(cwindow);}
function OpenMapas(){var cwindow=new CWindow("../_php/Mapas.php","Rutas");cwindow.width=500;cwindow.height=500;OpenWindow(cwindow);}
function canHome(){if(window.navigator.appName.toLowerCase().indexOf("msie")!=-1||window.navigator.appName.toLowerCase().indexOf("microsoft internet explorer")!=-1){return true;}else{alert("Esta función no es soportada por su navegador. Deberá hacerlo de forma manual.");return false;}}
function Clear(button){var txt;if(button==1){txt=document.getElementById("searchBox");}else{txt=document.getElementById("searchBox2");}
txt.value="";txt.focus();}
function SearchEmpleo(button)
{var txt;if(button==1)
{txt=document.getElementById("searchBox");}
else
{txt=document.getElementById("searchBox2");}
window.location.href=url+"/buscar/1001consejos/"+txt.value;}
function Search(button){var txt;var url="http://www.1001Consejos.com"
var liv=document.getElementById("liVideos");var li1=document.getElementById("li1001Consejos");var lim=document.getElementById("liMapasRutas");var lii=document.getElementById("liInternet");var lis=document.getElementById("liShopping");if(button==1){txt=document.getElementById("searchBox");}else{txt=document.getElementById("searchBox2");}
if(liv.className!="undefined"&&liv.className!=""){document.cookie="miVideoTxt="+txt.value+"; expires="+Caduca(1)+"; path=/";document.cookie="mivideo=; expires="+Caduca(1)+"; path=/";window.location.href=url+"/buscar/videos/"+txt.value;}
else if(li1.className!="undefined"&&li1.className!="")
{document.cookie="mibusqueda="+txt.value+"; expires="+Caduca(1)+"; path=/";window.location.href=url+"/buscar/1001consejos/"+txt.value;}
else if(lim.className!="undefined"&&lim.className!=""){var frm=document.getElementById("frmMapas");var txtm=document.getElementById("txtAdress");txtm.value=txt.value;frm.submit();}
else if(lii.className!="undefined"&&lii.className!=""){window.open("http://www.google.com/search?q="+txt.value,"_blank");}
else if(lis.className!="undefined"&&lis.className!=""){window.open(url+"/shopping/");}}
function crearAjax(){var xmlhttp=new XMLHttpRequest()
return xmlhttp;}
function Caduca(dias){var hoy=new Date()
var msEnXDias=eval(dias)*24*60*60*1000
hoy.setTime(hoy.getTime()+msEnXDias)
return(hoy.toGMTString())}
$(document).ready(function(){$('#state').hide();$('#countrySelect').change(function(){if($(this).val()=="US"){$('#state').show();}else{$('#state').hide();}})})
