function item_remove(item, format) { var item_remove = confirm("Press \"ok\" if you sure you want to remove this item.\nIf you're not sure, press \"cancel\"") if (format == '') { format = 'item' } if (item_remove) window.location = "" + item + "&format=" + format }