// FORMS
/*function initializeSearch(){
	Event.observe('formSearch','submit',submitSearch);
}

function submitSearch(event) {
	Event.stop(event);
	location.href = "index.php#div=content&page=srclist&ftype=3&srcval=" + document.getElementById('srcval').value;
	document.getElementById('srcval').value = "";
}
*/
if (!window.loadPage){
	function loadPage() {
		new Ajax.Request(
						 'lib/clientFunc.php?'+currentHash,
			{ method: 'get',
				onComplete: function(xhr){
					var xmldoc = xhr.responseText;
					var parsed = xmldoc.split(String.fromCharCode(30), 2)
					var destDiv = document.getElementById(parsed[0]);
					
					window.scroll(0,0);
					destDiv.innerHTML = parsed[1];
				}
			}
		);
	}}
