function switchHider(el){
	var box = el.parentNode.parentNode;
	if(box.className.split(" ")[0]=="hiderBox"){
		box.className=box.className.replace("hiderBox", "hiderBoxOpened");
	}else{
		box.className=box.className.replace("hiderBoxOpened", "hiderBox");
	}
}

function confirmChanges(pid){
	var a = new Ajax(function(res, text){
		ge('alertmsg').style.display = "none";
	});
	a.post('/pages1.php', {act:'a_confirm_changes', id:pid});
}

function rollbackChanges(pid){
	var a = new Ajax(function(res, text){
		ge('wikiBody').innerHTML = text;
		ge('alertmsg').style.display = "none";
	});
	a.post('/pages1.php', {act:'a_rollback_changes', id:pid});
}
