function confirm_delete_item(itemName,itemID,userID,quantity)
{
	input_box=confirm("Are you sure you want to delete " + itemName + "?");
	
	if (input_box==true){ 
	//update recurring options
		setTimeout("top.location.href = 'myitems.html?rm=1&itemID="+ itemID +"&userID="+ userID +"&quantity="+ quantity +"'",1);
	}

}

function disableSendButton(button_id, span_id, form_id)
{	
    var item_button = document.getElementById(button_id);
    var item_span = document.getElementById(span_id);
    var item_form = document.getElementById(form_id);
    item_span.removeChild(item_button);
    item_form.submit();
} 