<!--

function UpdateStartRow(theForm, p_start_row, start_row_offset, p_nextPageType)
{
 var nextRow = eval(p_start_row) + eval(start_row_offset);
 if (nextRow < 0) nextRow = 1;

 if((start_row_offset < 0)
 && (p_nextPageType == "SearchInDepth" && nextRow <= 3)
 || (p_nextPageType == "SearchNews" && nextRow <= 10)
 || (p_nextPageType == "SearchBDA" && nextRow <= 5)){
  theForm.hub.value = "Search";
 } 
 else if ((start_row_offset < 0)
 && (p_nextPageType == "GTSearchInDepth" && nextRow <=3)
 || (p_nextPageType == "GTSearch" && nextRow <= 10)){
  theForm.hub.value = "TechSearch";
 } else {
  theForm.hub.value = p_nextPageType;
 }

 theForm.start_row.value = nextRow;
 theForm.current_row.value = nextRow;
 theForm.submit();
}

function test()
{
    alert("test it");
}

function displayArchiveResultMoreGT(theForm, theCategory){
    theForm.category.value = theCategory;
    theForm.submit();
}

function displayArchiveResultGT(theForm){
    theForm.submit();
}

function checkCategoryGT(theForm, theCategory, theHub){
    if((theCategory != null) || (theCategory != "")) {
        if(theHub.indexOf("AtPlay") >= 0){
            if(theCategory == "AtPlay-ConsoleGames"){
                theForm.category.selectedIndex = 1;
            } else if (theCategory == "AtPlay-ConsoleGear"){
                theForm.category.selectedIndex = 2;
            } else if (theCategory == "AtPlay-ComputerGames"){
                theForm.category.selectedIndex = 3;
            } else if (theCategory == "AtPlay-ComputerGear"){
                theForm.category.selectedIndex = 4;
            } else if (theCategory == "AtPlay-MobileGamesGear"){
                theForm.category.selectedIndex = 5;
            } else if (theCategory == "AtPlay-Gamecube"){
                theForm.category.selectedIndex = 6;
            } else if (theCategory == "AtPlay-Playstation"){
                theForm.category.selectedIndex = 7;
            } else if (theCategory == "AtPlay-Xbox"){
                theForm.category.selectedIndex = 8;
            } else {
                theForm.category.selectedIndex = 0;
            }
        }
        else if (theHub.indexOf("TechReviews") >= 0){
            if(theCategory =="TechReviews-Hardware"){
                theForm.category.selectedIndex = 2;
            } else if (theCategory =="TechReviews-Software"){
                theForm.category.selectedIndex = 7;
            } else if (theCategory =="TechReviews-HomeOfficeNetworking"){
                theForm.category.selectedIndex = 3;
            } else if (theCategory =="TechReviews-MobileGear"){
                theForm.category.selectedIndex = 4;
            } else if (theCategory == "TechReviews-AudioVideo"){
                theForm.category.selectedIndex = 1;
            } else if (theCategory == "TechReviews-PhotographyImaging"){
                theForm.category.selectedIndex = 6;
            } else if (theCategory == "TechReviews-PeripheralsAccessories"){
                theForm.category.selectedIndex = 5;
            } else {
                theForm.category.selectedIndex = 0;
            }
        }
    }
    else {
        theForm.category.selectedIndex = 0;
    }
}

function submitCategoryGT(theForm, theCategory, theHub){
    checkCategoryGT(theForm, theCategory, theHub);
    theForm.query.value = "";
    theForm.submit();
}

// -->
