function getBaseUrl() {
    var port = location.port;
    if (port)
        port = ":" + port;
    return location.protocol + "//" + location.hostname + port;
}

function shoppinglistPopup(id)
{
    window.open(getBaseUrl() + '/betteru/shopping_list.aspx?id=' + id, 'shopwindow', 'width=500,height=500, scrollbars=1')	
}

function shoppingListPrint()
{
	document.getElementById("printlink").style.display="none";
	window.print();	
}