// JavaScript Document
function swapVisible (divid) {
	var section = document.getElementById(divid);
	
	if (section.className.indexOf('hidden') == '-1') {
		section.className = section.className + ' hidden';
	}
	else {
		section.className = section.className.replace(' hidden', '');
	}
}

function deleteArticle(id) {
	if (confirm ('Are you sure want to delete this item ?')) {
		window.location='?act=article&mode=confirmdelete&id=' + id;
	}
}
