
function JumpToPage(iPageNumber)
{var strAddedCategory="?";var strURL=g_ContextPath+"/games-genres/gameList";if(""!=g_strCurrentPartnerName)
{strURL+=strAddedCategory+"partner="+g_strCurrentPartnerName;strAddedCategory="&";}
if(""!=strCategory)
{strURL+=strAddedCategory+"genre="+strCategory;strAddedCategory="&";}
if(""!=strNameLike)
{strURL+=strAddedCategory+"q="+strNameLike;strAddedCategory="&";}
if(""!=strSortBy)
{strURL+=strAddedCategory+"sortBy="+strSortBy;strAddedCategory="&";}
strURL+=strAddedCategory+"pageNumber="+iPageNumber;window.location.href=strURL;}
function OnSortChange(strNewSort,strBuildURL,strSearch,iCount)
{var strURL=strBuildURL;var strSortBy="";if(iCount==0)
{strURL+="?";}
else
{strURL+="&";}
strURL+="sortBy="+strNewSort;if(strSearch)
{strSearch=replaceAll(strSearch,"\"","\\\"");strSearch=escape(strSearch);strSearch=replaceAll(strSearch,"+","%2b");strURL+="&q="+strSearch;}
window.location.href=strURL;}