function editTag(id) {
	if (!$('tagShow' + id) || !$('tagEdit' + id)) {
		return;
	}
	closeTags();
	$('tagShow' + id).style.display = 'none';
	$('tagEdit' + id).style.display = '';
}

function closeTags() {
	var div = document.getElementsByTagName('div');

	for (i = 0; i < div.length; i++) {
		if (div[i].id.match('tagShow')) {
			div[i].style.display="";
		} else if (div[i].id.match('tagEdit')) {
			div[i].style.display="none";
		}
	}
}

function closeTag(id) {
	if (!$('tagShow' + id) || !$('tagEdit' + id)) {
		return;
	}
	
	$('tagShow' + id).style.display = '';
	$('tagEdit' + id).style.display = 'none';
}

function toggleCartDel(id) {
	if (!$('cartRow' + id)) return false;
	$('cartRow' + id).className = toggleClass($('cartRow' + id).className, 'delete');
}