function clearStatus() {
	window.status = '';	
	return true;
}

var popup = null;

function showRecipes(contentId) {
	var url = "/recipes.aspx";
	
	if(contentId != null) {
		url += "?contentId=" + contentId;	
	}
	
	popup = popupWin(popup, "recipes", true, url, 600, 400, false, false, false, false, true, true);
}

function popupWin(hwndPopup, windowName, closeFirst, sURL, Height, Width, toolbar, status, loc, menu, resize, scroll) {
	var	opts = "toolbar=" + (toolbar == false ? 0 : 1) + ",status=" + (status == false ? 0 : 1) + ",location=" + (loc == false ? 0 : 1) + ",menubar=" + (menu == false ? 0 : 1) + ",resizable=" + (resize == false ? 0 : 1) + ",";
	opts = opts + "height=" + Height + ",width=" + Width + ",scrollbars=" + (scroll == false ? 0 : 1);

	if (hwndPopup == null || hwndPopup.closed) {
		newPopup = window.open(sURL, windowName, opts);
		newPopup.focus();
		return newPopup;
	}

	if (closeFirst) {
		if (hwndPopup != null) { hwndPopup.close(); }
		newPopup = window.open(sURL, windowName, opts);
		newPopup.focus();
		return newPopup;
	}

	hwndPopup.location.href = sURL;
	hwndPopup.focus();
	return hwndPopup;			
}