/*functions for articles - Cartulariaum and Commentaria
*/

function getResults ($alpha) {
		var url = 'ajax_library.php';
		var pars = 'letter='+$alpha;
		
		var myAjax = new Ajax.Updater(
			'listings',
			url,
			{
				method: 'post',
				parameters: pars
			}
		)
	}

function getCentury ($cid) {
		var url = 'ajax_library.php';
		var pars = 'century='+$cid;
		
		var myAjax = new Ajax.Updater(
			'listings',
			url,
			{
				method: 'post',
				parameters: pars
			}
		)
	}

function pokazi(dir){
	 x=document.getElementById(dir);
	 if(x.style.display == "none"){
				 x.style.display = "";
	 }else{
				 x.style.display = "none";
					 }
		}

