function NextSet(StartRow){
	document.ResultSet.StartRow.value = StartRow;
	document.ResultSet.submit();
}

function ShowClass(ClassID, ProductID){
	document.searchForm.SearchType.value = 'brandbrowse';
	document.searchForm.ClassID.value = ClassID;
	document.searchForm.ProductID.value = ProductID;
	document.searchForm.submit();
}
function EmailRecipe(RecipeID) {
	popup('/aj_recipes/recipesToppings/EmailRecipe.cfm?RecipeID='+RecipeID,490,475,0);
}
function PrintRecipe(RecipeID) {
	popup('/aj_recipes/recipesToppings/PrintRecipe.cfm?RecipeID='+RecipeID,500,400,1);
}
function popup(url, width, height, bars) {
	agent = navigator.userAgent;
	windowName = 'popup';
	params  = '';
	params += 'toolbar='+ bars +',';
	params += 'location=0,';
	params += 'directories=0,';
	params += 'status=0,';
	params += 'menubar='+ bars +',';
	params += 'scrollbars=1,';
	params += 'resizable=1,';
	params += 'width='+ width +',';
	params += 'height='+ height +',';
	win = window.open(url, windowName , params);
	if (agent.indexOf('Mozilla/2') != -1 && agent.indexOf('Win') == -1) {
		win = window.open(url, windowName , params);
	}
	if (!win.opener) {
		win.opener = window;
	}
}

