function nextPage(valor)
{	
	//document.forms.frm.pagina.value = valor;
	if(document.getElementById("pagina") != null) //AREA PERSONAL
	{
		document.getElementById("pagina").value = valor;
	}
	
	if(document.getElementById("ucParrillaResult_pagina") != null) //PARRILLA
	{
		document.getElementById("ucParrillaResult_pagina").value = valor;
	}
	
	document.forms.frm.submit();	
}

function  addToFavorites(valor)
{	
	var pregunta=window.confirm(document.forms.frm.txtFraseAddToFavorites.value);
	if (pregunta) {
		document.forms.frm.addtofavorites.value = valor;
		document.forms.frm.submit();
	}	
}
function  RemoveFavorites(valor)
{	
	var pregunta=window.confirm(document.forms.frm.txtFraseRemoveFavorites.value);
	if (pregunta) {
		document.forms.frm.removefavorites.value = valor;
		document.forms.frm.submit();
	}	
}
function notLogged(valor)
{	
	alert(valor);	
}

function trOver(obj) {
	if(obj.className != "trgridactual")
	{
	obj.className = "trgridover";	
	}	
}

function trOut(obj, cssClass) {	
	if(obj.className != "trgridactual")
	{
	obj.className = cssClass;	
	}
}


function newhrf(a,b)
    {    
    document.getElementById(b).href = a;
    }