function buscar()
{
	if(document.getElementById("formbuscador").QUERYTXT.value == "" || document.getElementById("formbuscador").QUERYTXT.value == "realice su búsqueda") { alert("Debe introducir término(s) a buscar"); }
	else { 
		document.getElementById("formbuscador").action = "http://buscar.telefonica.es/jsp/index.jsp";
		document.getElementById("formbuscador").submit(); 
	}

}
function goQuery()
{
var sString;
var sLib;
var sTQuery;
var sNQuery;
var sNResult;
sString=document.frmQuery.txtQueryString.value;
//document.frmQuery.action="http://buscar.telefonica.es/jsp/index.jsp";
if (sString==''){
	alert('Debe introducir término/os a buscar');
}
else{
	document.frmQuery.action="http://buscar.telefonica.es/jsp/index.jsp";
	document.frmQuery.QUERYTXT.value=escape(sString);
	document.frmQuery.FILEINI.value='';
	document.frmQuery.QUERYSTRING.value='';
	document.frmQuery.SALADEPRENSA.value='';
	document.frmQuery.PAGINA.value='0';
	document.frmQuery.IDIOM.value='RW_SPANISH';
	document.frmQuery.PAIS.value='ES';
	document.frmQuery.submit();
}
}
function goQueryAvan()
{	document.frmQuery.action="http://buscar.telefonica.es/jsp/index.jsp";
	document.frmQuery.QUERYTXT.value='';
	document.frmQuery.QUERYSTRING.value='';
	document.frmQuery.FILEINI.value='';
	document.frmQuery.SALADEPRENSA.value='';
	document.frmQuery.PAGINA.value='1';
	document.frmQuery.IDIOM.value='RW_SPANISH';
	document.frmQuery.PAIS.value='ES';
	document.frmQuery.submit();
}
function goClean()
{
document.frmQuery.txtQueryString.value='';
}
function setfocus() {
document.frmQuery.txtQueryString.focus();
}
// Las funciones que acaban en W se utilizan en "Así es Telefónica"
function goQueryW()
{
var sString;
var sLib;
var sTQuery;
var sNQuery;
var sNResult;
if (ns4)
{
	sString=document.tablaoscura.document.frmQuery.txtQueryString.value;
	document.tablaoscura.document.frmQuery.action="http://buscar.telefonica.es/jsp/index.jsp";
}
else
{
	sString=document.frmQuery.txtQueryString.value;
	document.frmQuery.action="http://buscar.telefonica.es/jsp/index.jsp";
}

if (sString==''){
	alert('Debe introducir término/os a buscar');
	
}
else{
	if (ns4)
	{
		document.tablaoscura.document.frmQuery.QUERYTXT.value=escape(sString);
		document.tablaoscura.document.frmQuery.FILEINI.value='';
		document.tablaoscura.document.frmQuery.QUERYSTRING.value='';
		document.tablaoscura.document.frmQuery.FILEINI.value='asiestel';
		document.tablaoscura.document.frmQuery.PAGINA.value='0';
		document.tablaoscura.document.frmQuery.IDIOM.value='RW_SPANISH';
		document.tablaoscura.document.frmQuery.PAIS.value='ES';
		document.tablaoscura.document.frmQuery.submit();
	}
	else
	{
		document.frmQuery.QUERYTXT.value=escape(sString);
		document.frmQuery.FILEINI.value='';
		document.frmQuery.QUERYSTRING.value='';
		document.frmQuery.FILEINI.value='asiestel';
		document.frmQuery.PAGINA.value='0';
		document.tablaoscura.document.frmQuery.IDIOM.value='RW_SPANISH';
		document.tablaoscura.document.frmQuery.PAIS.value='ES';		
		document.frmQuery.submit();
	}
}
}
function goQueryAvanW()
{		
	if (ns4)
	{	
		document.tablaoscura.document.frmQuery.action="http://buscar.telefonica.es/jsp/index.jsp";
		document.tablaoscura.document.frmQuery.QUERYTXT.value='';
		document.tablaoscura.document.frmQuery.QUERYSTRING.value='';
		document.tablaoscura.document.frmQuery.FILEINI.value='asiestel';
		document.tablaoscura.document.frmQuery.PAGINA.value='1';
		document.tablaoscura.document.frmQuery.IDIOM.value='RW_SPANISH';
		document.tablaoscura.document.frmQuery.PAIS.value='ES';
		document.tablaoscura.document.frmQuery.submit();
	}
	else
	{
		document.frmQuery.action="http://buscar.telefonica.es/jsp/index.jsp";
		document.frmQuery.QUERYTXT.value='';
		document.frmQuery.QUERYSTRING.value='';
		document.frmQuery.FILEINI.value='asiestel';
		document.frmQuery.PAGINA.value='1';
		document.frmQuery.IDIOM.value='RW_SPANISH';
		document.frmQuery.PAIS.value='ES';
		document.frmQuery.submit();
	}
}
function goCleanW()
{
	if (ns4)
		document.tablaoscura.document.frmQuery.txtQueryString.value='';
	else
		document.frmQuery.txtQueryString.value='';
}