
var globalHostVar = '/';




/**
 * Function for executing a tab switch from/to font results/details
 */
function executeTabSwitch(pageUrl, currPage, prevStartedAt, itemsPerPage) {
	
	var actionUrl = globalHostVar+pageUrl;
	var addObjectIdsString = "?currentPage="+currPage
							+"&previouslyStartedAt="+prevStartedAt
							+"&itemsPerPage="+itemsPerPage;
		
	window.location = actionUrl+addObjectIdsString;
}


/**
 * Function for closing a tab and removing its id (font product) from session
 */
 /* DEPRECATED
function closeTab(tabId, referredFrom) {
	
	var ourLi = document.getElementById(tabId);
	var parentOfLi = ourLi.parentNode;
	
	try {
		parentOfLi.removeChild(ourLi);
	} catch (exception) {
		//alert(exception);	
	}
	
	var actionUrl = globalHostVar+referredFrom;
	var localhostUrl = actionUrl+'?removeTabFromSession='+tabId;
	
	var callback =
	{
		success: function(o) {
			//alert("success")
			},
		failure: function(o) {
			//alert("search could not be executed")
			},
		argument: [null, null, null]
	}	
    YAHOO.util.Connect.asyncRequest('GET', localhostUrl, callback, null);
}

*/


