function goToRequestedUrl(url) {    
    window.location.href=url;
}

function goToRequestedUrl1(selIndex, lang, category, subCategory, currPageNo, currPicsPerPage, picSize, displayNames) {
    
    var nextPageNo;
    if (selIndex == 0) {
        nextPageNo = (Math.floor(((currPageNo-1) * currPicsPerPage) / 24))+1;
    }
    else if (selIndex == 1) {
        nextPageNo = (Math.floor(((currPageNo-1) * currPicsPerPage) / 3))+1;
    }
    else if (selIndex == 2) {
        nextPageNo = (Math.floor(((currPageNo-1) * currPicsPerPage) / 2))+1;
    }
    else if (selIndex == 3) {
        nextPageNo = (Math.floor(((currPageNo-1) * currPicsPerPage) / 1))+1;
    }
    else if (selIndex == 4) {
        nextPageNo = (Math.floor(((currPageNo-1) * currPicsPerPage) / 1))+1;
    }
    
    window.location.href='showGallery.jsp?lang='+lang+'&category='+category+'&subCategory='+subCategory+'&pageNo='+nextPageNo+'&picSize='+picSize+'&displayNames='+displayNames;
}


function goToRequestedUrl2(url, displayNames) {    
    window.location.href=url+'&displayNames='+displayNames;
}

function goToRequestedUrl3(lang, category, subCategory, season, color, size, picGroupId, displayNames) {
    window.location.href='plantInfo.jsp?lang='+lang+'&category='+category+'&subCategory='+subCategory+'&season='+season+'&color='+color+'&size='+size+'&picGroupId='+picGroupId+'&displayNames='+displayNames+'&verify=true';
}

function goToRequestedUrl4(lang, category, subCategory, season, color, size, picGroupId, displayNames, viewType) {
    window.location.href='plantInfo.jsp?lang='+lang+'&category='+category+'&subCategory='+subCategory+'&season='+season+'&color='+color+'&size='+size+'&picGroupId='+picGroupId+'&displayNames='+displayNames+'&viewType='+viewType+'&verify=true';
}

function goToRequestedSection(lang, category, picSize, displayNames) {    
    window.location.href='showGallery.jsp?lang='+lang+'&category='+category+'&subCategory=all&pageNo=1&picSize='+picSize+'&displayNames='+displayNames;
}

function add2Favorites(theTitle) {

	if (window.sidebar) {
		window.sidebar.addPanel(theTitle, window.location.href, "");
	}
	else if (window.external) {
		window.external.AddFavorite(window.location.href, theTitle);
	}
}
